From f158f6f1b254b144575cce7914373cc54c68501f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:45:16 +0000 Subject: [PATCH 1/4] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: /~https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: /~https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../admin/v1/DatastoreAdminClient.java | 1031 ++++++++++ .../admin/v1/DatastoreAdminSettings.java | 324 ++++ .../datastore/admin/v1/gapic_metadata.json | 36 + .../datastore/admin/v1/package-info.java | 97 + .../admin/v1/stub/DatastoreAdminStub.java | 108 ++ .../v1/stub/DatastoreAdminStubSettings.java | 718 +++++++ .../GrpcDatastoreAdminCallableFactory.java | 113 ++ .../admin/v1/stub/GrpcDatastoreAdminStub.java | 386 ++++ ...HttpJsonDatastoreAdminCallableFactory.java | 105 + .../v1/stub/HttpJsonDatastoreAdminStub.java | 555 ++++++ .../v1/DatastoreAdminClientHttpJsonTest.java | 434 +++++ .../admin/v1/DatastoreAdminClientTest.java | 428 +++++ .../admin/v1/MockDatastoreAdmin.java | 59 + .../admin/v1/MockDatastoreAdminImpl.java | 192 ++ .../admin/v1/DatastoreAdminGrpc.java | 1056 ++++++++++ .../datastore/admin/v1/CommonMetadata.java | 897 ++++----- .../admin/v1/CommonMetadataOrBuilder.java | 77 +- .../admin/v1/CreateIndexRequest.java | 399 ++-- .../admin/v1/CreateIndexRequestOrBuilder.java | 35 +- .../admin/v1/DatastoreAdminProto.java | 369 ++++ .../DatastoreFirestoreMigrationMetadata.java | 392 ++-- ...reFirestoreMigrationMetadataOrBuilder.java | 30 +- .../admin/v1/DeleteIndexRequest.java | 387 ++-- .../admin/v1/DeleteIndexRequestOrBuilder.java | 36 +- .../datastore/admin/v1/EntityFilter.java | 443 ++--- .../admin/v1/EntityFilterOrBuilder.java | 54 +- .../admin/v1/ExportEntitiesMetadata.java | 712 +++---- .../v1/ExportEntitiesMetadataOrBuilder.java | 59 +- .../admin/v1/ExportEntitiesRequest.java | 750 ++++---- .../v1/ExportEntitiesRequestOrBuilder.java | 75 +- .../admin/v1/ExportEntitiesResponse.java | 311 ++- .../v1/ExportEntitiesResponseOrBuilder.java | 27 +- .../datastore/admin/v1/GetIndexRequest.java | 380 ++-- .../admin/v1/GetIndexRequestOrBuilder.java | 36 +- .../admin/v1/ImportEntitiesMetadata.java | 712 +++---- .../v1/ImportEntitiesMetadataOrBuilder.java | 59 +- .../admin/v1/ImportEntitiesRequest.java | 750 ++++---- .../v1/ImportEntitiesRequestOrBuilder.java | 75 +- .../com/google/datastore/admin/v1/Index.java | 1478 ++++++-------- .../admin/v1/IndexOperationMetadata.java | 512 ++--- .../v1/IndexOperationMetadataOrBuilder.java | 43 +- .../datastore/admin/v1/IndexOrBuilder.java | 111 +- .../google/datastore/admin/v1/IndexProto.java | 87 + .../admin/v1/ListIndexesRequest.java | 486 ++--- .../admin/v1/ListIndexesRequestOrBuilder.java | 44 +- .../admin/v1/ListIndexesResponse.java | 459 ++--- .../v1/ListIndexesResponseOrBuilder.java | 46 +- .../admin/v1/MigrationProgressEvent.java | 1702 ++++++----------- .../v1/MigrationProgressEventOrBuilder.java | 73 +- .../datastore/admin/v1/MigrationProto.java | 113 ++ .../datastore/admin/v1/MigrationState.java | 89 +- .../admin/v1/MigrationStateEvent.java | 294 ++- .../v1/MigrationStateEventOrBuilder.java | 24 +- .../datastore/admin/v1/MigrationStep.java | 117 +- .../datastore/admin/v1/OperationType.java | 96 +- .../google/datastore/admin/v1/Progress.java | 292 ++- .../datastore/admin/v1/ProgressOrBuilder.java | 24 +- .../datastore/admin/v1/datastore_admin.proto | 0 .../google/datastore/admin/v1/index.proto | 0 .../google/datastore/admin/v1/migration.proto | 0 .../datastore/v1/AllocateIdsRequest.java | 525 ++--- .../v1/AllocateIdsRequestOrBuilder.java | 61 +- .../datastore/v1/AllocateIdsResponse.java | 377 ++-- .../v1/AllocateIdsResponseOrBuilder.java | 37 +- .../com/google/datastore/v1/ArrayValue.java | 368 ++-- .../datastore/v1/ArrayValueOrBuilder.java | 37 +- .../datastore/v1/BeginTransactionRequest.java | 402 ++-- .../v1/BeginTransactionRequestOrBuilder.java | 35 +- .../v1/BeginTransactionResponse.java | 265 ++- .../v1/BeginTransactionResponseOrBuilder.java | 19 + .../google/datastore/v1/CommitRequest.java | 655 +++---- .../datastore/v1/CommitRequestOrBuilder.java | 58 +- .../google/datastore/v1/CommitResponse.java | 488 ++--- .../datastore/v1/CommitResponseOrBuilder.java | 47 +- .../google/datastore/v1/CompositeFilter.java | 489 ++--- .../v1/CompositeFilterOrBuilder.java | 43 +- .../google/datastore/v1/DatastoreProto.java | 387 ++++ .../java/com/google/datastore/v1/Entity.java | 547 +++--- .../google/datastore/v1/EntityOrBuilder.java | 57 +- .../com/google/datastore/v1/EntityProto.java | 151 ++ .../com/google/datastore/v1/EntityResult.java | 541 ++---- .../datastore/v1/EntityResultOrBuilder.java | 40 +- .../java/com/google/datastore/v1/Filter.java | 463 ++--- .../google/datastore/v1/FilterOrBuilder.java | 34 +- .../com/google/datastore/v1/GqlQuery.java | 715 +++---- .../datastore/v1/GqlQueryOrBuilder.java | 79 +- .../datastore/v1/GqlQueryParameter.java | 432 ++--- .../v1/GqlQueryParameterOrBuilder.java | 32 +- .../java/com/google/datastore/v1/Key.java | 947 ++++----- .../com/google/datastore/v1/KeyOrBuilder.java | 45 +- .../google/datastore/v1/KindExpression.java | 294 ++- .../datastore/v1/KindExpressionOrBuilder.java | 29 + .../google/datastore/v1/LookupRequest.java | 622 +++--- .../datastore/v1/LookupRequestOrBuilder.java | 69 +- .../google/datastore/v1/LookupResponse.java | 754 +++----- .../datastore/v1/LookupResponseOrBuilder.java | 83 +- .../com/google/datastore/v1/Mutation.java | 910 ++++----- .../datastore/v1/MutationOrBuilder.java | 67 +- .../google/datastore/v1/MutationResult.java | 473 ++--- .../datastore/v1/MutationResultOrBuilder.java | 40 +- .../com/google/datastore/v1/PartitionId.java | 373 ++-- .../datastore/v1/PartitionIdOrBuilder.java | 36 +- .../com/google/datastore/v1/Projection.java | 321 ++-- .../datastore/v1/ProjectionOrBuilder.java | 26 +- .../google/datastore/v1/PropertyFilter.java | 575 ++---- .../datastore/v1/PropertyFilterOrBuilder.java | 40 +- .../google/datastore/v1/PropertyOrder.java | 447 ++--- .../datastore/v1/PropertyOrderOrBuilder.java | 32 +- .../datastore/v1/PropertyReference.java | 301 ++- .../v1/PropertyReferenceOrBuilder.java | 31 + .../java/com/google/datastore/v1/Query.java | 1083 ++++------- .../google/datastore/v1/QueryOrBuilder.java | 117 +- .../com/google/datastore/v1/QueryProto.java | 257 +++ .../google/datastore/v1/QueryResultBatch.java | 807 +++----- .../v1/QueryResultBatchOrBuilder.java | 68 +- .../com/google/datastore/v1/ReadOptions.java | 561 ++---- .../datastore/v1/ReadOptionsOrBuilder.java | 41 +- .../datastore/v1/ReserveIdsRequest.java | 604 +++--- .../v1/ReserveIdsRequestOrBuilder.java | 70 +- .../datastore/v1/ReserveIdsResponse.java | 225 +-- .../v1/ReserveIdsResponseOrBuilder.java | 9 + .../google/datastore/v1/RollbackRequest.java | 334 ++-- .../v1/RollbackRequestOrBuilder.java | 30 +- .../google/datastore/v1/RollbackResponse.java | 222 +-- .../v1/RollbackResponseOrBuilder.java | 9 + .../google/datastore/v1/RunQueryRequest.java | 767 +++----- .../v1/RunQueryRequestOrBuilder.java | 59 +- .../google/datastore/v1/RunQueryResponse.java | 411 ++-- .../v1/RunQueryResponseOrBuilder.java | 34 +- .../datastore/v1/TransactionOptions.java | 1060 ++++------ .../v1/TransactionOptionsOrBuilder.java | 34 +- .../java/com/google/datastore/v1/Value.java | 1270 +++++------- .../google/datastore/v1/ValueOrBuilder.java | 109 +- .../proto/google/datastore/v1/datastore.proto | 0 .../proto/google/datastore/v1/entity.proto | 0 .../proto/google/datastore/v1/query.proto | 0 .../admin/v1/DatastoreAdminProto.java | 405 ---- .../google/datastore/admin/v1/IndexProto.java | 103 - .../datastore/admin/v1/MigrationProto.java | 133 -- .../v1/BeginTransactionResponseOrBuilder.java | 38 - .../google/datastore/v1/DatastoreProto.java | 424 ---- .../com/google/datastore/v1/EntityProto.java | 183 -- .../datastore/v1/KindExpressionOrBuilder.java | 50 - .../v1/PropertyReferenceOrBuilder.java | 52 - .../com/google/datastore/v1/QueryProto.java | 298 --- .../v1/ReserveIdsResponseOrBuilder.java | 24 - .../v1/RollbackResponseOrBuilder.java | 24 - 147 files changed, 19570 insertions(+), 23041 deletions(-) create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/gapic_metadata.json create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/package-info.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminStub.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientTest.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdmin.java create mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdminImpl.java create mode 100644 owl-bot-staging/v1/grpc-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminGrpc.java rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/CommonMetadata.java (69%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java (76%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java (71%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java (67%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java (68%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java (69%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java (55%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/EntityFilter.java (75%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java (76%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java (72%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java (83%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java (71%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java (79%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java (71%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java (62%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java (70%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java (55%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java (71%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java (81%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java (71%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java (79%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/Index.java (70%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java (70%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java (72%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java (58%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java (71%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java (62%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java (72%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java (62%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java (59%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java (55%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationState.java (67%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java (68%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java (52%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationStep.java (72%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/OperationType.java (67%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/Progress.java (70%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java (54%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/proto/google/datastore/admin/v1/datastore_admin.proto (100%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/proto/google/datastore/admin/v1/index.proto (100%) rename {proto-google-cloud-datastore-admin-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1}/src/main/proto/google/datastore/admin/v1/migration.proto (100%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java (71%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java (63%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java (73%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java (64%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ArrayValue.java (75%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java (66%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java (70%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java (66%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CommitRequest.java (80%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java (84%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CommitResponse.java (76%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java (76%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CompositeFilter.java (74%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Entity.java (70%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/EntityOrBuilder.java (78%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/EntityResult.java (75%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java (79%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Filter.java (71%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/FilterOrBuilder.java (70%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/GqlQuery.java (75%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java (81%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/GqlQueryParameter.java (69%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java (65%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Key.java (82%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/KeyOrBuilder.java (88%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/KindExpression.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/LookupRequest.java (70%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java (65%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/LookupResponse.java (80%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java (82%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Mutation.java (74%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/MutationOrBuilder.java (85%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/MutationResult.java (75%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java (80%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PartitionId.java (71%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java (56%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Projection.java (67%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java (57%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyFilter.java (73%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java (72%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyOrder.java (70%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java (67%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyReference.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Query.java (80%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/QueryOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/QueryResultBatch.java (78%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java (86%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReadOptions.java (74%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java (80%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java (71%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java (65%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RollbackRequest.java (72%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java (59%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RollbackResponse.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RunQueryRequest.java (72%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java (81%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RunQueryResponse.java (70%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java (69%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/TransactionOptions.java (72%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java (72%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Value.java (75%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ValueOrBuilder.java (88%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/proto/google/datastore/v1/datastore.proto (100%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/proto/google/datastore/v1/entity.proto (100%) rename {proto-google-cloud-datastore-v1 => owl-bot-staging/v1/proto-google-cloud-datastore-v1}/src/main/proto/google/datastore/v1/query.proto (100%) delete mode 100644 proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java delete mode 100644 proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java delete mode 100644 proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java delete mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java delete mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java delete mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java delete mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java delete mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java delete mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java delete mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java delete mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java new file mode 100644 index 000000000..02fd9edd2 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java @@ -0,0 +1,1031 @@ +/* + * 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.datastore.admin.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.datastore.admin.v1.stub.DatastoreAdminStub; +import com.google.cloud.datastore.admin.v1.stub.DatastoreAdminStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.EntityFilter; +import com.google.datastore.admin.v1.ExportEntitiesMetadata; +import com.google.datastore.admin.v1.ExportEntitiesRequest; +import com.google.datastore.admin.v1.ExportEntitiesResponse; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.ImportEntitiesMetadata; +import com.google.datastore.admin.v1.ImportEntitiesRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.IndexOperationMetadata; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Google Cloud Datastore Admin API + * + *

The Datastore Admin API provides several admin services for Cloud Datastore. + * + *

----------------------------------------------------------------------------- ## Concepts + * + *

Project, namespace, kind, and entity as defined in the Google Cloud Datastore API. + * + *

Operation: An Operation represents work being performed in the background. + * + *

EntityFilter: Allows specifying a subset of entities in a project. This is specified as a + * combination of kinds and namespaces (either or both of which may be all). + * + *

----------------------------------------------------------------------------- ## Services + * + *

# Export/Import + * + *

The Export/Import service provides the ability to copy all or a subset of entities to/from + * Google Cloud Storage. + * + *

Exported data may be imported into Cloud Datastore for any Google Cloud Platform project. It + * is not restricted to the export source project. It is possible to export from one project and + * then import into another. + * + *

Exported data can also be loaded into Google BigQuery for analysis. + * + *

Exports and imports are performed asynchronously. An Operation resource is created for each + * export/import. The state (including any errors encountered) of the export/import may be queried + * via the Operation resource. + * + *

# Index + * + *

The index service manages Cloud Datastore composite indexes. + * + *

Index creation and deletion are performed asynchronously. An Operation resource is created for + * each such asynchronous operation. The state of the operation (including any errors encountered) + * may be queried via the Operation resource. + * + *

# Operation + * + *

The Operations collection provides a record of actions performed for the specified project + * (including any operations in progress). Operations are not created directly but through calls on + * other collections or resources. + * + *

An operation that is not yet done may be cancelled. The request to cancel is asynchronous and + * the operation may continue to run for some time after the request to cancel is made. + * + *

An operation that is done may be deleted so that it is no longer listed as part of the + * Operation collection. + * + *

ListOperations returns all pending operations, but not completed operations. + * + *

Operations are created by service DatastoreAdmin, but are accessed via service + * google.longrunning.Operations. + * + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+ *   GetIndexRequest request =
+ *       GetIndexRequest.newBuilder()
+ *           .setProjectId("projectId-894832108")
+ *           .setIndexId("indexId1943291277")
+ *           .build();
+ *   Index response = datastoreAdminClient.getIndex(request);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DatastoreAdminSettings datastoreAdminSettings =
+ *     DatastoreAdminSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create(datastoreAdminSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DatastoreAdminSettings datastoreAdminSettings =
+ *     DatastoreAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create(datastoreAdminSettings);
+ * }
+ * + *

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DatastoreAdminClient implements BackgroundResource { + private final DatastoreAdminSettings settings; + private final DatastoreAdminStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of DatastoreAdminClient with default settings. */ + public static final DatastoreAdminClient create() throws IOException { + return create(DatastoreAdminSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DatastoreAdminClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DatastoreAdminClient create(DatastoreAdminSettings settings) + throws IOException { + return new DatastoreAdminClient(settings); + } + + /** + * Constructs an instance of DatastoreAdminClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(DatastoreAdminSettings). + */ + public static final DatastoreAdminClient create(DatastoreAdminStub stub) { + return new DatastoreAdminClient(stub); + } + + /** + * Constructs an instance of DatastoreAdminClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected DatastoreAdminClient(DatastoreAdminSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DatastoreAdminStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected DatastoreAdminClient(DatastoreAdminStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final DatastoreAdminSettings getSettings() { + return settings; + } + + public DatastoreAdminStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage + * system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the + * export. The export occurs in the background and its progress can be monitored and managed via + * the Operation resource that is created. The output of an export may only be used once the + * associated operation is done. If an export operation is cancelled before completion it may + * leave partial data behind in Google Cloud Storage. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   Map labels = new HashMap<>();
+   *   EntityFilter entityFilter = EntityFilter.newBuilder().build();
+   *   String outputUrlPrefix = "outputUrlPrefix-1132598048";
+   *   ExportEntitiesResponse response =
+   *       datastoreAdminClient
+   *           .exportEntitiesAsync(projectId, labels, entityFilter, outputUrlPrefix)
+   *           .get();
+   * }
+   * }
+ * + * @param projectId Required. Project ID against which to make the request. + * @param labels Client-assigned labels. + * @param entityFilter Description of what data from the project is included in the export. + * @param outputUrlPrefix Required. Location for the export metadata and data files. + *

The full resource URL of the external storage location. Currently, only Google Cloud + * Storage is supported. So output_url_prefix should be of the form: + * `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Cloud Storage + * bucket and `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a + * Cloud Datastore namespace). For more information about Cloud Storage namespace paths, see + * [Object name + * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). + *

The resulting files will be nested deeper than the specified URL prefix. The final + * output URL will be provided in the + * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] + * field. That value should be used for subsequent ImportEntities operations. + *

By nesting the data files deeper, the same Cloud Storage bucket can be used in multiple + * ExportEntities operations without conflict. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportEntitiesAsync( + String projectId, + Map labels, + EntityFilter entityFilter, + String outputUrlPrefix) { + ExportEntitiesRequest request = + ExportEntitiesRequest.newBuilder() + .setProjectId(projectId) + .putAllLabels(labels) + .setEntityFilter(entityFilter) + .setOutputUrlPrefix(outputUrlPrefix) + .build(); + return exportEntitiesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage + * system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the + * export. The export occurs in the background and its progress can be monitored and managed via + * the Operation resource that is created. The output of an export may only be used once the + * associated operation is done. If an export operation is cancelled before completion it may + * leave partial data behind in Google Cloud Storage. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ExportEntitiesRequest request =
+   *       ExportEntitiesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .putAllLabels(new HashMap())
+   *           .setEntityFilter(EntityFilter.newBuilder().build())
+   *           .setOutputUrlPrefix("outputUrlPrefix-1132598048")
+   *           .build();
+   *   ExportEntitiesResponse response = datastoreAdminClient.exportEntitiesAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportEntitiesAsync( + ExportEntitiesRequest request) { + return exportEntitiesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage + * system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the + * export. The export occurs in the background and its progress can be monitored and managed via + * the Operation resource that is created. The output of an export may only be used once the + * associated operation is done. If an export operation is cancelled before completion it may + * leave partial data behind in Google Cloud Storage. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ExportEntitiesRequest request =
+   *       ExportEntitiesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .putAllLabels(new HashMap())
+   *           .setEntityFilter(EntityFilter.newBuilder().build())
+   *           .setOutputUrlPrefix("outputUrlPrefix-1132598048")
+   *           .build();
+   *   OperationFuture future =
+   *       datastoreAdminClient.exportEntitiesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportEntitiesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationCallable() { + return stub.exportEntitiesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage + * system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the + * export. The export occurs in the background and its progress can be monitored and managed via + * the Operation resource that is created. The output of an export may only be used once the + * associated operation is done. If an export operation is cancelled before completion it may + * leave partial data behind in Google Cloud Storage. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ExportEntitiesRequest request =
+   *       ExportEntitiesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .putAllLabels(new HashMap())
+   *           .setEntityFilter(EntityFilter.newBuilder().build())
+   *           .setOutputUrlPrefix("outputUrlPrefix-1132598048")
+   *           .build();
+   *   ApiFuture future =
+   *       datastoreAdminClient.exportEntitiesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportEntitiesCallable() { + return stub.exportEntitiesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports entities into Google Cloud Datastore. Existing entities with the same key are + * overwritten. The import occurs in the background and its progress can be monitored and managed + * via the Operation resource that is created. If an ImportEntities operation is cancelled, it is + * possible that a subset of the data has already been imported to Cloud Datastore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   Map labels = new HashMap<>();
+   *   String inputUrl = "inputUrl470706501";
+   *   EntityFilter entityFilter = EntityFilter.newBuilder().build();
+   *   datastoreAdminClient.importEntitiesAsync(projectId, labels, inputUrl, entityFilter).get();
+   * }
+   * }
+ * + * @param projectId Required. Project ID against which to make the request. + * @param labels Client-assigned labels. + * @param inputUrl Required. The full resource URL of the external storage location. Currently, + * only Google Cloud Storage is supported. So input_url should be of the form: + * `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is + * the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage + * namespace path (this is not a Cloud Datastore namespace), and + * `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities + * operation. For more information about Cloud Storage namespace paths, see [Object name + * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). + *

For more information, see + * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. + * @param entityFilter Optionally specify which kinds/namespaces are to be imported. If provided, + * the list must be a subset of the EntityFilter used in creating the export, otherwise a + * FAILED_PRECONDITION error will be returned. If no filter is specified then all entities + * from the export are imported. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importEntitiesAsync( + String projectId, Map labels, String inputUrl, EntityFilter entityFilter) { + ImportEntitiesRequest request = + ImportEntitiesRequest.newBuilder() + .setProjectId(projectId) + .putAllLabels(labels) + .setInputUrl(inputUrl) + .setEntityFilter(entityFilter) + .build(); + return importEntitiesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports entities into Google Cloud Datastore. Existing entities with the same key are + * overwritten. The import occurs in the background and its progress can be monitored and managed + * via the Operation resource that is created. If an ImportEntities operation is cancelled, it is + * possible that a subset of the data has already been imported to Cloud Datastore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ImportEntitiesRequest request =
+   *       ImportEntitiesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .putAllLabels(new HashMap())
+   *           .setInputUrl("inputUrl470706501")
+   *           .setEntityFilter(EntityFilter.newBuilder().build())
+   *           .build();
+   *   datastoreAdminClient.importEntitiesAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importEntitiesAsync( + ImportEntitiesRequest request) { + return importEntitiesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports entities into Google Cloud Datastore. Existing entities with the same key are + * overwritten. The import occurs in the background and its progress can be monitored and managed + * via the Operation resource that is created. If an ImportEntities operation is cancelled, it is + * possible that a subset of the data has already been imported to Cloud Datastore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ImportEntitiesRequest request =
+   *       ImportEntitiesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .putAllLabels(new HashMap())
+   *           .setInputUrl("inputUrl470706501")
+   *           .setEntityFilter(EntityFilter.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       datastoreAdminClient.importEntitiesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + importEntitiesOperationCallable() { + return stub.importEntitiesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports entities into Google Cloud Datastore. Existing entities with the same key are + * overwritten. The import occurs in the background and its progress can be monitored and managed + * via the Operation resource that is created. If an ImportEntities operation is cancelled, it is + * possible that a subset of the data has already been imported to Cloud Datastore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ImportEntitiesRequest request =
+   *       ImportEntitiesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .putAllLabels(new HashMap())
+   *           .setInputUrl("inputUrl470706501")
+   *           .setEntityFilter(EntityFilter.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       datastoreAdminClient.importEntitiesCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importEntitiesCallable() { + return stub.importEntitiesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the specified index. A newly created index's initial state is `CREATING`. On completion + * of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be + * `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. + * + *

During index creation, the process could result in an error, in which case the index will + * move to the `ERROR` state. The process can be recovered by fixing the data that caused the + * error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], + * then re-creating the index with [create] + * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. + * + *

Indexes with a single property cannot be created. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   CreateIndexRequest request =
+   *       CreateIndexRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setIndex(Index.newBuilder().build())
+   *           .build();
+   *   Index response = datastoreAdminClient.createIndexAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createIndexAsync( + CreateIndexRequest request) { + return createIndexOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the specified index. A newly created index's initial state is `CREATING`. On completion + * of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be + * `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. + * + *

During index creation, the process could result in an error, in which case the index will + * move to the `ERROR` state. The process can be recovered by fixing the data that caused the + * error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], + * then re-creating the index with [create] + * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. + * + *

Indexes with a single property cannot be created. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   CreateIndexRequest request =
+   *       CreateIndexRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setIndex(Index.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       datastoreAdminClient.createIndexOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Index response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createIndexOperationCallable() { + return stub.createIndexOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the specified index. A newly created index's initial state is `CREATING`. On completion + * of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be + * `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. + * + *

During index creation, the process could result in an error, in which case the index will + * move to the `ERROR` state. The process can be recovered by fixing the data that caused the + * error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], + * then re-creating the index with [create] + * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. + * + *

Indexes with a single property cannot be created. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   CreateIndexRequest request =
+   *       CreateIndexRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setIndex(Index.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = datastoreAdminClient.createIndexCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createIndexCallable() { + return stub.createIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. + * On successful execution of the request, the index will be in a `DELETING` + * [state][google.datastore.admin.v1.Index.State]. And on completion of the returned + * [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. + * + *

During index deletion, the process could result in an error, in which case the index will + * move to the `ERROR` state. The process can be recovered by fixing the data that caused the + * error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] + * again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   DeleteIndexRequest request =
+   *       DeleteIndexRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setIndexId("indexId1943291277")
+   *           .build();
+   *   Index response = datastoreAdminClient.deleteIndexAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteIndexAsync( + DeleteIndexRequest request) { + return deleteIndexOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. + * On successful execution of the request, the index will be in a `DELETING` + * [state][google.datastore.admin.v1.Index.State]. And on completion of the returned + * [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. + * + *

During index deletion, the process could result in an error, in which case the index will + * move to the `ERROR` state. The process can be recovered by fixing the data that caused the + * error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] + * again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   DeleteIndexRequest request =
+   *       DeleteIndexRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setIndexId("indexId1943291277")
+   *           .build();
+   *   OperationFuture future =
+   *       datastoreAdminClient.deleteIndexOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Index response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteIndexOperationCallable() { + return stub.deleteIndexOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. + * On successful execution of the request, the index will be in a `DELETING` + * [state][google.datastore.admin.v1.Index.State]. And on completion of the returned + * [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. + * + *

During index deletion, the process could result in an error, in which case the index will + * move to the `ERROR` state. The process can be recovered by fixing the data that caused the + * error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] + * again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   DeleteIndexRequest request =
+   *       DeleteIndexRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setIndexId("indexId1943291277")
+   *           .build();
+   *   ApiFuture future = datastoreAdminClient.deleteIndexCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteIndexCallable() { + return stub.deleteIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an index. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   GetIndexRequest request =
+   *       GetIndexRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setIndexId("indexId1943291277")
+   *           .build();
+   *   Index response = datastoreAdminClient.getIndex(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 Index getIndex(GetIndexRequest request) { + return getIndexCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an index. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   GetIndexRequest request =
+   *       GetIndexRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setIndexId("indexId1943291277")
+   *           .build();
+   *   ApiFuture future = datastoreAdminClient.getIndexCallable().futureCall(request);
+   *   // Do something.
+   *   Index response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIndexCallable() { + return stub.getIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the indexes that match the specified filters. Datastore uses an eventually consistent + * query to fetch the list of indexes and may occasionally return stale results. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ListIndexesRequest request =
+   *       ListIndexesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Index element : datastoreAdminClient.listIndexes(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) { + return listIndexesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the indexes that match the specified filters. Datastore uses an eventually consistent + * query to fetch the list of indexes and may occasionally return stale results. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ListIndexesRequest request =
+   *       ListIndexesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = datastoreAdminClient.listIndexesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Index element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listIndexesPagedCallable() { + return stub.listIndexesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the indexes that match the specified filters. Datastore uses an eventually consistent + * query to fetch the list of indexes and may occasionally return stale results. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+   *   ListIndexesRequest request =
+   *       ListIndexesRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListIndexesResponse response = datastoreAdminClient.listIndexesCallable().call(request);
+   *     for (Index element : response.getIndexesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listIndexesCallable() { + return stub.listIndexesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListIndexesPagedResponse + extends AbstractPagedListResponse< + ListIndexesRequest, ListIndexesResponse, Index, ListIndexesPage, + ListIndexesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListIndexesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListIndexesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListIndexesPagedResponse(ListIndexesPage page) { + super(page, ListIndexesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListIndexesPage + extends AbstractPage { + + private ListIndexesPage( + PageContext context, + ListIndexesResponse response) { + super(context, response); + } + + private static ListIndexesPage createEmptyPage() { + return new ListIndexesPage(null, null); + } + + @Override + protected ListIndexesPage createPage( + PageContext context, + ListIndexesResponse response) { + return new ListIndexesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListIndexesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListIndexesRequest, ListIndexesResponse, Index, ListIndexesPage, + ListIndexesFixedSizeCollection> { + + private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListIndexesFixedSizeCollection createEmptyCollection() { + return new ListIndexesFixedSizeCollection(null, 0); + } + + @Override + protected ListIndexesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListIndexesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java new file mode 100644 index 000000000..ba3ba11c5 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java @@ -0,0 +1,324 @@ +/* + * 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.datastore.admin.v1; + +import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.datastore.admin.v1.stub.DatastoreAdminStubSettings; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.ExportEntitiesMetadata; +import com.google.datastore.admin.v1.ExportEntitiesRequest; +import com.google.datastore.admin.v1.ExportEntitiesResponse; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.ImportEntitiesMetadata; +import com.google.datastore.admin.v1.ImportEntitiesRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.IndexOperationMetadata; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DatastoreAdminClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DatastoreAdminSettings.Builder datastoreAdminSettingsBuilder =
+ *     DatastoreAdminSettings.newBuilder();
+ * datastoreAdminSettingsBuilder
+ *     .getIndexSettings()
+ *     .setRetrySettings(
+ *         datastoreAdminSettingsBuilder
+ *             .getIndexSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DatastoreAdminSettings datastoreAdminSettings = datastoreAdminSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DatastoreAdminSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to exportEntities. */ + public UnaryCallSettings exportEntitiesSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).exportEntitiesSettings(); + } + + /** Returns the object with the settings used for calls to exportEntities. */ + public OperationCallSettings< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).exportEntitiesOperationSettings(); + } + + /** Returns the object with the settings used for calls to importEntities. */ + public UnaryCallSettings importEntitiesSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).importEntitiesSettings(); + } + + /** Returns the object with the settings used for calls to importEntities. */ + public OperationCallSettings + importEntitiesOperationSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).importEntitiesOperationSettings(); + } + + /** Returns the object with the settings used for calls to createIndex. */ + public UnaryCallSettings createIndexSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).createIndexSettings(); + } + + /** Returns the object with the settings used for calls to createIndex. */ + public OperationCallSettings + createIndexOperationSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).createIndexOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public UnaryCallSettings deleteIndexSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).deleteIndexSettings(); + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public OperationCallSettings + deleteIndexOperationSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).deleteIndexOperationSettings(); + } + + /** Returns the object with the settings used for calls to getIndex. */ + public UnaryCallSettings getIndexSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).getIndexSettings(); + } + + /** Returns the object with the settings used for calls to listIndexes. */ + public PagedCallSettings + listIndexesSettings() { + return ((DatastoreAdminStubSettings) getStubSettings()).listIndexesSettings(); + } + + public static final DatastoreAdminSettings create(DatastoreAdminStubSettings stub) + throws IOException { + return new DatastoreAdminSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DatastoreAdminStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DatastoreAdminStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DatastoreAdminStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DatastoreAdminStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DatastoreAdminStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DatastoreAdminStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DatastoreAdminStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DatastoreAdminStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DatastoreAdminSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DatastoreAdminSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DatastoreAdminStubSettings.newBuilder(clientContext)); + } + + protected Builder(DatastoreAdminSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DatastoreAdminStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DatastoreAdminStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(DatastoreAdminStubSettings.newHttpJsonBuilder()); + } + + public DatastoreAdminStubSettings.Builder getStubSettingsBuilder() { + return ((DatastoreAdminStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to exportEntities. */ + public UnaryCallSettings.Builder exportEntitiesSettings() { + return getStubSettingsBuilder().exportEntitiesSettings(); + } + + /** Returns the builder for the settings used for calls to exportEntities. */ + public OperationCallSettings.Builder< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationSettings() { + return getStubSettingsBuilder().exportEntitiesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importEntities. */ + public UnaryCallSettings.Builder importEntitiesSettings() { + return getStubSettingsBuilder().importEntitiesSettings(); + } + + /** Returns the builder for the settings used for calls to importEntities. */ + public OperationCallSettings.Builder + importEntitiesOperationSettings() { + return getStubSettingsBuilder().importEntitiesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createIndex. */ + public UnaryCallSettings.Builder createIndexSettings() { + return getStubSettingsBuilder().createIndexSettings(); + } + + /** Returns the builder for the settings used for calls to createIndex. */ + public OperationCallSettings.Builder + createIndexOperationSettings() { + return getStubSettingsBuilder().createIndexOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + public UnaryCallSettings.Builder deleteIndexSettings() { + return getStubSettingsBuilder().deleteIndexSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + public OperationCallSettings.Builder + deleteIndexOperationSettings() { + return getStubSettingsBuilder().deleteIndexOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getIndex. */ + public UnaryCallSettings.Builder getIndexSettings() { + return getStubSettingsBuilder().getIndexSettings(); + } + + /** Returns the builder for the settings used for calls to listIndexes. */ + public PagedCallSettings.Builder< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + listIndexesSettings() { + return getStubSettingsBuilder().listIndexesSettings(); + } + + @Override + public DatastoreAdminSettings build() throws IOException { + return new DatastoreAdminSettings(this); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/gapic_metadata.json new file mode 100644 index 000000000..205eb5dcd --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/gapic_metadata.json @@ -0,0 +1,36 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.datastore.admin.v1", + "libraryPackage": "com.google.cloud.datastore.admin.v1", + "services": { + "DatastoreAdmin": { + "clients": { + "grpc": { + "libraryClient": "DatastoreAdminClient", + "rpcs": { + "CreateIndex": { + "methods": ["createIndexAsync", "createIndexOperationCallable", "createIndexCallable"] + }, + "DeleteIndex": { + "methods": ["deleteIndexAsync", "deleteIndexOperationCallable", "deleteIndexCallable"] + }, + "ExportEntities": { + "methods": ["exportEntitiesAsync", "exportEntitiesAsync", "exportEntitiesOperationCallable", "exportEntitiesCallable"] + }, + "GetIndex": { + "methods": ["getIndex", "getIndexCallable"] + }, + "ImportEntities": { + "methods": ["importEntitiesAsync", "importEntitiesAsync", "importEntitiesOperationCallable", "importEntitiesCallable"] + }, + "ListIndexes": { + "methods": ["listIndexes", "listIndexesPagedCallable", "listIndexesCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/package-info.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/package-info.java new file mode 100644 index 000000000..4bb6f2eea --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/package-info.java @@ -0,0 +1,97 @@ +/* + * 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. + */ + +/** + * A client to Cloud Datastore API + * + *

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

======================= DatastoreAdminClient ======================= + * + *

Service Description: Google Cloud Datastore Admin API + * + *

The Datastore Admin API provides several admin services for Cloud Datastore. + * + *

----------------------------------------------------------------------------- ## Concepts + * + *

Project, namespace, kind, and entity as defined in the Google Cloud Datastore API. + * + *

Operation: An Operation represents work being performed in the background. + * + *

EntityFilter: Allows specifying a subset of entities in a project. This is specified as a + * combination of kinds and namespaces (either or both of which may be all). + * + *

----------------------------------------------------------------------------- ## Services + * + *

# Export/Import + * + *

The Export/Import service provides the ability to copy all or a subset of entities to/from + * Google Cloud Storage. + * + *

Exported data may be imported into Cloud Datastore for any Google Cloud Platform project. It + * is not restricted to the export source project. It is possible to export from one project and + * then import into another. + * + *

Exported data can also be loaded into Google BigQuery for analysis. + * + *

Exports and imports are performed asynchronously. An Operation resource is created for each + * export/import. The state (including any errors encountered) of the export/import may be queried + * via the Operation resource. + * + *

# Index + * + *

The index service manages Cloud Datastore composite indexes. + * + *

Index creation and deletion are performed asynchronously. An Operation resource is created for + * each such asynchronous operation. The state of the operation (including any errors encountered) + * may be queried via the Operation resource. + * + *

# Operation + * + *

The Operations collection provides a record of actions performed for the specified project + * (including any operations in progress). Operations are not created directly but through calls on + * other collections or resources. + * + *

An operation that is not yet done may be cancelled. The request to cancel is asynchronous and + * the operation may continue to run for some time after the request to cancel is made. + * + *

An operation that is done may be deleted so that it is no longer listed as part of the + * Operation collection. + * + *

ListOperations returns all pending operations, but not completed operations. + * + *

Operations are created by service DatastoreAdmin, but are accessed via service + * google.longrunning.Operations. + * + *

Sample for DatastoreAdminClient: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
+ *   GetIndexRequest request =
+ *       GetIndexRequest.newBuilder()
+ *           .setProjectId("projectId-894832108")
+ *           .setIndexId("indexId1943291277")
+ *           .build();
+ *   Index response = datastoreAdminClient.getIndex(request);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.datastore.admin.v1; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java new file mode 100644 index 000000000..cc758842c --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java @@ -0,0 +1,108 @@ +/* + * 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.datastore.admin.v1.stub; + +import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.ExportEntitiesMetadata; +import com.google.datastore.admin.v1.ExportEntitiesRequest; +import com.google.datastore.admin.v1.ExportEntitiesResponse; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.ImportEntitiesMetadata; +import com.google.datastore.admin.v1.ImportEntitiesRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.IndexOperationMetadata; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DatastoreAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DatastoreAdminStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + exportEntitiesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: exportEntitiesOperationCallable()"); + } + + public UnaryCallable exportEntitiesCallable() { + throw new UnsupportedOperationException("Not implemented: exportEntitiesCallable()"); + } + + public OperationCallable + importEntitiesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: importEntitiesOperationCallable()"); + } + + public UnaryCallable importEntitiesCallable() { + throw new UnsupportedOperationException("Not implemented: importEntitiesCallable()"); + } + + public OperationCallable + createIndexOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createIndexOperationCallable()"); + } + + public UnaryCallable createIndexCallable() { + throw new UnsupportedOperationException("Not implemented: createIndexCallable()"); + } + + public OperationCallable + deleteIndexOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteIndexOperationCallable()"); + } + + public UnaryCallable deleteIndexCallable() { + throw new UnsupportedOperationException("Not implemented: deleteIndexCallable()"); + } + + public UnaryCallable getIndexCallable() { + throw new UnsupportedOperationException("Not implemented: getIndexCallable()"); + } + + public UnaryCallable listIndexesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listIndexesPagedCallable()"); + } + + public UnaryCallable listIndexesCallable() { + throw new UnsupportedOperationException("Not implemented: listIndexesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java new file mode 100644 index 000000000..d3581baf2 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java @@ -0,0 +1,718 @@ +/* + * 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.datastore.admin.v1.stub; + +import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.ExportEntitiesMetadata; +import com.google.datastore.admin.v1.ExportEntitiesRequest; +import com.google.datastore.admin.v1.ExportEntitiesResponse; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.ImportEntitiesMetadata; +import com.google.datastore.admin.v1.ImportEntitiesRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.IndexOperationMetadata; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DatastoreAdminStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DatastoreAdminStubSettings.Builder datastoreAdminSettingsBuilder =
+ *     DatastoreAdminStubSettings.newBuilder();
+ * datastoreAdminSettingsBuilder
+ *     .getIndexSettings()
+ *     .setRetrySettings(
+ *         datastoreAdminSettingsBuilder
+ *             .getIndexSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DatastoreAdminStubSettings datastoreAdminSettings = datastoreAdminSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DatastoreAdminStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/datastore") + .build(); + + private final UnaryCallSettings exportEntitiesSettings; + private final OperationCallSettings< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationSettings; + private final UnaryCallSettings importEntitiesSettings; + private final OperationCallSettings + importEntitiesOperationSettings; + private final UnaryCallSettings createIndexSettings; + private final OperationCallSettings + createIndexOperationSettings; + private final UnaryCallSettings deleteIndexSettings; + private final OperationCallSettings + deleteIndexOperationSettings; + private final UnaryCallSettings getIndexSettings; + private final PagedCallSettings + listIndexesSettings; + + private static final PagedListDescriptor + LIST_INDEXES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListIndexesRequest injectToken(ListIndexesRequest payload, String token) { + return ListIndexesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListIndexesRequest injectPageSize(ListIndexesRequest payload, int pageSize) { + return ListIndexesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListIndexesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListIndexesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListIndexesResponse payload) { + return payload.getIndexesList() == null + ? ImmutableList.of() + : payload.getIndexesList(); + } + }; + + private static final PagedListResponseFactory< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + LIST_INDEXES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListIndexesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_INDEXES_PAGE_STR_DESC, request, context); + return ListIndexesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to exportEntities. */ + public UnaryCallSettings exportEntitiesSettings() { + return exportEntitiesSettings; + } + + /** Returns the object with the settings used for calls to exportEntities. */ + public OperationCallSettings< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationSettings() { + return exportEntitiesOperationSettings; + } + + /** Returns the object with the settings used for calls to importEntities. */ + public UnaryCallSettings importEntitiesSettings() { + return importEntitiesSettings; + } + + /** Returns the object with the settings used for calls to importEntities. */ + public OperationCallSettings + importEntitiesOperationSettings() { + return importEntitiesOperationSettings; + } + + /** Returns the object with the settings used for calls to createIndex. */ + public UnaryCallSettings createIndexSettings() { + return createIndexSettings; + } + + /** Returns the object with the settings used for calls to createIndex. */ + public OperationCallSettings + createIndexOperationSettings() { + return createIndexOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public UnaryCallSettings deleteIndexSettings() { + return deleteIndexSettings; + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public OperationCallSettings + deleteIndexOperationSettings() { + return deleteIndexOperationSettings; + } + + /** Returns the object with the settings used for calls to getIndex. */ + public UnaryCallSettings getIndexSettings() { + return getIndexSettings; + } + + /** Returns the object with the settings used for calls to listIndexes. */ + public PagedCallSettings + listIndexesSettings() { + return listIndexesSettings; + } + + public DatastoreAdminStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDatastoreAdminStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDatastoreAdminStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "datastore.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "datastore.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DatastoreAdminStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DatastoreAdminStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DatastoreAdminStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DatastoreAdminStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + exportEntitiesSettings = settingsBuilder.exportEntitiesSettings().build(); + exportEntitiesOperationSettings = settingsBuilder.exportEntitiesOperationSettings().build(); + importEntitiesSettings = settingsBuilder.importEntitiesSettings().build(); + importEntitiesOperationSettings = settingsBuilder.importEntitiesOperationSettings().build(); + createIndexSettings = settingsBuilder.createIndexSettings().build(); + createIndexOperationSettings = settingsBuilder.createIndexOperationSettings().build(); + deleteIndexSettings = settingsBuilder.deleteIndexSettings().build(); + deleteIndexOperationSettings = settingsBuilder.deleteIndexOperationSettings().build(); + getIndexSettings = settingsBuilder.getIndexSettings().build(); + listIndexesSettings = settingsBuilder.listIndexesSettings().build(); + } + + /** Builder for DatastoreAdminStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + exportEntitiesSettings; + private final OperationCallSettings.Builder< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationSettings; + private final UnaryCallSettings.Builder + importEntitiesSettings; + private final OperationCallSettings.Builder< + ImportEntitiesRequest, Empty, ImportEntitiesMetadata> + importEntitiesOperationSettings; + private final UnaryCallSettings.Builder createIndexSettings; + private final OperationCallSettings.Builder + createIndexOperationSettings; + private final UnaryCallSettings.Builder deleteIndexSettings; + private final OperationCallSettings.Builder + deleteIndexOperationSettings; + private final UnaryCallSettings.Builder getIndexSettings; + private final PagedCallSettings.Builder< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + listIndexesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + exportEntitiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportEntitiesOperationSettings = OperationCallSettings.newBuilder(); + importEntitiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importEntitiesOperationSettings = OperationCallSettings.newBuilder(); + createIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createIndexOperationSettings = OperationCallSettings.newBuilder(); + deleteIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteIndexOperationSettings = OperationCallSettings.newBuilder(); + getIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listIndexesSettings = PagedCallSettings.newBuilder(LIST_INDEXES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + exportEntitiesSettings, + importEntitiesSettings, + createIndexSettings, + deleteIndexSettings, + getIndexSettings, + listIndexesSettings); + initDefaults(this); + } + + protected Builder(DatastoreAdminStubSettings settings) { + super(settings); + + exportEntitiesSettings = settings.exportEntitiesSettings.toBuilder(); + exportEntitiesOperationSettings = settings.exportEntitiesOperationSettings.toBuilder(); + importEntitiesSettings = settings.importEntitiesSettings.toBuilder(); + importEntitiesOperationSettings = settings.importEntitiesOperationSettings.toBuilder(); + createIndexSettings = settings.createIndexSettings.toBuilder(); + createIndexOperationSettings = settings.createIndexOperationSettings.toBuilder(); + deleteIndexSettings = settings.deleteIndexSettings.toBuilder(); + deleteIndexOperationSettings = settings.deleteIndexOperationSettings.toBuilder(); + getIndexSettings = settings.getIndexSettings.toBuilder(); + listIndexesSettings = settings.listIndexesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + exportEntitiesSettings, + importEntitiesSettings, + createIndexSettings, + deleteIndexSettings, + getIndexSettings, + listIndexesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .exportEntitiesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .importEntitiesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listIndexesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .exportEntitiesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ExportEntitiesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(ExportEntitiesMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .importEntitiesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(ImportEntitiesMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createIndexOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Index.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(IndexOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteIndexOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Index.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(IndexOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to exportEntities. */ + public UnaryCallSettings.Builder exportEntitiesSettings() { + return exportEntitiesSettings; + } + + /** Returns the builder for the settings used for calls to exportEntities. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationSettings() { + return exportEntitiesOperationSettings; + } + + /** Returns the builder for the settings used for calls to importEntities. */ + public UnaryCallSettings.Builder importEntitiesSettings() { + return importEntitiesSettings; + } + + /** Returns the builder for the settings used for calls to importEntities. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + importEntitiesOperationSettings() { + return importEntitiesOperationSettings; + } + + /** Returns the builder for the settings used for calls to createIndex. */ + public UnaryCallSettings.Builder createIndexSettings() { + return createIndexSettings; + } + + /** Returns the builder for the settings used for calls to createIndex. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createIndexOperationSettings() { + return createIndexOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + public UnaryCallSettings.Builder deleteIndexSettings() { + return deleteIndexSettings; + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteIndexOperationSettings() { + return deleteIndexOperationSettings; + } + + /** Returns the builder for the settings used for calls to getIndex. */ + public UnaryCallSettings.Builder getIndexSettings() { + return getIndexSettings; + } + + /** Returns the builder for the settings used for calls to listIndexes. */ + public PagedCallSettings.Builder< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + listIndexesSettings() { + return listIndexesSettings; + } + + @Override + public DatastoreAdminStubSettings build() throws IOException { + return new DatastoreAdminStubSettings(this); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminCallableFactory.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminCallableFactory.java new file mode 100644 index 000000000..c55ab938a --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminCallableFactory.java @@ -0,0 +1,113 @@ +/* + * 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.datastore.admin.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DatastoreAdmin service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDatastoreAdminCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminStub.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminStub.java new file mode 100644 index 000000000..7b0f7a82b --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminStub.java @@ -0,0 +1,386 @@ +/* + * 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.datastore.admin.v1.stub; + +import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.ExportEntitiesMetadata; +import com.google.datastore.admin.v1.ExportEntitiesRequest; +import com.google.datastore.admin.v1.ExportEntitiesResponse; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.ImportEntitiesMetadata; +import com.google.datastore.admin.v1.ImportEntitiesRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.IndexOperationMetadata; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DatastoreAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDatastoreAdminStub extends DatastoreAdminStub { + private static final MethodDescriptor + exportEntitiesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ExportEntities") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportEntitiesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importEntitiesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ImportEntities") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportEntitiesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/CreateIndex") + .setRequestMarshaller(ProtoUtils.marshaller(CreateIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/DeleteIndex") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/GetIndex") + .setRequestMarshaller(ProtoUtils.marshaller(GetIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Index.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listIndexesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ListIndexes") + .setRequestMarshaller(ProtoUtils.marshaller(ListIndexesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListIndexesResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable exportEntitiesCallable; + private final OperationCallable< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationCallable; + private final UnaryCallable importEntitiesCallable; + private final OperationCallable + importEntitiesOperationCallable; + private final UnaryCallable createIndexCallable; + private final OperationCallable + createIndexOperationCallable; + private final UnaryCallable deleteIndexCallable; + private final OperationCallable + deleteIndexOperationCallable; + private final UnaryCallable getIndexCallable; + private final UnaryCallable listIndexesCallable; + private final UnaryCallable + listIndexesPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDatastoreAdminStub create(DatastoreAdminStubSettings settings) + throws IOException { + return new GrpcDatastoreAdminStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDatastoreAdminStub create(ClientContext clientContext) + throws IOException { + return new GrpcDatastoreAdminStub( + DatastoreAdminStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDatastoreAdminStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDatastoreAdminStub( + DatastoreAdminStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDatastoreAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcDatastoreAdminStub(DatastoreAdminStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcDatastoreAdminCallableFactory()); + } + + /** + * Constructs an instance of GrpcDatastoreAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcDatastoreAdminStub( + DatastoreAdminStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings exportEntitiesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportEntitiesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + return params.build(); + }) + .build(); + GrpcCallSettings importEntitiesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importEntitiesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + return params.build(); + }) + .build(); + GrpcCallSettings createIndexTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createIndexMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteIndexTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteIndexMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("index_id", String.valueOf(request.getIndexId())); + params.put("project_id", String.valueOf(request.getProjectId())); + return params.build(); + }) + .build(); + GrpcCallSettings getIndexTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIndexMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("index_id", String.valueOf(request.getIndexId())); + params.put("project_id", String.valueOf(request.getProjectId())); + return params.build(); + }) + .build(); + GrpcCallSettings listIndexesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listIndexesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + return params.build(); + }) + .build(); + + this.exportEntitiesCallable = + callableFactory.createUnaryCallable( + exportEntitiesTransportSettings, settings.exportEntitiesSettings(), clientContext); + this.exportEntitiesOperationCallable = + callableFactory.createOperationCallable( + exportEntitiesTransportSettings, + settings.exportEntitiesOperationSettings(), + clientContext, + operationsStub); + this.importEntitiesCallable = + callableFactory.createUnaryCallable( + importEntitiesTransportSettings, settings.importEntitiesSettings(), clientContext); + this.importEntitiesOperationCallable = + callableFactory.createOperationCallable( + importEntitiesTransportSettings, + settings.importEntitiesOperationSettings(), + clientContext, + operationsStub); + this.createIndexCallable = + callableFactory.createUnaryCallable( + createIndexTransportSettings, settings.createIndexSettings(), clientContext); + this.createIndexOperationCallable = + callableFactory.createOperationCallable( + createIndexTransportSettings, + settings.createIndexOperationSettings(), + clientContext, + operationsStub); + this.deleteIndexCallable = + callableFactory.createUnaryCallable( + deleteIndexTransportSettings, settings.deleteIndexSettings(), clientContext); + this.deleteIndexOperationCallable = + callableFactory.createOperationCallable( + deleteIndexTransportSettings, + settings.deleteIndexOperationSettings(), + clientContext, + operationsStub); + this.getIndexCallable = + callableFactory.createUnaryCallable( + getIndexTransportSettings, settings.getIndexSettings(), clientContext); + this.listIndexesCallable = + callableFactory.createUnaryCallable( + listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); + this.listIndexesPagedCallable = + callableFactory.createPagedCallable( + listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable exportEntitiesCallable() { + return exportEntitiesCallable; + } + + @Override + public OperationCallable + exportEntitiesOperationCallable() { + return exportEntitiesOperationCallable; + } + + @Override + public UnaryCallable importEntitiesCallable() { + return importEntitiesCallable; + } + + @Override + public OperationCallable + importEntitiesOperationCallable() { + return importEntitiesOperationCallable; + } + + @Override + public UnaryCallable createIndexCallable() { + return createIndexCallable; + } + + @Override + public OperationCallable + createIndexOperationCallable() { + return createIndexOperationCallable; + } + + @Override + public UnaryCallable deleteIndexCallable() { + return deleteIndexCallable; + } + + @Override + public OperationCallable + deleteIndexOperationCallable() { + return deleteIndexOperationCallable; + } + + @Override + public UnaryCallable getIndexCallable() { + return getIndexCallable; + } + + @Override + public UnaryCallable listIndexesCallable() { + return listIndexesCallable; + } + + @Override + public UnaryCallable listIndexesPagedCallable() { + return listIndexesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java new file mode 100644 index 000000000..792def791 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datastore.admin.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DatastoreAdmin service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonDatastoreAdminCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java new file mode 100644 index 000000000..767e767c2 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java @@ -0,0 +1,555 @@ +/* + * 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.datastore.admin.v1.stub; + +import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.ExportEntitiesMetadata; +import com.google.datastore.admin.v1.ExportEntitiesRequest; +import com.google.datastore.admin.v1.ExportEntitiesResponse; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.ImportEntitiesMetadata; +import com.google.datastore.admin.v1.ImportEntitiesRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.IndexOperationMetadata; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DatastoreAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonDatastoreAdminStub extends DatastoreAdminStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(ExportEntitiesResponse.getDescriptor()) + .add(IndexOperationMetadata.getDescriptor()) + .add(Index.getDescriptor()) + .add(ExportEntitiesMetadata.getDescriptor()) + .add(ImportEntitiesMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + exportEntitiesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ExportEntities") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}:export", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProjectId().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportEntitiesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + importEntitiesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ImportEntities") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProjectId().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportEntitiesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createIndexMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/CreateIndex") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/indexes", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("index", request.getIndex())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateIndexRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteIndexMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/DeleteIndex") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/indexes/{indexId}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "indexId", request.getIndexId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteIndexRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getIndexMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/GetIndex") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/indexes/{indexId}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "indexId", request.getIndexId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Index.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listIndexesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ListIndexes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/indexes", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListIndexesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable exportEntitiesCallable; + private final OperationCallable< + ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> + exportEntitiesOperationCallable; + private final UnaryCallable importEntitiesCallable; + private final OperationCallable + importEntitiesOperationCallable; + private final UnaryCallable createIndexCallable; + private final OperationCallable + createIndexOperationCallable; + private final UnaryCallable deleteIndexCallable; + private final OperationCallable + deleteIndexOperationCallable; + private final UnaryCallable getIndexCallable; + private final UnaryCallable listIndexesCallable; + private final UnaryCallable + listIndexesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDatastoreAdminStub create(DatastoreAdminStubSettings settings) + throws IOException { + return new HttpJsonDatastoreAdminStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDatastoreAdminStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDatastoreAdminStub( + DatastoreAdminStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDatastoreAdminStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDatastoreAdminStub( + DatastoreAdminStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDatastoreAdminStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDatastoreAdminStub( + DatastoreAdminStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDatastoreAdminCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDatastoreAdminStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDatastoreAdminStub( + DatastoreAdminStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings exportEntitiesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportEntitiesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings importEntitiesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importEntitiesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createIndexTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createIndexMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteIndexTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteIndexMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIndexTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIndexMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listIndexesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listIndexesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.exportEntitiesCallable = + callableFactory.createUnaryCallable( + exportEntitiesTransportSettings, settings.exportEntitiesSettings(), clientContext); + this.exportEntitiesOperationCallable = + callableFactory.createOperationCallable( + exportEntitiesTransportSettings, + settings.exportEntitiesOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importEntitiesCallable = + callableFactory.createUnaryCallable( + importEntitiesTransportSettings, settings.importEntitiesSettings(), clientContext); + this.importEntitiesOperationCallable = + callableFactory.createOperationCallable( + importEntitiesTransportSettings, + settings.importEntitiesOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createIndexCallable = + callableFactory.createUnaryCallable( + createIndexTransportSettings, settings.createIndexSettings(), clientContext); + this.createIndexOperationCallable = + callableFactory.createOperationCallable( + createIndexTransportSettings, + settings.createIndexOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteIndexCallable = + callableFactory.createUnaryCallable( + deleteIndexTransportSettings, settings.deleteIndexSettings(), clientContext); + this.deleteIndexOperationCallable = + callableFactory.createOperationCallable( + deleteIndexTransportSettings, + settings.deleteIndexOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getIndexCallable = + callableFactory.createUnaryCallable( + getIndexTransportSettings, settings.getIndexSettings(), clientContext); + this.listIndexesCallable = + callableFactory.createUnaryCallable( + listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); + this.listIndexesPagedCallable = + callableFactory.createPagedCallable( + listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(exportEntitiesMethodDescriptor); + methodDescriptors.add(importEntitiesMethodDescriptor); + methodDescriptors.add(createIndexMethodDescriptor); + methodDescriptors.add(deleteIndexMethodDescriptor); + methodDescriptors.add(getIndexMethodDescriptor); + methodDescriptors.add(listIndexesMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable exportEntitiesCallable() { + return exportEntitiesCallable; + } + + @Override + public OperationCallable + exportEntitiesOperationCallable() { + return exportEntitiesOperationCallable; + } + + @Override + public UnaryCallable importEntitiesCallable() { + return importEntitiesCallable; + } + + @Override + public OperationCallable + importEntitiesOperationCallable() { + return importEntitiesOperationCallable; + } + + @Override + public UnaryCallable createIndexCallable() { + return createIndexCallable; + } + + @Override + public OperationCallable + createIndexOperationCallable() { + return createIndexOperationCallable; + } + + @Override + public UnaryCallable deleteIndexCallable() { + return deleteIndexCallable; + } + + @Override + public OperationCallable + deleteIndexOperationCallable() { + return deleteIndexOperationCallable; + } + + @Override + public UnaryCallable getIndexCallable() { + return getIndexCallable; + } + + @Override + public UnaryCallable listIndexesCallable() { + return listIndexesCallable; + } + + @Override + public UnaryCallable listIndexesPagedCallable() { + return listIndexesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java new file mode 100644 index 000000000..73732535d --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java @@ -0,0 +1,434 @@ +/* + * 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.datastore.admin.v1; + +import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.datastore.admin.v1.stub.HttpJsonDatastoreAdminStub; +import com.google.common.collect.Lists; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.EntityFilter; +import com.google.datastore.admin.v1.ExportEntitiesResponse; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DatastoreAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static DatastoreAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDatastoreAdminStub.getMethodDescriptors(), + DatastoreAdminSettings.getDefaultEndpoint()); + DatastoreAdminSettings settings = + DatastoreAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DatastoreAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DatastoreAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void exportEntitiesTest() throws Exception { + ExportEntitiesResponse expectedResponse = + ExportEntitiesResponse.newBuilder().setOutputUrl("outputUrl-2119300946").build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEntitiesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String projectId = "projectId-1530"; + Map labels = new HashMap<>(); + EntityFilter entityFilter = EntityFilter.newBuilder().build(); + String outputUrlPrefix = "outputUrlPrefix-1132598048"; + + ExportEntitiesResponse actualResponse = + client.exportEntitiesAsync(projectId, labels, entityFilter, outputUrlPrefix).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportEntitiesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + Map labels = new HashMap<>(); + EntityFilter entityFilter = EntityFilter.newBuilder().build(); + String outputUrlPrefix = "outputUrlPrefix-1132598048"; + client.exportEntitiesAsync(projectId, labels, entityFilter, outputUrlPrefix).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importEntitiesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importEntitiesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String projectId = "projectId-1530"; + Map labels = new HashMap<>(); + String inputUrl = "inputUrl470706501"; + EntityFilter entityFilter = EntityFilter.newBuilder().build(); + + client.importEntitiesAsync(projectId, labels, inputUrl, entityFilter).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importEntitiesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + Map labels = new HashMap<>(); + String inputUrl = "inputUrl470706501"; + EntityFilter entityFilter = EntityFilter.newBuilder().build(); + client.importEntitiesAsync(projectId, labels, inputUrl, entityFilter).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .setKind("kind3292052") + .addAllProperties(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CreateIndexRequest request = + CreateIndexRequest.newBuilder() + .setProjectId("projectId-1530") + .setIndex(Index.newBuilder().build()) + .build(); + + Index actualResponse = client.createIndexAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createIndexExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CreateIndexRequest request = + CreateIndexRequest.newBuilder() + .setProjectId("projectId-1530") + .setIndex(Index.newBuilder().build()) + .build(); + client.createIndexAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .setKind("kind3292052") + .addAllProperties(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DeleteIndexRequest request = + DeleteIndexRequest.newBuilder() + .setProjectId("projectId-1530") + .setIndexId("indexId-7485") + .build(); + + Index actualResponse = client.deleteIndexAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteIndexExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeleteIndexRequest request = + DeleteIndexRequest.newBuilder() + .setProjectId("projectId-1530") + .setIndexId("indexId-7485") + .build(); + client.deleteIndexAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .setKind("kind3292052") + .addAllProperties(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + GetIndexRequest request = + GetIndexRequest.newBuilder() + .setProjectId("projectId-1530") + .setIndexId("indexId-7485") + .build(); + + Index actualResponse = client.getIndex(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIndexExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIndexRequest request = + GetIndexRequest.newBuilder() + .setProjectId("projectId-1530") + .setIndexId("indexId-7485") + .build(); + client.getIndex(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIndexesTest() throws Exception { + Index responsesElement = Index.newBuilder().build(); + ListIndexesResponse expectedResponse = + ListIndexesResponse.newBuilder() + .setNextPageToken("") + .addAllIndexes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListIndexesRequest request = + ListIndexesRequest.newBuilder() + .setProjectId("projectId-1530") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListIndexesPagedResponse pagedListResponse = client.listIndexes(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIndexesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listIndexesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListIndexesRequest request = + ListIndexesRequest.newBuilder() + .setProjectId("projectId-1530") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listIndexes(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientTest.java b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientTest.java new file mode 100644 index 000000000..03538b47e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientTest.java @@ -0,0 +1,428 @@ +/* + * 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.datastore.admin.v1; + +import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.EntityFilter; +import com.google.datastore.admin.v1.ExportEntitiesRequest; +import com.google.datastore.admin.v1.ExportEntitiesResponse; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.ImportEntitiesRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DatastoreAdminClientTest { + private static MockDatastoreAdmin mockDatastoreAdmin; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DatastoreAdminClient client; + + @BeforeClass + public static void startStaticServer() { + mockDatastoreAdmin = new MockDatastoreAdmin(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockDatastoreAdmin)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DatastoreAdminSettings settings = + DatastoreAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DatastoreAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void exportEntitiesTest() throws Exception { + ExportEntitiesResponse expectedResponse = + ExportEntitiesResponse.newBuilder().setOutputUrl("outputUrl-2119300946").build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEntitiesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastoreAdmin.addResponse(resultOperation); + + String projectId = "projectId-894832108"; + Map labels = new HashMap<>(); + EntityFilter entityFilter = EntityFilter.newBuilder().build(); + String outputUrlPrefix = "outputUrlPrefix-1132598048"; + + ExportEntitiesResponse actualResponse = + client.exportEntitiesAsync(projectId, labels, entityFilter, outputUrlPrefix).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportEntitiesRequest actualRequest = ((ExportEntitiesRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(labels, actualRequest.getLabelsMap()); + Assert.assertEquals(entityFilter, actualRequest.getEntityFilter()); + Assert.assertEquals(outputUrlPrefix, actualRequest.getOutputUrlPrefix()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportEntitiesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastoreAdmin.addException(exception); + + try { + String projectId = "projectId-894832108"; + Map labels = new HashMap<>(); + EntityFilter entityFilter = EntityFilter.newBuilder().build(); + String outputUrlPrefix = "outputUrlPrefix-1132598048"; + client.exportEntitiesAsync(projectId, labels, entityFilter, outputUrlPrefix).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void importEntitiesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importEntitiesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastoreAdmin.addResponse(resultOperation); + + String projectId = "projectId-894832108"; + Map labels = new HashMap<>(); + String inputUrl = "inputUrl470706501"; + EntityFilter entityFilter = EntityFilter.newBuilder().build(); + + client.importEntitiesAsync(projectId, labels, inputUrl, entityFilter).get(); + + List actualRequests = mockDatastoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportEntitiesRequest actualRequest = ((ImportEntitiesRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(labels, actualRequest.getLabelsMap()); + Assert.assertEquals(inputUrl, actualRequest.getInputUrl()); + Assert.assertEquals(entityFilter, actualRequest.getEntityFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importEntitiesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastoreAdmin.addException(exception); + + try { + String projectId = "projectId-894832108"; + Map labels = new HashMap<>(); + String inputUrl = "inputUrl470706501"; + EntityFilter entityFilter = EntityFilter.newBuilder().build(); + client.importEntitiesAsync(projectId, labels, inputUrl, entityFilter).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .setKind("kind3292052") + .addAllProperties(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastoreAdmin.addResponse(resultOperation); + + CreateIndexRequest request = + CreateIndexRequest.newBuilder() + .setProjectId("projectId-894832108") + .setIndex(Index.newBuilder().build()) + .build(); + + Index actualResponse = client.createIndexAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIndexRequest actualRequest = ((CreateIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getIndex(), actualRequest.getIndex()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastoreAdmin.addException(exception); + + try { + CreateIndexRequest request = + CreateIndexRequest.newBuilder() + .setProjectId("projectId-894832108") + .setIndex(Index.newBuilder().build()) + .build(); + client.createIndexAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .setKind("kind3292052") + .addAllProperties(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastoreAdmin.addResponse(resultOperation); + + DeleteIndexRequest request = + DeleteIndexRequest.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .build(); + + Index actualResponse = client.deleteIndexAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIndexRequest actualRequest = ((DeleteIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getIndexId(), actualRequest.getIndexId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastoreAdmin.addException(exception); + + try { + DeleteIndexRequest request = + DeleteIndexRequest.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .build(); + client.deleteIndexAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .setKind("kind3292052") + .addAllProperties(new ArrayList()) + .build(); + mockDatastoreAdmin.addResponse(expectedResponse); + + GetIndexRequest request = + GetIndexRequest.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .build(); + + Index actualResponse = client.getIndex(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIndexRequest actualRequest = ((GetIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getIndexId(), actualRequest.getIndexId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastoreAdmin.addException(exception); + + try { + GetIndexRequest request = + GetIndexRequest.newBuilder() + .setProjectId("projectId-894832108") + .setIndexId("indexId1943291277") + .build(); + client.getIndex(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIndexesTest() throws Exception { + Index responsesElement = Index.newBuilder().build(); + ListIndexesResponse expectedResponse = + ListIndexesResponse.newBuilder() + .setNextPageToken("") + .addAllIndexes(Arrays.asList(responsesElement)) + .build(); + mockDatastoreAdmin.addResponse(expectedResponse); + + ListIndexesRequest request = + ListIndexesRequest.newBuilder() + .setProjectId("projectId-894832108") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListIndexesPagedResponse pagedListResponse = client.listIndexes(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIndexesList().get(0), resources.get(0)); + + List actualRequests = mockDatastoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIndexesRequest actualRequest = ((ListIndexesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIndexesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastoreAdmin.addException(exception); + + try { + ListIndexesRequest request = + ListIndexesRequest.newBuilder() + .setProjectId("projectId-894832108") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listIndexes(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdmin.java b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdmin.java new file mode 100644 index 000000000..3c683fc8c --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdmin.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datastore.admin.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDatastoreAdmin implements MockGrpcService { + private final MockDatastoreAdminImpl serviceImpl; + + public MockDatastoreAdmin() { + serviceImpl = new MockDatastoreAdminImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdminImpl.java b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdminImpl.java new file mode 100644 index 000000000..b27dcf28c --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdminImpl.java @@ -0,0 +1,192 @@ +/* + * 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.datastore.admin.v1; + +import com.google.api.core.BetaApi; +import com.google.datastore.admin.v1.CreateIndexRequest; +import com.google.datastore.admin.v1.DatastoreAdminGrpc.DatastoreAdminImplBase; +import com.google.datastore.admin.v1.DeleteIndexRequest; +import com.google.datastore.admin.v1.ExportEntitiesRequest; +import com.google.datastore.admin.v1.GetIndexRequest; +import com.google.datastore.admin.v1.ImportEntitiesRequest; +import com.google.datastore.admin.v1.Index; +import com.google.datastore.admin.v1.ListIndexesRequest; +import com.google.datastore.admin.v1.ListIndexesResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDatastoreAdminImpl extends DatastoreAdminImplBase { + private List requests; + private Queue responses; + + public MockDatastoreAdminImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void exportEntities( + ExportEntitiesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExportEntities, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importEntities( + ImportEntitiesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ImportEntities, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createIndex(CreateIndexRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteIndex(DeleteIndexRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIndex(GetIndexRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Index) { + requests.add(request); + responseObserver.onNext(((Index) 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 GetIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Index.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listIndexes( + ListIndexesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListIndexesResponse) { + requests.add(request); + responseObserver.onNext(((ListIndexesResponse) 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 ListIndexes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListIndexesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminGrpc.java new file mode 100644 index 000000000..3fa3ca1c0 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminGrpc.java @@ -0,0 +1,1056 @@ +package com.google.datastore.admin.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Google Cloud Datastore Admin API
+ * The Datastore Admin API provides several admin services for Cloud Datastore.
+ * -----------------------------------------------------------------------------
+ * ## Concepts
+ * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
+ * API.
+ * Operation: An Operation represents work being performed in the background.
+ * EntityFilter: Allows specifying a subset of entities in a project. This is
+ * specified as a combination of kinds and namespaces (either or both of which
+ * may be all).
+ * -----------------------------------------------------------------------------
+ * ## Services
+ * # Export/Import
+ * The Export/Import service provides the ability to copy all or a subset of
+ * entities to/from Google Cloud Storage.
+ * Exported data may be imported into Cloud Datastore for any Google Cloud
+ * Platform project. It is not restricted to the export source project. It is
+ * possible to export from one project and then import into another.
+ * Exported data can also be loaded into Google BigQuery for analysis.
+ * Exports and imports are performed asynchronously. An Operation resource is
+ * created for each export/import. The state (including any errors encountered)
+ * of the export/import may be queried via the Operation resource.
+ * # Index
+ * The index service manages Cloud Datastore composite indexes.
+ * Index creation and deletion are performed asynchronously.
+ * An Operation resource is created for each such asynchronous operation.
+ * The state of the operation (including any errors encountered)
+ * may be queried via the Operation resource.
+ * # Operation
+ * The Operations collection provides a record of actions performed for the
+ * specified project (including any operations in progress). Operations are not
+ * created directly but through calls on other collections or resources.
+ * An operation that is not yet done may be cancelled. The request to cancel is
+ * asynchronous and the operation may continue to run for some time after the
+ * request to cancel is made.
+ * An operation that is done may be deleted so that it is no longer listed as
+ * part of the Operation collection.
+ * ListOperations returns all pending operations, but not completed operations.
+ * Operations are created by service DatastoreAdmin,
+ * but are accessed via service google.longrunning.Operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/datastore/admin/v1/datastore_admin.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DatastoreAdminGrpc { + + private DatastoreAdminGrpc() {} + + public static final String SERVICE_NAME = "google.datastore.admin.v1.DatastoreAdmin"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getExportEntitiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportEntities", + requestType = com.google.datastore.admin.v1.ExportEntitiesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExportEntitiesMethod() { + io.grpc.MethodDescriptor getExportEntitiesMethod; + if ((getExportEntitiesMethod = DatastoreAdminGrpc.getExportEntitiesMethod) == null) { + synchronized (DatastoreAdminGrpc.class) { + if ((getExportEntitiesMethod = DatastoreAdminGrpc.getExportEntitiesMethod) == null) { + DatastoreAdminGrpc.getExportEntitiesMethod = getExportEntitiesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportEntities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.datastore.admin.v1.ExportEntitiesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("ExportEntities")) + .build(); + } + } + } + return getExportEntitiesMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportEntitiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportEntities", + requestType = com.google.datastore.admin.v1.ImportEntitiesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportEntitiesMethod() { + io.grpc.MethodDescriptor getImportEntitiesMethod; + if ((getImportEntitiesMethod = DatastoreAdminGrpc.getImportEntitiesMethod) == null) { + synchronized (DatastoreAdminGrpc.class) { + if ((getImportEntitiesMethod = DatastoreAdminGrpc.getImportEntitiesMethod) == null) { + DatastoreAdminGrpc.getImportEntitiesMethod = getImportEntitiesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportEntities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.datastore.admin.v1.ImportEntitiesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("ImportEntities")) + .build(); + } + } + } + return getImportEntitiesMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateIndex", + requestType = com.google.datastore.admin.v1.CreateIndexRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateIndexMethod() { + io.grpc.MethodDescriptor getCreateIndexMethod; + if ((getCreateIndexMethod = DatastoreAdminGrpc.getCreateIndexMethod) == null) { + synchronized (DatastoreAdminGrpc.class) { + if ((getCreateIndexMethod = DatastoreAdminGrpc.getCreateIndexMethod) == null) { + DatastoreAdminGrpc.getCreateIndexMethod = getCreateIndexMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.datastore.admin.v1.CreateIndexRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("CreateIndex")) + .build(); + } + } + } + return getCreateIndexMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIndex", + requestType = com.google.datastore.admin.v1.DeleteIndexRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteIndexMethod() { + io.grpc.MethodDescriptor getDeleteIndexMethod; + if ((getDeleteIndexMethod = DatastoreAdminGrpc.getDeleteIndexMethod) == null) { + synchronized (DatastoreAdminGrpc.class) { + if ((getDeleteIndexMethod = DatastoreAdminGrpc.getDeleteIndexMethod) == null) { + DatastoreAdminGrpc.getDeleteIndexMethod = getDeleteIndexMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.datastore.admin.v1.DeleteIndexRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("DeleteIndex")) + .build(); + } + } + } + return getDeleteIndexMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIndex", + requestType = com.google.datastore.admin.v1.GetIndexRequest.class, + responseType = com.google.datastore.admin.v1.Index.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIndexMethod() { + io.grpc.MethodDescriptor getGetIndexMethod; + if ((getGetIndexMethod = DatastoreAdminGrpc.getGetIndexMethod) == null) { + synchronized (DatastoreAdminGrpc.class) { + if ((getGetIndexMethod = DatastoreAdminGrpc.getGetIndexMethod) == null) { + DatastoreAdminGrpc.getGetIndexMethod = getGetIndexMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.datastore.admin.v1.GetIndexRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.datastore.admin.v1.Index.getDefaultInstance())) + .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("GetIndex")) + .build(); + } + } + } + return getGetIndexMethod; + } + + private static volatile io.grpc.MethodDescriptor getListIndexesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIndexes", + requestType = com.google.datastore.admin.v1.ListIndexesRequest.class, + responseType = com.google.datastore.admin.v1.ListIndexesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListIndexesMethod() { + io.grpc.MethodDescriptor getListIndexesMethod; + if ((getListIndexesMethod = DatastoreAdminGrpc.getListIndexesMethod) == null) { + synchronized (DatastoreAdminGrpc.class) { + if ((getListIndexesMethod = DatastoreAdminGrpc.getListIndexesMethod) == null) { + DatastoreAdminGrpc.getListIndexesMethod = getListIndexesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListIndexes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.datastore.admin.v1.ListIndexesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.datastore.admin.v1.ListIndexesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("ListIndexes")) + .build(); + } + } + } + return getListIndexesMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DatastoreAdminStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastoreAdminStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastoreAdminStub(channel, callOptions); + } + }; + return DatastoreAdminStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DatastoreAdminBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastoreAdminBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastoreAdminBlockingStub(channel, callOptions); + } + }; + return DatastoreAdminBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DatastoreAdminFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastoreAdminFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastoreAdminFutureStub(channel, callOptions); + } + }; + return DatastoreAdminFutureStub.newStub(factory, channel); + } + + /** + *
+   * Google Cloud Datastore Admin API
+   * The Datastore Admin API provides several admin services for Cloud Datastore.
+   * -----------------------------------------------------------------------------
+   * ## Concepts
+   * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
+   * API.
+   * Operation: An Operation represents work being performed in the background.
+   * EntityFilter: Allows specifying a subset of entities in a project. This is
+   * specified as a combination of kinds and namespaces (either or both of which
+   * may be all).
+   * -----------------------------------------------------------------------------
+   * ## Services
+   * # Export/Import
+   * The Export/Import service provides the ability to copy all or a subset of
+   * entities to/from Google Cloud Storage.
+   * Exported data may be imported into Cloud Datastore for any Google Cloud
+   * Platform project. It is not restricted to the export source project. It is
+   * possible to export from one project and then import into another.
+   * Exported data can also be loaded into Google BigQuery for analysis.
+   * Exports and imports are performed asynchronously. An Operation resource is
+   * created for each export/import. The state (including any errors encountered)
+   * of the export/import may be queried via the Operation resource.
+   * # Index
+   * The index service manages Cloud Datastore composite indexes.
+   * Index creation and deletion are performed asynchronously.
+   * An Operation resource is created for each such asynchronous operation.
+   * The state of the operation (including any errors encountered)
+   * may be queried via the Operation resource.
+   * # Operation
+   * The Operations collection provides a record of actions performed for the
+   * specified project (including any operations in progress). Operations are not
+   * created directly but through calls on other collections or resources.
+   * An operation that is not yet done may be cancelled. The request to cancel is
+   * asynchronous and the operation may continue to run for some time after the
+   * request to cancel is made.
+   * An operation that is done may be deleted so that it is no longer listed as
+   * part of the Operation collection.
+   * ListOperations returns all pending operations, but not completed operations.
+   * Operations are created by service DatastoreAdmin,
+   * but are accessed via service google.longrunning.Operations.
+   * 
+ */ + public static abstract class DatastoreAdminImplBase implements io.grpc.BindableService { + + /** + *
+     * Exports a copy of all or a subset of entities from Google Cloud Datastore
+     * to another storage system, such as Google Cloud Storage. Recent updates to
+     * entities may not be reflected in the export. The export occurs in the
+     * background and its progress can be monitored and managed via the
+     * Operation resource that is created. The output of an export may only be
+     * used once the associated operation is done. If an export operation is
+     * cancelled before completion it may leave partial data behind in Google
+     * Cloud Storage.
+     * 
+ */ + public void exportEntities(com.google.datastore.admin.v1.ExportEntitiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportEntitiesMethod(), responseObserver); + } + + /** + *
+     * Imports entities into Google Cloud Datastore. Existing entities with the
+     * same key are overwritten. The import occurs in the background and its
+     * progress can be monitored and managed via the Operation resource that is
+     * created. If an ImportEntities operation is cancelled, it is possible
+     * that a subset of the data has already been imported to Cloud Datastore.
+     * 
+ */ + public void importEntities(com.google.datastore.admin.v1.ImportEntitiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportEntitiesMethod(), responseObserver); + } + + /** + *
+     * Creates the specified index.
+     * A newly created index's initial state is `CREATING`. On completion of the
+     * returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
+     * If the index already exists, the call will return an `ALREADY_EXISTS`
+     * status.
+     * During index creation, the process could result in an error, in which
+     * case the index will move to the `ERROR` state. The process can be recovered
+     * by fixing the data that caused the error, removing the index with
+     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
+     * re-creating the index with [create]
+     * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
+     * Indexes with a single property cannot be created.
+     * 
+ */ + public void createIndex(com.google.datastore.admin.v1.CreateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateIndexMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing index.
+     * An index can only be deleted if it is in a `READY` or `ERROR` state. On
+     * successful execution of the request, the index will be in a `DELETING`
+     * [state][google.datastore.admin.v1.Index.State]. And on completion of the
+     * returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
+     * During index deletion, the process could result in an error, in which
+     * case the index will move to the `ERROR` state. The process can be recovered
+     * by fixing the data that caused the error, followed by calling
+     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
+     * 
+ */ + public void deleteIndex(com.google.datastore.admin.v1.DeleteIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteIndexMethod(), responseObserver); + } + + /** + *
+     * Gets an index.
+     * 
+ */ + public void getIndex(com.google.datastore.admin.v1.GetIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIndexMethod(), responseObserver); + } + + /** + *
+     * Lists the indexes that match the specified filters.  Datastore uses an
+     * eventually consistent query to fetch the list of indexes and may
+     * occasionally return stale results.
+     * 
+ */ + public void listIndexes(com.google.datastore.admin.v1.ListIndexesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListIndexesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getExportEntitiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.datastore.admin.v1.ExportEntitiesRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_ENTITIES))) + .addMethod( + getImportEntitiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.datastore.admin.v1.ImportEntitiesRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_ENTITIES))) + .addMethod( + getCreateIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.datastore.admin.v1.CreateIndexRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INDEX))) + .addMethod( + getDeleteIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.datastore.admin.v1.DeleteIndexRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INDEX))) + .addMethod( + getGetIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.datastore.admin.v1.GetIndexRequest, + com.google.datastore.admin.v1.Index>( + this, METHODID_GET_INDEX))) + .addMethod( + getListIndexesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.datastore.admin.v1.ListIndexesRequest, + com.google.datastore.admin.v1.ListIndexesResponse>( + this, METHODID_LIST_INDEXES))) + .build(); + } + } + + /** + *
+   * Google Cloud Datastore Admin API
+   * The Datastore Admin API provides several admin services for Cloud Datastore.
+   * -----------------------------------------------------------------------------
+   * ## Concepts
+   * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
+   * API.
+   * Operation: An Operation represents work being performed in the background.
+   * EntityFilter: Allows specifying a subset of entities in a project. This is
+   * specified as a combination of kinds and namespaces (either or both of which
+   * may be all).
+   * -----------------------------------------------------------------------------
+   * ## Services
+   * # Export/Import
+   * The Export/Import service provides the ability to copy all or a subset of
+   * entities to/from Google Cloud Storage.
+   * Exported data may be imported into Cloud Datastore for any Google Cloud
+   * Platform project. It is not restricted to the export source project. It is
+   * possible to export from one project and then import into another.
+   * Exported data can also be loaded into Google BigQuery for analysis.
+   * Exports and imports are performed asynchronously. An Operation resource is
+   * created for each export/import. The state (including any errors encountered)
+   * of the export/import may be queried via the Operation resource.
+   * # Index
+   * The index service manages Cloud Datastore composite indexes.
+   * Index creation and deletion are performed asynchronously.
+   * An Operation resource is created for each such asynchronous operation.
+   * The state of the operation (including any errors encountered)
+   * may be queried via the Operation resource.
+   * # Operation
+   * The Operations collection provides a record of actions performed for the
+   * specified project (including any operations in progress). Operations are not
+   * created directly but through calls on other collections or resources.
+   * An operation that is not yet done may be cancelled. The request to cancel is
+   * asynchronous and the operation may continue to run for some time after the
+   * request to cancel is made.
+   * An operation that is done may be deleted so that it is no longer listed as
+   * part of the Operation collection.
+   * ListOperations returns all pending operations, but not completed operations.
+   * Operations are created by service DatastoreAdmin,
+   * but are accessed via service google.longrunning.Operations.
+   * 
+ */ + public static final class DatastoreAdminStub extends io.grpc.stub.AbstractAsyncStub { + private DatastoreAdminStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastoreAdminStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastoreAdminStub(channel, callOptions); + } + + /** + *
+     * Exports a copy of all or a subset of entities from Google Cloud Datastore
+     * to another storage system, such as Google Cloud Storage. Recent updates to
+     * entities may not be reflected in the export. The export occurs in the
+     * background and its progress can be monitored and managed via the
+     * Operation resource that is created. The output of an export may only be
+     * used once the associated operation is done. If an export operation is
+     * cancelled before completion it may leave partial data behind in Google
+     * Cloud Storage.
+     * 
+ */ + public void exportEntities(com.google.datastore.admin.v1.ExportEntitiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportEntitiesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Imports entities into Google Cloud Datastore. Existing entities with the
+     * same key are overwritten. The import occurs in the background and its
+     * progress can be monitored and managed via the Operation resource that is
+     * created. If an ImportEntities operation is cancelled, it is possible
+     * that a subset of the data has already been imported to Cloud Datastore.
+     * 
+ */ + public void importEntities(com.google.datastore.admin.v1.ImportEntitiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportEntitiesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates the specified index.
+     * A newly created index's initial state is `CREATING`. On completion of the
+     * returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
+     * If the index already exists, the call will return an `ALREADY_EXISTS`
+     * status.
+     * During index creation, the process could result in an error, in which
+     * case the index will move to the `ERROR` state. The process can be recovered
+     * by fixing the data that caused the error, removing the index with
+     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
+     * re-creating the index with [create]
+     * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
+     * Indexes with a single property cannot be created.
+     * 
+ */ + public void createIndex(com.google.datastore.admin.v1.CreateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing index.
+     * An index can only be deleted if it is in a `READY` or `ERROR` state. On
+     * successful execution of the request, the index will be in a `DELETING`
+     * [state][google.datastore.admin.v1.Index.State]. And on completion of the
+     * returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
+     * During index deletion, the process could result in an error, in which
+     * case the index will move to the `ERROR` state. The process can be recovered
+     * by fixing the data that caused the error, followed by calling
+     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
+     * 
+ */ + public void deleteIndex(com.google.datastore.admin.v1.DeleteIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an index.
+     * 
+ */ + public void getIndex(com.google.datastore.admin.v1.GetIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIndexMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the indexes that match the specified filters.  Datastore uses an
+     * eventually consistent query to fetch the list of indexes and may
+     * occasionally return stale results.
+     * 
+ */ + public void listIndexes(com.google.datastore.admin.v1.ListIndexesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIndexesMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Google Cloud Datastore Admin API
+   * The Datastore Admin API provides several admin services for Cloud Datastore.
+   * -----------------------------------------------------------------------------
+   * ## Concepts
+   * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
+   * API.
+   * Operation: An Operation represents work being performed in the background.
+   * EntityFilter: Allows specifying a subset of entities in a project. This is
+   * specified as a combination of kinds and namespaces (either or both of which
+   * may be all).
+   * -----------------------------------------------------------------------------
+   * ## Services
+   * # Export/Import
+   * The Export/Import service provides the ability to copy all or a subset of
+   * entities to/from Google Cloud Storage.
+   * Exported data may be imported into Cloud Datastore for any Google Cloud
+   * Platform project. It is not restricted to the export source project. It is
+   * possible to export from one project and then import into another.
+   * Exported data can also be loaded into Google BigQuery for analysis.
+   * Exports and imports are performed asynchronously. An Operation resource is
+   * created for each export/import. The state (including any errors encountered)
+   * of the export/import may be queried via the Operation resource.
+   * # Index
+   * The index service manages Cloud Datastore composite indexes.
+   * Index creation and deletion are performed asynchronously.
+   * An Operation resource is created for each such asynchronous operation.
+   * The state of the operation (including any errors encountered)
+   * may be queried via the Operation resource.
+   * # Operation
+   * The Operations collection provides a record of actions performed for the
+   * specified project (including any operations in progress). Operations are not
+   * created directly but through calls on other collections or resources.
+   * An operation that is not yet done may be cancelled. The request to cancel is
+   * asynchronous and the operation may continue to run for some time after the
+   * request to cancel is made.
+   * An operation that is done may be deleted so that it is no longer listed as
+   * part of the Operation collection.
+   * ListOperations returns all pending operations, but not completed operations.
+   * Operations are created by service DatastoreAdmin,
+   * but are accessed via service google.longrunning.Operations.
+   * 
+ */ + public static final class DatastoreAdminBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private DatastoreAdminBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastoreAdminBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastoreAdminBlockingStub(channel, callOptions); + } + + /** + *
+     * Exports a copy of all or a subset of entities from Google Cloud Datastore
+     * to another storage system, such as Google Cloud Storage. Recent updates to
+     * entities may not be reflected in the export. The export occurs in the
+     * background and its progress can be monitored and managed via the
+     * Operation resource that is created. The output of an export may only be
+     * used once the associated operation is done. If an export operation is
+     * cancelled before completion it may leave partial data behind in Google
+     * Cloud Storage.
+     * 
+ */ + public com.google.longrunning.Operation exportEntities(com.google.datastore.admin.v1.ExportEntitiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportEntitiesMethod(), getCallOptions(), request); + } + + /** + *
+     * Imports entities into Google Cloud Datastore. Existing entities with the
+     * same key are overwritten. The import occurs in the background and its
+     * progress can be monitored and managed via the Operation resource that is
+     * created. If an ImportEntities operation is cancelled, it is possible
+     * that a subset of the data has already been imported to Cloud Datastore.
+     * 
+ */ + public com.google.longrunning.Operation importEntities(com.google.datastore.admin.v1.ImportEntitiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportEntitiesMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates the specified index.
+     * A newly created index's initial state is `CREATING`. On completion of the
+     * returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
+     * If the index already exists, the call will return an `ALREADY_EXISTS`
+     * status.
+     * During index creation, the process could result in an error, in which
+     * case the index will move to the `ERROR` state. The process can be recovered
+     * by fixing the data that caused the error, removing the index with
+     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
+     * re-creating the index with [create]
+     * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
+     * Indexes with a single property cannot be created.
+     * 
+ */ + public com.google.longrunning.Operation createIndex(com.google.datastore.admin.v1.CreateIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIndexMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing index.
+     * An index can only be deleted if it is in a `READY` or `ERROR` state. On
+     * successful execution of the request, the index will be in a `DELETING`
+     * [state][google.datastore.admin.v1.Index.State]. And on completion of the
+     * returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
+     * During index deletion, the process could result in an error, in which
+     * case the index will move to the `ERROR` state. The process can be recovered
+     * by fixing the data that caused the error, followed by calling
+     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
+     * 
+ */ + public com.google.longrunning.Operation deleteIndex(com.google.datastore.admin.v1.DeleteIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIndexMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an index.
+     * 
+ */ + public com.google.datastore.admin.v1.Index getIndex(com.google.datastore.admin.v1.GetIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIndexMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the indexes that match the specified filters.  Datastore uses an
+     * eventually consistent query to fetch the list of indexes and may
+     * occasionally return stale results.
+     * 
+ */ + public com.google.datastore.admin.v1.ListIndexesResponse listIndexes(com.google.datastore.admin.v1.ListIndexesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIndexesMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Google Cloud Datastore Admin API
+   * The Datastore Admin API provides several admin services for Cloud Datastore.
+   * -----------------------------------------------------------------------------
+   * ## Concepts
+   * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
+   * API.
+   * Operation: An Operation represents work being performed in the background.
+   * EntityFilter: Allows specifying a subset of entities in a project. This is
+   * specified as a combination of kinds and namespaces (either or both of which
+   * may be all).
+   * -----------------------------------------------------------------------------
+   * ## Services
+   * # Export/Import
+   * The Export/Import service provides the ability to copy all or a subset of
+   * entities to/from Google Cloud Storage.
+   * Exported data may be imported into Cloud Datastore for any Google Cloud
+   * Platform project. It is not restricted to the export source project. It is
+   * possible to export from one project and then import into another.
+   * Exported data can also be loaded into Google BigQuery for analysis.
+   * Exports and imports are performed asynchronously. An Operation resource is
+   * created for each export/import. The state (including any errors encountered)
+   * of the export/import may be queried via the Operation resource.
+   * # Index
+   * The index service manages Cloud Datastore composite indexes.
+   * Index creation and deletion are performed asynchronously.
+   * An Operation resource is created for each such asynchronous operation.
+   * The state of the operation (including any errors encountered)
+   * may be queried via the Operation resource.
+   * # Operation
+   * The Operations collection provides a record of actions performed for the
+   * specified project (including any operations in progress). Operations are not
+   * created directly but through calls on other collections or resources.
+   * An operation that is not yet done may be cancelled. The request to cancel is
+   * asynchronous and the operation may continue to run for some time after the
+   * request to cancel is made.
+   * An operation that is done may be deleted so that it is no longer listed as
+   * part of the Operation collection.
+   * ListOperations returns all pending operations, but not completed operations.
+   * Operations are created by service DatastoreAdmin,
+   * but are accessed via service google.longrunning.Operations.
+   * 
+ */ + public static final class DatastoreAdminFutureStub extends io.grpc.stub.AbstractFutureStub { + private DatastoreAdminFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastoreAdminFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastoreAdminFutureStub(channel, callOptions); + } + + /** + *
+     * Exports a copy of all or a subset of entities from Google Cloud Datastore
+     * to another storage system, such as Google Cloud Storage. Recent updates to
+     * entities may not be reflected in the export. The export occurs in the
+     * background and its progress can be monitored and managed via the
+     * Operation resource that is created. The output of an export may only be
+     * used once the associated operation is done. If an export operation is
+     * cancelled before completion it may leave partial data behind in Google
+     * Cloud Storage.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture exportEntities( + com.google.datastore.admin.v1.ExportEntitiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportEntitiesMethod(), getCallOptions()), request); + } + + /** + *
+     * Imports entities into Google Cloud Datastore. Existing entities with the
+     * same key are overwritten. The import occurs in the background and its
+     * progress can be monitored and managed via the Operation resource that is
+     * created. If an ImportEntities operation is cancelled, it is possible
+     * that a subset of the data has already been imported to Cloud Datastore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importEntities( + com.google.datastore.admin.v1.ImportEntitiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportEntitiesMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates the specified index.
+     * A newly created index's initial state is `CREATING`. On completion of the
+     * returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
+     * If the index already exists, the call will return an `ALREADY_EXISTS`
+     * status.
+     * During index creation, the process could result in an error, in which
+     * case the index will move to the `ERROR` state. The process can be recovered
+     * by fixing the data that caused the error, removing the index with
+     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
+     * re-creating the index with [create]
+     * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
+     * Indexes with a single property cannot be created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createIndex( + com.google.datastore.admin.v1.CreateIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing index.
+     * An index can only be deleted if it is in a `READY` or `ERROR` state. On
+     * successful execution of the request, the index will be in a `DELETING`
+     * [state][google.datastore.admin.v1.Index.State]. And on completion of the
+     * returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
+     * During index deletion, the process could result in an error, in which
+     * case the index will move to the `ERROR` state. The process can be recovered
+     * by fixing the data that caused the error, followed by calling
+     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteIndex( + com.google.datastore.admin.v1.DeleteIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an index.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIndex( + com.google.datastore.admin.v1.GetIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIndexMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the indexes that match the specified filters.  Datastore uses an
+     * eventually consistent query to fetch the list of indexes and may
+     * occasionally return stale results.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listIndexes( + com.google.datastore.admin.v1.ListIndexesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListIndexesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_EXPORT_ENTITIES = 0; + private static final int METHODID_IMPORT_ENTITIES = 1; + private static final int METHODID_CREATE_INDEX = 2; + private static final int METHODID_DELETE_INDEX = 3; + private static final int METHODID_GET_INDEX = 4; + private static final int METHODID_LIST_INDEXES = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final DatastoreAdminImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DatastoreAdminImplBase 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_EXPORT_ENTITIES: + serviceImpl.exportEntities((com.google.datastore.admin.v1.ExportEntitiesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_ENTITIES: + serviceImpl.importEntities((com.google.datastore.admin.v1.ImportEntitiesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INDEX: + serviceImpl.createIndex((com.google.datastore.admin.v1.CreateIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INDEX: + serviceImpl.deleteIndex((com.google.datastore.admin.v1.DeleteIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INDEX: + serviceImpl.getIndex((com.google.datastore.admin.v1.GetIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_INDEXES: + serviceImpl.listIndexes((com.google.datastore.admin.v1.ListIndexesRequest) 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 DatastoreAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DatastoreAdminBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DatastoreAdmin"); + } + } + + private static final class DatastoreAdminFileDescriptorSupplier + extends DatastoreAdminBaseDescriptorSupplier { + DatastoreAdminFileDescriptorSupplier() {} + } + + private static final class DatastoreAdminMethodDescriptorSupplier + extends DatastoreAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DatastoreAdminMethodDescriptorSupplier(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 (DatastoreAdminGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DatastoreAdminFileDescriptorSupplier()) + .addMethod(getExportEntitiesMethod()) + .addMethod(getImportEntitiesMethod()) + .addMethod(getCreateIndexMethod()) + .addMethod(getDeleteIndexMethod()) + .addMethod(getGetIndexMethod()) + .addMethod(getListIndexesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadata.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadata.java similarity index 69% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadata.java index f673a574d..3eab0652c 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadata.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * Metadata common to all Datastore Admin operations.
  * 
* * Protobuf type {@code google.datastore.admin.v1.CommonMetadata} */ -public final class CommonMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.CommonMetadata) CommonMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonMetadata.newBuilder() to construct. private CommonMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonMetadata() { operationType_ = 0; state_ = 0; @@ -44,15 +26,16 @@ private CommonMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommonMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,70 +55,64 @@ private CommonMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 24: - { - int rawValue = input.readEnum(); - operationType_ = rawValue; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 40: - { - int rawValue = input.readEnum(); - state_ = rawValue; - break; + break; + } + case 24: { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 40: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -143,52 +120,48 @@ private CommonMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.CommonMetadata.class, - com.google.datastore.admin.v1.CommonMetadata.Builder.class); + com.google.datastore.admin.v1.CommonMetadata.class, com.google.datastore.admin.v1.CommonMetadata.Builder.class); } /** - * - * *
    * The various possible states for an ongoing Operation.
    * 
* * Protobuf enum {@code google.datastore.admin.v1.CommonMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -197,8 +170,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being prepared for processing.
      * 
@@ -207,8 +178,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ INITIALIZING(1), /** - * - * *
      * Request is actively being processed.
      * 
@@ -217,8 +186,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROCESSING(2), /** - * - * *
      * Request is in the process of being cancelled after user called
      * google.longrunning.Operations.CancelOperation on the operation.
@@ -228,8 +195,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(3),
     /**
-     *
-     *
      * 
      * Request has been processed and is in its finalization stage.
      * 
@@ -238,8 +203,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FINALIZING(4), /** - * - * *
      * Request has completed successfully.
      * 
@@ -248,8 +211,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESSFUL(5), /** - * - * *
      * Request has finished being processed, but encountered an error.
      * 
@@ -258,8 +219,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(6), /** - * - * *
      * Request has finished being cancelled after user called
      * google.longrunning.Operations.CancelOperation.
@@ -272,8 +231,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified.
      * 
@@ -282,8 +239,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being prepared for processing.
      * 
@@ -292,8 +247,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INITIALIZING_VALUE = 1; /** - * - * *
      * Request is actively being processed.
      * 
@@ -302,8 +255,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROCESSING_VALUE = 2; /** - * - * *
      * Request is in the process of being cancelled after user called
      * google.longrunning.Operations.CancelOperation on the operation.
@@ -313,8 +264,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 3;
     /**
-     *
-     *
      * 
      * Request has been processed and is in its finalization stage.
      * 
@@ -323,8 +272,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINALIZING_VALUE = 4; /** - * - * *
      * Request has completed successfully.
      * 
@@ -333,8 +280,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESSFUL_VALUE = 5; /** - * - * *
      * Request has finished being processed, but encountered an error.
      * 
@@ -343,8 +288,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 6; /** - * - * *
      * Request has finished being cancelled after user called
      * google.longrunning.Operations.CancelOperation.
@@ -354,6 +297,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 7;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -378,59 +322,54 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return INITIALIZING;
-        case 2:
-          return PROCESSING;
-        case 3:
-          return CANCELLING;
-        case 4:
-          return FINALIZING;
-        case 5:
-          return SUCCESSFUL;
-        case 6:
-          return FAILED;
-        case 7:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return INITIALIZING;
+        case 2: return PROCESSING;
+        case 3: return CANCELLING;
+        case 4: return FINALIZING;
+        case 5: return SUCCESSFUL;
+        case 6: return FAILED;
+        case 7: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.datastore.admin.v1.CommonMetadata.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;
@@ -450,14 +389,11 @@ private State(int value) {
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
-   *
-   *
    * 
    * The time that work began on the operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -465,14 +401,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time that work began on the operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -480,8 +413,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time that work began on the operation.
    * 
@@ -496,14 +427,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation ended, either successfully or otherwise.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -511,14 +439,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time the operation ended, either successfully or otherwise.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -526,8 +451,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation ended, either successfully or otherwise.
    * 
@@ -542,59 +465,51 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int OPERATION_TYPE_FIELD_NUMBER = 3; private int operationType_; /** - * - * *
    * The type of the operation. Can be used as a filter in
    * ListOperationsRequest.
    * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override - public int getOperationTypeValue() { + @java.lang.Override public int getOperationTypeValue() { return operationType_; } /** - * - * *
    * The type of the operation. Can be used as a filter in
    * ListOperationsRequest.
    * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @return The operationType. */ - @java.lang.Override - public com.google.datastore.admin.v1.OperationType getOperationType() { + @java.lang.Override public com.google.datastore.admin.v1.OperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.OperationType result = - com.google.datastore.admin.v1.OperationType.valueOf(operationType_); + com.google.datastore.admin.v1.OperationType result = com.google.datastore.admin.v1.OperationType.valueOf(operationType_); return result == null ? com.google.datastore.admin.v1.OperationType.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -603,8 +518,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -612,22 +525,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -636,12 +549,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -650,16 +562,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -668,11 +580,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -682,43 +595,31 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int STATE_FIELD_NUMBER = 5;
   private int state_;
   /**
-   *
-   *
    * 
    * The current state of the Operation.
    * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @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 current state of the Operation.
    * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @return The state. */ - @java.lang.Override - public com.google.datastore.admin.v1.CommonMetadata.State getState() { + @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.CommonMetadata.State result = - com.google.datastore.admin.v1.CommonMetadata.State.valueOf(state_); - return result == null - ? com.google.datastore.admin.v1.CommonMetadata.State.UNRECOGNIZED - : result; + com.google.datastore.admin.v1.CommonMetadata.State result = com.google.datastore.admin.v1.CommonMetadata.State.valueOf(state_); + return result == null ? com.google.datastore.admin.v1.CommonMetadata.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -730,21 +631,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } if (endTime_ != null) { output.writeMessage(2, getEndTime()); } - if (operationType_ - != com.google.datastore.admin.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { + if (operationType_ != com.google.datastore.admin.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, operationType_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (state_ - != com.google.datastore.admin.v1.CommonMetadata.State.STATE_UNSPECIFIED.getNumber()) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); + if (state_ != com.google.datastore.admin.v1.CommonMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } unknownFields.writeTo(output); @@ -757,28 +661,30 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (operationType_ - != com.google.datastore.admin.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationType_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (state_ - != com.google.datastore.admin.v1.CommonMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + if (operationType_ != com.google.datastore.admin.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, operationType_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); + } + if (state_ != com.google.datastore.admin.v1.CommonMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -788,24 +694,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.CommonMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.CommonMetadata other = - (com.google.datastore.admin.v1.CommonMetadata) obj; + com.google.datastore.admin.v1.CommonMetadata other = (com.google.datastore.admin.v1.CommonMetadata) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (operationType_ != other.operationType_) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -839,147 +747,140 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.CommonMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.CommonMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.CommonMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.CommonMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.CommonMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * Protobuf type {@code google.datastore.admin.v1.CommonMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.CommonMetadata) com.google.datastore.admin.v1.CommonMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.CommonMetadata.class, - com.google.datastore.admin.v1.CommonMetadata.Builder.class); + com.google.datastore.admin.v1.CommonMetadata.class, com.google.datastore.admin.v1.CommonMetadata.Builder.class); } // Construct using com.google.datastore.admin.v1.CommonMetadata.newBuilder() @@ -987,15 +888,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1020,9 +922,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; } @java.lang.Override @@ -1041,8 +943,7 @@ public com.google.datastore.admin.v1.CommonMetadata build() { @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata buildPartial() { - com.google.datastore.admin.v1.CommonMetadata result = - new com.google.datastore.admin.v1.CommonMetadata(this); + com.google.datastore.admin.v1.CommonMetadata result = new com.google.datastore.admin.v1.CommonMetadata(this); int from_bitField0_ = bitField0_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; @@ -1066,39 +967,38 @@ public com.google.datastore.admin.v1.CommonMetadata 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.datastore.admin.v1.CommonMetadata) { - return mergeFrom((com.google.datastore.admin.v1.CommonMetadata) other); + return mergeFrom((com.google.datastore.admin.v1.CommonMetadata)other); } else { super.mergeFrom(other); return this; @@ -1116,7 +1016,8 @@ public Builder mergeFrom(com.google.datastore.admin.v1.CommonMetadata other) { if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1148,38 +1049,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The time that work began on the operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time that work began on the operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1190,8 +1081,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time that work began on the operation.
      * 
@@ -1212,15 +1101,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time that work began on the operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1231,8 +1119,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time that work began on the operation.
      * 
@@ -1243,7 +1129,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1255,8 +1141,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time that work began on the operation.
      * 
@@ -1275,8 +1159,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time that work began on the operation.
      * 
@@ -1284,13 +1166,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time that work began on the operation.
      * 
@@ -1301,12 +1181,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The time that work began on the operation.
      * 
@@ -1314,17 +1193,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1332,33 +1208,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1369,8 +1236,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1391,15 +1256,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - 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(); @@ -1410,8 +1274,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1422,7 +1284,7 @@ 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; } @@ -1434,8 +1296,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1454,8 +1314,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1463,13 +1321,11 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1480,12 +1336,11 @@ 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_; } } /** - * - * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1493,17 +1348,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_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> 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_; @@ -1511,69 +1363,55 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int operationType_ = 0; /** - * - * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override - public int getOperationTypeValue() { + @java.lang.Override public int getOperationTypeValue() { return operationType_; } /** - * - * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. */ public Builder setOperationTypeValue(int value) { - + operationType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @return The operationType. */ @java.lang.Override public com.google.datastore.admin.v1.OperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.OperationType result = - com.google.datastore.admin.v1.OperationType.valueOf(operationType_); + com.google.datastore.admin.v1.OperationType result = com.google.datastore.admin.v1.OperationType.valueOf(operationType_); return result == null ? com.google.datastore.admin.v1.OperationType.UNRECOGNIZED : result; } /** - * - * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @param value The operationType to set. * @return This builder for chaining. */ @@ -1581,45 +1419,43 @@ public Builder setOperationType(com.google.datastore.admin.v1.OperationType valu if (value == null) { throw new NullPointerException(); } - + operationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1631,8 +1467,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1640,22 +1474,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1664,12 +1498,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1678,17 +1511,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1697,11 +1529,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1709,12 +1542,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1722,21 +1554,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1744,20 +1578,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1765,74 +1598,61 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @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 current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @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 current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @return The state. */ @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.CommonMetadata.State result = - com.google.datastore.admin.v1.CommonMetadata.State.valueOf(state_); - return result == null - ? com.google.datastore.admin.v1.CommonMetadata.State.UNRECOGNIZED - : result; + com.google.datastore.admin.v1.CommonMetadata.State result = com.google.datastore.admin.v1.CommonMetadata.State.valueOf(state_); + return result == null ? com.google.datastore.admin.v1.CommonMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1840,31 +1660,28 @@ public Builder setState(com.google.datastore.admin.v1.CommonMetadata.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1874,12 +1691,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.CommonMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.CommonMetadata) private static final com.google.datastore.admin.v1.CommonMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.CommonMetadata(); } @@ -1888,16 +1705,16 @@ public static com.google.datastore.admin.v1.CommonMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1912,4 +1729,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.CommonMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java similarity index 76% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java index a67d22e0f..04a0bcc07 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface CommonMetadataOrBuilder - extends +public interface CommonMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.CommonMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time that work began on the operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time that work began on the operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time that work began on the operation.
    * 
@@ -59,32 +35,24 @@ public interface CommonMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The time the operation ended, either successfully or otherwise.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation ended, either successfully or otherwise.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation ended, either successfully or otherwise.
    * 
@@ -94,35 +62,27 @@ public interface CommonMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * The type of the operation. Can be used as a filter in
    * ListOperationsRequest.
    * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @return The enum numeric value on the wire for operationType. */ int getOperationTypeValue(); /** - * - * *
    * The type of the operation. Can be used as a filter in
    * ListOperationsRequest.
    * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; - * * @return The operationType. */ com.google.datastore.admin.v1.OperationType getOperationType(); /** - * - * *
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -132,8 +92,6 @@ public interface CommonMetadataOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -141,13 +99,15 @@ public interface CommonMetadataOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -155,10 +115,9 @@ public interface CommonMetadataOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -168,13 +127,11 @@ public interface CommonMetadataOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -182,29 +139,25 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The current state of the Operation.
    * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the Operation.
    * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; - * * @return The state. */ com.google.datastore.admin.v1.CommonMetadata.State getState(); diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java similarity index 71% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java index 9d73ec24d..b363cc7e3 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex][google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.CreateIndexRequest}
  */
-public final class CreateIndexRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateIndexRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.CreateIndexRequest)
     CreateIndexRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateIndexRequest.newBuilder() to construct.
   private CreateIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateIndexRequest() {
     projectId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateIndexRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateIndexRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,36 +54,32 @@ private CreateIndexRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              projectId_ = s;
-              break;
+            projectId_ = s;
+            break;
+          }
+          case 26: {
+            com.google.datastore.admin.v1.Index.Builder subBuilder = null;
+            if (index_ != null) {
+              subBuilder = index_.toBuilder();
             }
-          case 26:
-            {
-              com.google.datastore.admin.v1.Index.Builder subBuilder = null;
-              if (index_ != null) {
-                subBuilder = index_.toBuilder();
-              }
-              index_ =
-                  input.readMessage(
-                      com.google.datastore.admin.v1.Index.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(index_);
-                index_ = subBuilder.buildPartial();
-              }
-
-              break;
+            index_ = input.readMessage(com.google.datastore.admin.v1.Index.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(index_);
+              index_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,39 +87,34 @@ private CreateIndexRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.CreateIndexRequest.class,
-            com.google.datastore.admin.v1.CreateIndexRequest.Builder.class);
+            com.google.datastore.admin.v1.CreateIndexRequest.class, com.google.datastore.admin.v1.CreateIndexRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
-   *
-   *
    * 
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -149,29 +123,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -182,15 +156,12 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int INDEX_FIELD_NUMBER = 3; private com.google.datastore.admin.v1.Index index_; /** - * - * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
    * 
* * .google.datastore.admin.v1.Index index = 3; - * * @return Whether the index field is set. */ @java.lang.Override @@ -198,15 +169,12 @@ public boolean hasIndex() { return index_ != null; } /** - * - * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
    * 
* * .google.datastore.admin.v1.Index index = 3; - * * @return The index. */ @java.lang.Override @@ -214,8 +182,6 @@ public com.google.datastore.admin.v1.Index getIndex() { return index_ == null ? com.google.datastore.admin.v1.Index.getDefaultInstance() : index_; } /** - * - * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
@@ -229,7 +195,6 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -241,7 +206,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
     }
@@ -261,7 +227,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
     }
     if (index_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIndex());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getIndex());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -271,18 +238,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.datastore.admin.v1.CreateIndexRequest)) {
       return super.equals(obj);
     }
-    com.google.datastore.admin.v1.CreateIndexRequest other =
-        (com.google.datastore.admin.v1.CreateIndexRequest) obj;
+    com.google.datastore.admin.v1.CreateIndexRequest other = (com.google.datastore.admin.v1.CreateIndexRequest) obj;
 
-    if (!getProjectId().equals(other.getProjectId())) return false;
+    if (!getProjectId()
+        .equals(other.getProjectId())) return false;
     if (hasIndex() != other.hasIndex()) return false;
     if (hasIndex()) {
-      if (!getIndex().equals(other.getIndex())) return false;
+      if (!getIndex()
+          .equals(other.getIndex())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -306,104 +274,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.admin.v1.CreateIndexRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.datastore.admin.v1.CreateIndexRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.admin.v1.CreateIndexRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex][google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
@@ -411,23 +372,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.CreateIndexRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.CreateIndexRequest)
       com.google.datastore.admin.v1.CreateIndexRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.CreateIndexRequest.class,
-              com.google.datastore.admin.v1.CreateIndexRequest.Builder.class);
+              com.google.datastore.admin.v1.CreateIndexRequest.class, com.google.datastore.admin.v1.CreateIndexRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.CreateIndexRequest.newBuilder()
@@ -435,15 +394,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -459,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
     }
 
     @java.lang.Override
@@ -480,8 +440,7 @@ public com.google.datastore.admin.v1.CreateIndexRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.CreateIndexRequest buildPartial() {
-      com.google.datastore.admin.v1.CreateIndexRequest result =
-          new com.google.datastore.admin.v1.CreateIndexRequest(this);
+      com.google.datastore.admin.v1.CreateIndexRequest result = new com.google.datastore.admin.v1.CreateIndexRequest(this);
       result.projectId_ = projectId_;
       if (indexBuilder_ == null) {
         result.index_ = index_;
@@ -496,39 +455,38 @@ public com.google.datastore.admin.v1.CreateIndexRequest 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.datastore.admin.v1.CreateIndexRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.CreateIndexRequest) other);
+        return mergeFrom((com.google.datastore.admin.v1.CreateIndexRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -536,8 +494,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.CreateIndexRequest other) {
-      if (other == com.google.datastore.admin.v1.CreateIndexRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.CreateIndexRequest.getDefaultInstance()) return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
@@ -576,20 +533,18 @@ public Builder mergeFrom(
 
     private java.lang.Object projectId_ = "";
     /**
-     *
-     *
      * 
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -598,21 +553,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -620,61 +574,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -682,35 +629,26 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private com.google.datastore.admin.v1.Index index_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Index, - com.google.datastore.admin.v1.Index.Builder, - com.google.datastore.admin.v1.IndexOrBuilder> - indexBuilder_; + com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder> indexBuilder_; /** - * - * *
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
      * 
* * .google.datastore.admin.v1.Index index = 3; - * * @return Whether the index field is set. */ public boolean hasIndex() { return indexBuilder_ != null || index_ != null; } /** - * - * *
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
      * 
* * .google.datastore.admin.v1.Index index = 3; - * * @return The index. */ public com.google.datastore.admin.v1.Index getIndex() { @@ -721,8 +659,6 @@ public com.google.datastore.admin.v1.Index getIndex() { } } /** - * - * *
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -744,8 +680,6 @@ public Builder setIndex(com.google.datastore.admin.v1.Index value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -753,7 +687,8 @@ public Builder setIndex(com.google.datastore.admin.v1.Index value) {
      *
      * .google.datastore.admin.v1.Index index = 3;
      */
-    public Builder setIndex(com.google.datastore.admin.v1.Index.Builder builderForValue) {
+    public Builder setIndex(
+        com.google.datastore.admin.v1.Index.Builder builderForValue) {
       if (indexBuilder_ == null) {
         index_ = builderForValue.build();
         onChanged();
@@ -764,8 +699,6 @@ public Builder setIndex(com.google.datastore.admin.v1.Index.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -777,9 +710,7 @@ public Builder mergeIndex(com.google.datastore.admin.v1.Index value) {
       if (indexBuilder_ == null) {
         if (index_ != null) {
           index_ =
-              com.google.datastore.admin.v1.Index.newBuilder(index_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.datastore.admin.v1.Index.newBuilder(index_).mergeFrom(value).buildPartial();
         } else {
           index_ = value;
         }
@@ -791,8 +722,6 @@ public Builder mergeIndex(com.google.datastore.admin.v1.Index value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -812,8 +741,6 @@ public Builder clearIndex() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -822,13 +749,11 @@ public Builder clearIndex() {
      * .google.datastore.admin.v1.Index index = 3;
      */
     public com.google.datastore.admin.v1.Index.Builder getIndexBuilder() {
-
+      
       onChanged();
       return getIndexFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -840,12 +765,11 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
       if (indexBuilder_ != null) {
         return indexBuilder_.getMessageOrBuilder();
       } else {
-        return index_ == null ? com.google.datastore.admin.v1.Index.getDefaultInstance() : index_;
+        return index_ == null ?
+            com.google.datastore.admin.v1.Index.getDefaultInstance() : index_;
       }
     }
     /**
-     *
-     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -854,24 +778,21 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
      * .google.datastore.admin.v1.Index index = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.admin.v1.Index,
-            com.google.datastore.admin.v1.Index.Builder,
-            com.google.datastore.admin.v1.IndexOrBuilder>
+        com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder> 
         getIndexFieldBuilder() {
       if (indexBuilder_ == null) {
-        indexBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.admin.v1.Index,
-                com.google.datastore.admin.v1.Index.Builder,
-                com.google.datastore.admin.v1.IndexOrBuilder>(
-                getIndex(), getParentForChildren(), isClean());
+        indexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder>(
+                getIndex(),
+                getParentForChildren(),
+                isClean());
         index_ = null;
       }
       return indexBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -881,12 +802,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.CreateIndexRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.CreateIndexRequest)
   private static final com.google.datastore.admin.v1.CreateIndexRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.admin.v1.CreateIndexRequest();
   }
@@ -895,16 +816,16 @@ public static com.google.datastore.admin.v1.CreateIndexRequest getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CreateIndexRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new CreateIndexRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CreateIndexRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new CreateIndexRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -919,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.admin.v1.CreateIndexRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
similarity index 67%
rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
index 5aa22c75b..14b3e31ed 100644
--- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
@@ -1,82 +1,53 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/admin/v1/datastore_admin.proto
 
 package com.google.datastore.admin.v1;
 
-public interface CreateIndexRequestOrBuilder
-    extends
+public interface CreateIndexRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.CreateIndexRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
    * 
* * .google.datastore.admin.v1.Index index = 3; - * * @return Whether the index field is set. */ boolean hasIndex(); /** - * - * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
    * 
* * .google.datastore.admin.v1.Index index = 3; - * * @return The index. */ com.google.datastore.admin.v1.Index getIndex(); /** - * - * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java
new file mode 100644
index 000000000..9a3f731e2
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java
@@ -0,0 +1,369 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/admin/v1/datastore_admin.proto
+
+package com.google.datastore.admin.v1;
+
+public final class DatastoreAdminProto {
+  private DatastoreAdminProto() {}
+  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_datastore_admin_v1_CommonMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_Progress_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n/google/datastore/admin/v1/datastore_ad" +
+      "min.proto\022\031google.datastore.admin.v1\032\034go" +
+      "ogle/api/annotations.proto\032\027google/api/c" +
+      "lient.proto\032\037google/api/field_behavior.p" +
+      "roto\032%google/datastore/admin/v1/index.pr" +
+      "oto\032)google/datastore/admin/v1/migration" +
+      ".proto\032#google/longrunning/operations.pr" +
+      "oto\032\037google/protobuf/timestamp.proto\"\364\003\n" +
+      "\016CommonMetadata\022.\n\nstart_time\030\001 \001(\0132\032.go" +
+      "ogle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(" +
+      "\0132\032.google.protobuf.Timestamp\022@\n\016operati" +
+      "on_type\030\003 \001(\0162(.google.datastore.admin.v" +
+      "1.OperationType\022E\n\006labels\030\004 \003(\01325.google" +
+      ".datastore.admin.v1.CommonMetadata.Label" +
+      "sEntry\022>\n\005state\030\005 \001(\0162/.google.datastore" +
+      ".admin.v1.CommonMetadata.State\032-\n\013Labels" +
+      "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\213\001" +
+      "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014INITIA" +
+      "LIZING\020\001\022\016\n\nPROCESSING\020\002\022\016\n\nCANCELLING\020\003" +
+      "\022\016\n\nFINALIZING\020\004\022\016\n\nSUCCESSFUL\020\005\022\n\n\006FAIL" +
+      "ED\020\006\022\r\n\tCANCELLED\020\007\":\n\010Progress\022\026\n\016work_" +
+      "completed\030\001 \001(\003\022\026\n\016work_estimated\030\002 \001(\003\"" +
+      "\215\002\n\025ExportEntitiesRequest\022\027\n\nproject_id\030" +
+      "\001 \001(\tB\003\340A\002\022L\n\006labels\030\002 \003(\0132<.google.data" +
+      "store.admin.v1.ExportEntitiesRequest.Lab" +
+      "elsEntry\022>\n\rentity_filter\030\003 \001(\0132\'.google" +
+      ".datastore.admin.v1.EntityFilter\022\036\n\021outp" +
+      "ut_url_prefix\030\004 \001(\tB\003\340A\002\032-\n\013LabelsEntry\022" +
+      "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\002\n\025Impo" +
+      "rtEntitiesRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" +
+      "A\002\022L\n\006labels\030\002 \003(\0132<.google.datastore.ad" +
+      "min.v1.ImportEntitiesRequest.LabelsEntry" +
+      "\022\026\n\tinput_url\030\003 \001(\tB\003\340A\002\022>\n\rentity_filte" +
+      "r\030\004 \001(\0132\'.google.datastore.admin.v1.Enti" +
+      "tyFilter\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" +
+      "value\030\002 \001(\t:\0028\001\",\n\026ExportEntitiesRespons" +
+      "e\022\022\n\noutput_url\030\001 \001(\t\"\253\002\n\026ExportEntities" +
+      "Metadata\0229\n\006common\030\001 \001(\0132).google.datast" +
+      "ore.admin.v1.CommonMetadata\022>\n\021progress_" +
+      "entities\030\002 \001(\0132#.google.datastore.admin." +
+      "v1.Progress\022;\n\016progress_bytes\030\003 \001(\0132#.go" +
+      "ogle.datastore.admin.v1.Progress\022>\n\renti" +
+      "ty_filter\030\004 \001(\0132\'.google.datastore.admin" +
+      ".v1.EntityFilter\022\031\n\021output_url_prefix\030\005 " +
+      "\001(\t\"\243\002\n\026ImportEntitiesMetadata\0229\n\006common" +
+      "\030\001 \001(\0132).google.datastore.admin.v1.Commo" +
+      "nMetadata\022>\n\021progress_entities\030\002 \001(\0132#.g" +
+      "oogle.datastore.admin.v1.Progress\022;\n\016pro" +
+      "gress_bytes\030\003 \001(\0132#.google.datastore.adm" +
+      "in.v1.Progress\022>\n\rentity_filter\030\004 \001(\0132\'." +
+      "google.datastore.admin.v1.EntityFilter\022\021" +
+      "\n\tinput_url\030\005 \001(\t\"4\n\014EntityFilter\022\r\n\005kin" +
+      "ds\030\001 \003(\t\022\025\n\rnamespace_ids\030\002 \003(\t\"Y\n\022Creat" +
+      "eIndexRequest\022\022\n\nproject_id\030\001 \001(\t\022/\n\005ind" +
+      "ex\030\003 \001(\0132 .google.datastore.admin.v1.Ind" +
+      "ex\":\n\022DeleteIndexRequest\022\022\n\nproject_id\030\001" +
+      " \001(\t\022\020\n\010index_id\030\003 \001(\t\"7\n\017GetIndexReques" +
+      "t\022\022\n\nproject_id\030\001 \001(\t\022\020\n\010index_id\030\003 \001(\t\"" +
+      "_\n\022ListIndexesRequest\022\022\n\nproject_id\030\001 \001(" +
+      "\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\n" +
+      "page_token\030\005 \001(\t\"a\n\023ListIndexesResponse\022" +
+      "1\n\007indexes\030\001 \003(\0132 .google.datastore.admi" +
+      "n.v1.Index\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n\026" +
+      "IndexOperationMetadata\0229\n\006common\030\001 \001(\0132)" +
+      ".google.datastore.admin.v1.CommonMetadat" +
+      "a\022>\n\021progress_entities\030\002 \001(\0132#.google.da" +
+      "tastore.admin.v1.Progress\022\020\n\010index_id\030\003 " +
+      "\001(\t\"\253\001\n#DatastoreFirestoreMigrationMetad" +
+      "ata\022B\n\017migration_state\030\001 \001(\0162).google.da" +
+      "tastore.admin.v1.MigrationState\022@\n\016migra" +
+      "tion_step\030\002 \001(\0162(.google.datastore.admin" +
+      ".v1.MigrationStep*}\n\rOperationType\022\036\n\032OP" +
+      "ERATION_TYPE_UNSPECIFIED\020\000\022\023\n\017EXPORT_ENT" +
+      "ITIES\020\001\022\023\n\017IMPORT_ENTITIES\020\002\022\020\n\014CREATE_I" +
+      "NDEX\020\003\022\020\n\014DELETE_INDEX\020\0042\204\n\n\016DatastoreAd" +
+      "min\022\366\001\n\016ExportEntities\0220.google.datastor" +
+      "e.admin.v1.ExportEntitiesRequest\032\035.googl" +
+      "e.longrunning.Operation\"\222\001\202\323\344\223\002%\" /v1/pr" +
+      "ojects/{project_id}:export:\001*\332A1project_" +
+      "id,labels,entity_filter,output_url_prefi" +
+      "x\312A0\n\026ExportEntitiesResponse\022\026ExportEnti" +
+      "tiesMetadata\022\355\001\n\016ImportEntities\0220.google" +
+      ".datastore.admin.v1.ImportEntitiesReques" +
+      "t\032\035.google.longrunning.Operation\"\211\001\202\323\344\223\002" +
+      "%\" /v1/projects/{project_id}:import:\001*\332A" +
+      ")project_id,labels,input_url,entity_filt" +
+      "er\312A/\n\025google.protobuf.Empty\022\026ImportEnti" +
+      "tiesMetadata\022\257\001\n\013CreateIndex\022-.google.da" +
+      "tastore.admin.v1.CreateIndexRequest\032\035.go" +
+      "ogle.longrunning.Operation\"R\202\323\344\223\002*\"!/v1/" +
+      "projects/{project_id}/indexes:\005index\312A\037\n" +
+      "\005Index\022\026IndexOperationMetadata\022\263\001\n\013Delet" +
+      "eIndex\022-.google.datastore.admin.v1.Delet" +
+      "eIndexRequest\032\035.google.longrunning.Opera" +
+      "tion\"V\202\323\344\223\002.*,/v1/projects/{project_id}/" +
+      "indexes/{index_id}\312A\037\n\005Index\022\026IndexOpera" +
+      "tionMetadata\022\216\001\n\010GetIndex\022*.google.datas" +
+      "tore.admin.v1.GetIndexRequest\032 .google.d" +
+      "atastore.admin.v1.Index\"4\202\323\344\223\002.\022,/v1/pro" +
+      "jects/{project_id}/indexes/{index_id}\022\227\001" +
+      "\n\013ListIndexes\022-.google.datastore.admin.v" +
+      "1.ListIndexesRequest\032..google.datastore." +
+      "admin.v1.ListIndexesResponse\")\202\323\344\223\002#\022!/v" +
+      "1/projects/{project_id}/indexes\032v\312A\030data" +
+      "store.googleapis.com\322AXhttps://www.googl" +
+      "eapis.com/auth/cloud-platform,https://ww" +
+      "w.googleapis.com/auth/datastoreB\340\001\n\035com." +
+      "google.datastore.admin.v1B\023DatastoreAdmi" +
+      "nProtoP\001Z>google.golang.org/genproto/goo" +
+      "gleapis/datastore/admin/v1;admin\252\002\037Googl" +
+      "e.Cloud.Datastore.Admin.V1\312\002\037Google\\Clou" +
+      "d\\Datastore\\Admin\\V1\352\002#Google::Cloud::Da" +
+      "tastore::Admin::V1b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.datastore.admin.v1.IndexProto.getDescriptor(),
+          com.google.datastore.admin.v1.MigrationProto.getDescriptor(),
+          com.google.longrunning.OperationsProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+        });
+    internal_static_google_datastore_admin_v1_CommonMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_CommonMetadata_descriptor,
+        new java.lang.String[] { "StartTime", "EndTime", "OperationType", "Labels", "State", });
+    internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor =
+      internal_static_google_datastore_admin_v1_CommonMetadata_descriptor.getNestedTypes().get(0);
+    internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_datastore_admin_v1_Progress_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_Progress_descriptor,
+        new java.lang.String[] { "WorkCompleted", "WorkEstimated", });
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor,
+        new java.lang.String[] { "ProjectId", "Labels", "EntityFilter", "OutputUrlPrefix", });
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor =
+      internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor.getNestedTypes().get(0);
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor,
+        new java.lang.String[] { "ProjectId", "Labels", "InputUrl", "EntityFilter", });
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor =
+      internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor.getNestedTypes().get(0);
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor,
+        new java.lang.String[] { "OutputUrl", });
+    internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor,
+        new java.lang.String[] { "Common", "ProgressEntities", "ProgressBytes", "EntityFilter", "OutputUrlPrefix", });
+    internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor,
+        new java.lang.String[] { "Common", "ProgressEntities", "ProgressBytes", "EntityFilter", "InputUrl", });
+    internal_static_google_datastore_admin_v1_EntityFilter_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_EntityFilter_descriptor,
+        new java.lang.String[] { "Kinds", "NamespaceIds", });
+    internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor,
+        new java.lang.String[] { "ProjectId", "Index", });
+    internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor,
+        new java.lang.String[] { "ProjectId", "IndexId", });
+    internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor,
+        new java.lang.String[] { "ProjectId", "IndexId", });
+    internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor,
+        new java.lang.String[] { "ProjectId", "Filter", "PageSize", "PageToken", });
+    internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(12);
+    internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor,
+        new java.lang.String[] { "Indexes", "NextPageToken", });
+    internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(13);
+    internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor,
+        new java.lang.String[] { "Common", "ProgressEntities", "IndexId", });
+    internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(14);
+    internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor,
+        new java.lang.String[] { "MigrationState", "MigrationStep", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.datastore.admin.v1.IndexProto.getDescriptor();
+    com.google.datastore.admin.v1.MigrationProto.getDescriptor();
+    com.google.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
similarity index 67%
rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
index 952001914..fffc5eddd 100644
--- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/admin/v1/datastore_admin.proto
 
 package com.google.datastore.admin.v1;
 
 /**
- *
- *
  * 
  * Metadata for Datastore to Firestore migration operations.
  * The DatastoreFirestoreMigration operation is not started by the end-user via
@@ -32,18 +15,15 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata}
  */
-public final class DatastoreFirestoreMigrationMetadata
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DatastoreFirestoreMigrationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)
     DatastoreFirestoreMigrationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DatastoreFirestoreMigrationMetadata.newBuilder() to construct.
-  private DatastoreFirestoreMigrationMetadata(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DatastoreFirestoreMigrationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DatastoreFirestoreMigrationMetadata() {
     migrationState_ = 0;
     migrationStep_ = 0;
@@ -51,15 +31,16 @@ private DatastoreFirestoreMigrationMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DatastoreFirestoreMigrationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DatastoreFirestoreMigrationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,27 +59,25 @@ private DatastoreFirestoreMigrationMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              migrationState_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            migrationState_ = rawValue;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              migrationStep_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            migrationStep_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,106 +85,85 @@ private DatastoreFirestoreMigrationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.class,
-            com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.Builder.class);
+            com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.class, com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.Builder.class);
   }
 
   public static final int MIGRATION_STATE_FIELD_NUMBER = 1;
   private int migrationState_;
   /**
-   *
-   *
    * 
    * The current state of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @return The enum numeric value on the wire for migrationState. */ - @java.lang.Override - public int getMigrationStateValue() { + @java.lang.Override public int getMigrationStateValue() { return migrationState_; } /** - * - * *
    * The current state of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @return The migrationState. */ - @java.lang.Override - public com.google.datastore.admin.v1.MigrationState getMigrationState() { + @java.lang.Override public com.google.datastore.admin.v1.MigrationState getMigrationState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationState result = - com.google.datastore.admin.v1.MigrationState.valueOf(migrationState_); + com.google.datastore.admin.v1.MigrationState result = com.google.datastore.admin.v1.MigrationState.valueOf(migrationState_); return result == null ? com.google.datastore.admin.v1.MigrationState.UNRECOGNIZED : result; } public static final int MIGRATION_STEP_FIELD_NUMBER = 2; private int migrationStep_; /** - * - * *
    * The current step of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @return The enum numeric value on the wire for migrationStep. */ - @java.lang.Override - public int getMigrationStepValue() { + @java.lang.Override public int getMigrationStepValue() { return migrationStep_; } /** - * - * *
    * The current step of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @return The migrationStep. */ - @java.lang.Override - public com.google.datastore.admin.v1.MigrationStep getMigrationStep() { + @java.lang.Override public com.google.datastore.admin.v1.MigrationStep getMigrationStep() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationStep result = - com.google.datastore.admin.v1.MigrationStep.valueOf(migrationStep_); + com.google.datastore.admin.v1.MigrationStep result = com.google.datastore.admin.v1.MigrationStep.valueOf(migrationStep_); return result == null ? com.google.datastore.admin.v1.MigrationStep.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,13 +175,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (migrationState_ - != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (migrationState_ != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, migrationState_); } - if (migrationStep_ - != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { + if (migrationStep_ != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { output.writeEnum(2, migrationStep_); } unknownFields.writeTo(output); @@ -235,13 +192,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (migrationState_ - != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, migrationState_); + if (migrationState_ != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, migrationState_); } - if (migrationStep_ - != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, migrationStep_); + if (migrationStep_ != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, migrationStep_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,13 +208,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata other = - (com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) obj; + com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata other = (com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) obj; if (migrationState_ != other.migrationState_) return false; if (migrationStep_ != other.migrationStep_) return false; @@ -282,105 +238,96 @@ public int hashCode() { } public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata prototype) { + public static Builder newBuilder(com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for Datastore to Firestore migration operations.
    * The DatastoreFirestoreMigration operation is not started by the end-user via
@@ -392,40 +339,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)
       com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.class,
-              com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.Builder.class);
+              com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.class, com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.Builder.class);
     }
 
-    // Construct using
-    // com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.newBuilder()
+    // Construct using com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,14 +382,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata
-        getDefaultInstanceForType() {
+    public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata getDefaultInstanceForType() {
       return com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.getDefaultInstance();
     }
 
@@ -459,8 +403,7 @@ public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata build()
 
     @java.lang.Override
     public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata buildPartial() {
-      com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata result =
-          new com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata(this);
+      com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata result = new com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata(this);
       result.migrationState_ = migrationState_;
       result.migrationStep_ = migrationStep_;
       onBuilt();
@@ -471,50 +414,46 @@ public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata buildPa
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) {
-        return mergeFrom((com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) other);
+        return mergeFrom((com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata other) {
-      if (other
-          == com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata other) {
+      if (other == com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.getDefaultInstance()) return this;
       if (other.migrationState_ != 0) {
         setMigrationStateValue(other.getMigrationStateValue());
       }
@@ -540,9 +479,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -554,69 +491,55 @@ public Builder mergeFrom(
 
     private int migrationState_ = 0;
     /**
-     *
-     *
      * 
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @return The enum numeric value on the wire for migrationState. */ - @java.lang.Override - public int getMigrationStateValue() { + @java.lang.Override public int getMigrationStateValue() { return migrationState_; } /** - * - * *
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @param value The enum numeric value on the wire for migrationState to set. * @return This builder for chaining. */ public Builder setMigrationStateValue(int value) { - + migrationState_ = value; onChanged(); return this; } /** - * - * *
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @return The migrationState. */ @java.lang.Override public com.google.datastore.admin.v1.MigrationState getMigrationState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationState result = - com.google.datastore.admin.v1.MigrationState.valueOf(migrationState_); + com.google.datastore.admin.v1.MigrationState result = com.google.datastore.admin.v1.MigrationState.valueOf(migrationState_); return result == null ? com.google.datastore.admin.v1.MigrationState.UNRECOGNIZED : result; } /** - * - * *
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @param value The migrationState to set. * @return This builder for chaining. */ @@ -624,25 +547,22 @@ public Builder setMigrationState(com.google.datastore.admin.v1.MigrationState va if (value == null) { throw new NullPointerException(); } - + migrationState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @return This builder for chaining. */ public Builder clearMigrationState() { - + migrationState_ = 0; onChanged(); return this; @@ -650,69 +570,55 @@ public Builder clearMigrationState() { private int migrationStep_ = 0; /** - * - * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @return The enum numeric value on the wire for migrationStep. */ - @java.lang.Override - public int getMigrationStepValue() { + @java.lang.Override public int getMigrationStepValue() { return migrationStep_; } /** - * - * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @param value The enum numeric value on the wire for migrationStep to set. * @return This builder for chaining. */ public Builder setMigrationStepValue(int value) { - + migrationStep_ = value; onChanged(); return this; } /** - * - * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @return The migrationStep. */ @java.lang.Override public com.google.datastore.admin.v1.MigrationStep getMigrationStep() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationStep result = - com.google.datastore.admin.v1.MigrationStep.valueOf(migrationStep_); + com.google.datastore.admin.v1.MigrationStep result = com.google.datastore.admin.v1.MigrationStep.valueOf(migrationStep_); return result == null ? com.google.datastore.admin.v1.MigrationStep.UNRECOGNIZED : result; } /** - * - * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @param value The migrationStep to set. * @return This builder for chaining. */ @@ -720,32 +626,29 @@ public Builder setMigrationStep(com.google.datastore.admin.v1.MigrationStep valu if (value == null) { throw new NullPointerException(); } - + migrationStep_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @return This builder for chaining. */ public Builder clearMigrationStep() { - + migrationStep_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -755,32 +658,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) - private static final com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata - DEFAULT_INSTANCE; - + private static final com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata(); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata - getDefaultInstance() { + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatastoreFirestoreMigrationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatastoreFirestoreMigrationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatastoreFirestoreMigrationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatastoreFirestoreMigrationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -792,8 +693,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata - getDefaultInstanceForType() { + public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java similarity index 68% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java index 5030636e5..d3c4694bb 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java @@ -1,78 +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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface DatastoreFirestoreMigrationMetadataOrBuilder - extends +public interface DatastoreFirestoreMigrationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The current state of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @return The enum numeric value on the wire for migrationState. */ int getMigrationStateValue(); /** - * - * *
    * The current state of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; - * * @return The migrationState. */ com.google.datastore.admin.v1.MigrationState getMigrationState(); /** - * - * *
    * The current step of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @return The enum numeric value on the wire for migrationStep. */ int getMigrationStepValue(); /** - * - * *
    * The current step of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; - * * @return The migrationStep. */ com.google.datastore.admin.v1.MigrationStep getMigrationStep(); diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java similarity index 69% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java index 50e889519..67376a2e0 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.DeleteIndex][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.DeleteIndexRequest}
  */
-public final class DeleteIndexRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteIndexRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.DeleteIndexRequest)
     DeleteIndexRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteIndexRequest.newBuilder() to construct.
   private DeleteIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteIndexRequest() {
     projectId_ = "";
     indexId_ = "";
@@ -45,15 +27,16 @@ private DeleteIndexRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteIndexRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteIndexRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private DeleteIndexRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              projectId_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            projectId_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              indexId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            indexId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private DeleteIndexRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.DeleteIndexRequest.class,
-            com.google.datastore.admin.v1.DeleteIndexRequest.Builder.class);
+            com.google.datastore.admin.v1.DeleteIndexRequest.class, com.google.datastore.admin.v1.DeleteIndexRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
-   *
-   *
    * 
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -141,29 +117,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -174,14 +150,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int INDEX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object indexId_; /** - * - * *
    * The resource ID of the index to delete.
    * 
* * string index_id = 3; - * * @return The indexId. */ @java.lang.Override @@ -190,29 +163,29 @@ public java.lang.String getIndexId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; } } /** - * - * *
    * The resource ID of the index to delete.
    * 
* * string index_id = 3; - * * @return The bytes for indexId. */ @java.lang.Override - public com.google.protobuf.ByteString getIndexIdBytes() { + public com.google.protobuf.ByteString + getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); indexId_ = b; return b; } else { @@ -221,7 +194,6 @@ public com.google.protobuf.ByteString getIndexIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -263,16 +236,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.datastore.admin.v1.DeleteIndexRequest)) { return super.equals(obj); } - com.google.datastore.admin.v1.DeleteIndexRequest other = - (com.google.datastore.admin.v1.DeleteIndexRequest) obj; + com.google.datastore.admin.v1.DeleteIndexRequest other = (com.google.datastore.admin.v1.DeleteIndexRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getIndexId().equals(other.getIndexId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getIndexId() + .equals(other.getIndexId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,104 +267,97 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.DeleteIndexRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.DeleteIndexRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.DeleteIndexRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.DeleteIndex][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex].
@@ -398,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.DeleteIndexRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.DeleteIndexRequest)
       com.google.datastore.admin.v1.DeleteIndexRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.DeleteIndexRequest.class,
-              com.google.datastore.admin.v1.DeleteIndexRequest.Builder.class);
+              com.google.datastore.admin.v1.DeleteIndexRequest.class, com.google.datastore.admin.v1.DeleteIndexRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.DeleteIndexRequest.newBuilder()
@@ -422,15 +387,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,9 +408,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
     }
 
     @java.lang.Override
@@ -463,8 +429,7 @@ public com.google.datastore.admin.v1.DeleteIndexRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.DeleteIndexRequest buildPartial() {
-      com.google.datastore.admin.v1.DeleteIndexRequest result =
-          new com.google.datastore.admin.v1.DeleteIndexRequest(this);
+      com.google.datastore.admin.v1.DeleteIndexRequest result = new com.google.datastore.admin.v1.DeleteIndexRequest(this);
       result.projectId_ = projectId_;
       result.indexId_ = indexId_;
       onBuilt();
@@ -475,39 +440,38 @@ public com.google.datastore.admin.v1.DeleteIndexRequest 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.datastore.admin.v1.DeleteIndexRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.DeleteIndexRequest) other);
+        return mergeFrom((com.google.datastore.admin.v1.DeleteIndexRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -515,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.DeleteIndexRequest other) {
-      if (other == com.google.datastore.admin.v1.DeleteIndexRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.DeleteIndexRequest.getDefaultInstance()) return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
@@ -556,20 +519,18 @@ public Builder mergeFrom(
 
     private java.lang.Object projectId_ = "";
     /**
-     *
-     *
      * 
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -578,21 +539,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -600,61 +560,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -662,20 +615,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object indexId_ = ""; /** - * - * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; - * * @return The indexId. */ public java.lang.String getIndexId() { java.lang.Object ref = indexId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; @@ -684,21 +635,20 @@ public java.lang.String getIndexId() { } } /** - * - * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; - * * @return The bytes for indexId. */ - public com.google.protobuf.ByteString getIndexIdBytes() { + public com.google.protobuf.ByteString + getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); indexId_ = b; return b; } else { @@ -706,68 +656,61 @@ public com.google.protobuf.ByteString getIndexIdBytes() { } } /** - * - * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; - * * @param value The indexId to set. * @return This builder for chaining. */ - public Builder setIndexId(java.lang.String value) { + public Builder setIndexId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + indexId_ = value; onChanged(); return this; } /** - * - * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; - * * @return This builder for chaining. */ public Builder clearIndexId() { - + indexId_ = getDefaultInstance().getIndexId(); onChanged(); return this; } /** - * - * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; - * * @param value The bytes for indexId to set. * @return This builder for chaining. */ - public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { + public Builder setIndexIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexId_ = 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); } @@ -777,12 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.DeleteIndexRequest) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.DeleteIndexRequest) private static final com.google.datastore.admin.v1.DeleteIndexRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.DeleteIndexRequest(); } @@ -791,16 +734,16 @@ public static com.google.datastore.admin.v1.DeleteIndexRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteIndexRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteIndexRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteIndexRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.DeleteIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java index b33b297ed..3f73ef5fa 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface DeleteIndexRequestOrBuilder - extends +public interface DeleteIndexRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.DeleteIndexRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * The resource ID of the index to delete.
    * 
* * string index_id = 3; - * * @return The indexId. */ java.lang.String getIndexId(); /** - * - * *
    * The resource ID of the index to delete.
    * 
* * string index_id = 3; - * * @return The bytes for indexId. */ - com.google.protobuf.ByteString getIndexIdBytes(); + com.google.protobuf.ByteString + getIndexIdBytes(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java similarity index 75% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java index d714b68b0..591cd7af1 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * Identifies a subset of entities in a project. This is specified as
  * combinations of kinds and namespaces (either or both of which may be all, as
@@ -40,16 +23,15 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.EntityFilter}
  */
-public final class EntityFilter extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EntityFilter extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.EntityFilter)
     EntityFilterOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EntityFilter.newBuilder() to construct.
   private EntityFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EntityFilter() {
     kinds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     namespaceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -57,15 +39,16 @@ private EntityFilter() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EntityFilter();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EntityFilter(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -85,33 +68,31 @@ private EntityFilter(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                kinds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              kinds_.add(s);
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              kinds_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                namespaceIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              namespaceIds_.add(s);
-              break;
+            kinds_.add(s);
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              namespaceIds_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            namespaceIds_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -119,7 +100,8 @@ private EntityFilter(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         kinds_ = kinds_.getUnmodifiableView();
@@ -131,61 +113,50 @@ private EntityFilter(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.EntityFilter.class,
-            com.google.datastore.admin.v1.EntityFilter.Builder.class);
+            com.google.datastore.admin.v1.EntityFilter.class, com.google.datastore.admin.v1.EntityFilter.Builder.class);
   }
 
   public static final int KINDS_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList kinds_;
   /**
-   *
-   *
    * 
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; - * * @return A list containing the kinds. */ - public com.google.protobuf.ProtocolStringList getKindsList() { + public com.google.protobuf.ProtocolStringList + getKindsList() { return kinds_; } /** - * - * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; - * * @return The count of kinds. */ public int getKindsCount() { return kinds_.size(); } /** - * - * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; - * * @param index The index of the element to return. * @return The kinds at the given index. */ @@ -193,26 +164,22 @@ public java.lang.String getKinds(int index) { return kinds_.get(index); } /** - * - * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; - * * @param index The index of the value to return. * @return The bytes of the kinds at the given index. */ - public com.google.protobuf.ByteString getKindsBytes(int index) { + public com.google.protobuf.ByteString + getKindsBytes(int index) { return kinds_.getByteString(index); } public static final int NAMESPACE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList namespaceIds_; /** - * - * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -223,15 +190,13 @@ public com.google.protobuf.ByteString getKindsBytes(int index) {
    * 
* * repeated string namespace_ids = 2; - * * @return A list containing the namespaceIds. */ - public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + public com.google.protobuf.ProtocolStringList + getNamespaceIdsList() { return namespaceIds_; } /** - * - * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -242,15 +207,12 @@ public com.google.protobuf.ProtocolStringList getNamespaceIdsList() {
    * 
* * repeated string namespace_ids = 2; - * * @return The count of namespaceIds. */ public int getNamespaceIdsCount() { return namespaceIds_.size(); } /** - * - * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -261,7 +223,6 @@ public int getNamespaceIdsCount() {
    * 
* * repeated string namespace_ids = 2; - * * @param index The index of the element to return. * @return The namespaceIds at the given index. */ @@ -269,8 +230,6 @@ public java.lang.String getNamespaceIds(int index) { return namespaceIds_.get(index); } /** - * - * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -281,16 +240,15 @@ public java.lang.String getNamespaceIds(int index) {
    * 
* * repeated string namespace_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the namespaceIds at the given index. */ - public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + public com.google.protobuf.ByteString + getNamespaceIdsBytes(int index) { return namespaceIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +260,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < kinds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kinds_.getRaw(i)); } @@ -342,16 +301,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.datastore.admin.v1.EntityFilter)) { return super.equals(obj); } - com.google.datastore.admin.v1.EntityFilter other = - (com.google.datastore.admin.v1.EntityFilter) obj; + com.google.datastore.admin.v1.EntityFilter other = (com.google.datastore.admin.v1.EntityFilter) obj; - if (!getKindsList().equals(other.getKindsList())) return false; - if (!getNamespaceIdsList().equals(other.getNamespaceIdsList())) return false; + if (!getKindsList() + .equals(other.getKindsList())) return false; + if (!getNamespaceIdsList() + .equals(other.getNamespaceIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,104 +336,97 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.EntityFilter parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.EntityFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.EntityFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.EntityFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.EntityFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.EntityFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.EntityFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Identifies a subset of entities in a project. This is specified as
    * combinations of kinds and namespaces (either or both of which may be all, as
@@ -493,23 +446,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.EntityFilter}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.EntityFilter)
       com.google.datastore.admin.v1.EntityFilterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.EntityFilter.class,
-              com.google.datastore.admin.v1.EntityFilter.Builder.class);
+              com.google.datastore.admin.v1.EntityFilter.class, com.google.datastore.admin.v1.EntityFilter.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.EntityFilter.newBuilder()
@@ -517,15 +468,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -537,9 +489,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
     }
 
     @java.lang.Override
@@ -558,8 +510,7 @@ public com.google.datastore.admin.v1.EntityFilter build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.EntityFilter buildPartial() {
-      com.google.datastore.admin.v1.EntityFilter result =
-          new com.google.datastore.admin.v1.EntityFilter(this);
+      com.google.datastore.admin.v1.EntityFilter result = new com.google.datastore.admin.v1.EntityFilter(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         kinds_ = kinds_.getUnmodifiableView();
@@ -579,39 +530,38 @@ public com.google.datastore.admin.v1.EntityFilter 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.datastore.admin.v1.EntityFilter) {
-        return mergeFrom((com.google.datastore.admin.v1.EntityFilter) other);
+        return mergeFrom((com.google.datastore.admin.v1.EntityFilter)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -668,55 +618,44 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList kinds_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList kinds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureKindsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         kinds_ = new com.google.protobuf.LazyStringArrayList(kinds_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @return A list containing the kinds. */ - public com.google.protobuf.ProtocolStringList getKindsList() { + public com.google.protobuf.ProtocolStringList + getKindsList() { return kinds_.getUnmodifiableView(); } /** - * - * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @return The count of kinds. */ public int getKindsCount() { return kinds_.size(); } /** - * - * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @param index The index of the element to return. * @return The kinds at the given index. */ @@ -724,90 +663,80 @@ public java.lang.String getKinds(int index) { return kinds_.get(index); } /** - * - * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @param index The index of the value to return. * @return The bytes of the kinds at the given index. */ - public com.google.protobuf.ByteString getKindsBytes(int index) { + public com.google.protobuf.ByteString + getKindsBytes(int index) { return kinds_.getByteString(index); } /** - * - * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @param index The index to set the value at. * @param value The kinds to set. * @return This builder for chaining. */ - public Builder setKinds(int index, java.lang.String value) { + public Builder setKinds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureKindsIsMutable(); + throw new NullPointerException(); + } + ensureKindsIsMutable(); kinds_.set(index, value); onChanged(); return this; } /** - * - * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @param value The kinds to add. * @return This builder for chaining. */ - public Builder addKinds(java.lang.String value) { + public Builder addKinds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureKindsIsMutable(); + throw new NullPointerException(); + } + ensureKindsIsMutable(); kinds_.add(value); onChanged(); return this; } /** - * - * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @param values The kinds to add. * @return This builder for chaining. */ - public Builder addAllKinds(java.lang.Iterable values) { + public Builder addAllKinds( + java.lang.Iterable values) { ensureKindsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kinds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, kinds_); onChanged(); return this; } /** - * - * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @return This builder for chaining. */ public Builder clearKinds() { @@ -817,40 +746,34 @@ public Builder clearKinds() { return this; } /** - * - * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; - * * @param value The bytes of the kinds to add. * @return This builder for chaining. */ - public Builder addKindsBytes(com.google.protobuf.ByteString value) { + public Builder addKindsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureKindsIsMutable(); kinds_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList namespaceIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList namespaceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNamespaceIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { namespaceIds_ = new com.google.protobuf.LazyStringArrayList(namespaceIds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -861,15 +784,13 @@ private void ensureNamespaceIdsIsMutable() {
      * 
* * repeated string namespace_ids = 2; - * * @return A list containing the namespaceIds. */ - public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + public com.google.protobuf.ProtocolStringList + getNamespaceIdsList() { return namespaceIds_.getUnmodifiableView(); } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -880,15 +801,12 @@ public com.google.protobuf.ProtocolStringList getNamespaceIdsList() {
      * 
* * repeated string namespace_ids = 2; - * * @return The count of namespaceIds. */ public int getNamespaceIdsCount() { return namespaceIds_.size(); } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -899,7 +817,6 @@ public int getNamespaceIdsCount() {
      * 
* * repeated string namespace_ids = 2; - * * @param index The index of the element to return. * @return The namespaceIds at the given index. */ @@ -907,8 +824,6 @@ public java.lang.String getNamespaceIds(int index) { return namespaceIds_.get(index); } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -919,16 +834,14 @@ public java.lang.String getNamespaceIds(int index) {
      * 
* * repeated string namespace_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the namespaceIds at the given index. */ - public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + public com.google.protobuf.ByteString + getNamespaceIdsBytes(int index) { return namespaceIds_.getByteString(index); } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -939,23 +852,21 @@ public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) {
      * 
* * repeated string namespace_ids = 2; - * * @param index The index to set the value at. * @param value The namespaceIds to set. * @return This builder for chaining. */ - public Builder setNamespaceIds(int index, java.lang.String value) { + public Builder setNamespaceIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamespaceIdsIsMutable(); + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); namespaceIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -966,22 +877,20 @@ public Builder setNamespaceIds(int index, java.lang.String value) {
      * 
* * repeated string namespace_ids = 2; - * * @param value The namespaceIds to add. * @return This builder for chaining. */ - public Builder addNamespaceIds(java.lang.String value) { + public Builder addNamespaceIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamespaceIdsIsMutable(); + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); namespaceIds_.add(value); onChanged(); return this; } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -992,19 +901,18 @@ public Builder addNamespaceIds(java.lang.String value) {
      * 
* * repeated string namespace_ids = 2; - * * @param values The namespaceIds to add. * @return This builder for chaining. */ - public Builder addAllNamespaceIds(java.lang.Iterable values) { + public Builder addAllNamespaceIds( + java.lang.Iterable values) { ensureNamespaceIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaceIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, namespaceIds_); onChanged(); return this; } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -1015,7 +923,6 @@ public Builder addAllNamespaceIds(java.lang.Iterable values) {
      * 
* * repeated string namespace_ids = 2; - * * @return This builder for chaining. */ public Builder clearNamespaceIds() { @@ -1025,8 +932,6 @@ public Builder clearNamespaceIds() { return this; } /** - * - * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -1037,23 +942,23 @@ public Builder clearNamespaceIds() {
      * 
* * repeated string namespace_ids = 2; - * * @param value The bytes of the namespaceIds to add. * @return This builder for chaining. */ - public Builder addNamespaceIdsBytes(com.google.protobuf.ByteString value) { + public Builder addNamespaceIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNamespaceIdsIsMutable(); namespaceIds_.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); } @@ -1063,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.EntityFilter) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.EntityFilter) private static final com.google.datastore.admin.v1.EntityFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.EntityFilter(); } @@ -1077,16 +982,16 @@ public static com.google.datastore.admin.v1.EntityFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntityFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1101,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.EntityFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java similarity index 76% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java index b39e13297..a4ab43a1d 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java @@ -1,82 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface EntityFilterOrBuilder - extends +public interface EntityFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.EntityFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; - * * @return A list containing the kinds. */ - java.util.List getKindsList(); + java.util.List + getKindsList(); /** - * - * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; - * * @return The count of kinds. */ int getKindsCount(); /** - * - * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; - * * @param index The index of the element to return. * @return The kinds at the given index. */ java.lang.String getKinds(int index); /** - * - * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; - * * @param index The index of the value to return. * @return The bytes of the kinds at the given index. */ - com.google.protobuf.ByteString getKindsBytes(int index); + com.google.protobuf.ByteString + getKindsBytes(int index); /** - * - * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -87,13 +59,11 @@ public interface EntityFilterOrBuilder
    * 
* * repeated string namespace_ids = 2; - * * @return A list containing the namespaceIds. */ - java.util.List getNamespaceIdsList(); + java.util.List + getNamespaceIdsList(); /** - * - * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -104,13 +74,10 @@ public interface EntityFilterOrBuilder
    * 
* * repeated string namespace_ids = 2; - * * @return The count of namespaceIds. */ int getNamespaceIdsCount(); /** - * - * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -121,14 +88,11 @@ public interface EntityFilterOrBuilder
    * 
* * repeated string namespace_ids = 2; - * * @param index The index of the element to return. * @return The namespaceIds at the given index. */ java.lang.String getNamespaceIds(int index); /** - * - * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -139,9 +103,9 @@ public interface EntityFilterOrBuilder
    * 
* * repeated string namespace_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the namespaceIds at the given index. */ - com.google.protobuf.ByteString getNamespaceIdsBytes(int index); + com.google.protobuf.ByteString + getNamespaceIdsBytes(int index); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java similarity index 72% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java index 265c5dbec..0de7cbb08 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * Metadata for ExportEntities operations.
  * 
* * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesMetadata} */ -public final class ExportEntitiesMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportEntitiesMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ExportEntitiesMetadata) ExportEntitiesMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportEntitiesMetadata.newBuilder() to construct. private ExportEntitiesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportEntitiesMetadata() { outputUrlPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportEntitiesMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportEntitiesMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,84 +53,71 @@ private ExportEntitiesMetadata( case 0: done = true; break; - case 10: - { - com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; - if (common_ != null) { - subBuilder = common_.toBuilder(); - } - common_ = - input.readMessage( - com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(common_); - common_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); } - case 18: - { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressEntities_ != null) { - subBuilder = progressEntities_.toBuilder(); - } - progressEntities_ = - input.readMessage( - com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressEntities_); - progressEntities_ = subBuilder.buildPartial(); - } - - break; + common_ = input.readMessage(com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); } - case 26: - { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressBytes_ != null) { - subBuilder = progressBytes_.toBuilder(); - } - progressBytes_ = - input.readMessage( - com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressBytes_); - progressBytes_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 18: { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressEntities_ != null) { + subBuilder = progressEntities_.toBuilder(); } - case 34: - { - com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null; - if (entityFilter_ != null) { - subBuilder = entityFilter_.toBuilder(); - } - entityFilter_ = - input.readMessage( - com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityFilter_); - entityFilter_ = subBuilder.buildPartial(); - } - - break; + progressEntities_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressEntities_); + progressEntities_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - outputUrlPrefix_ = s; - break; + break; + } + case 26: { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + progressBytes_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null; + if (entityFilter_ != null) { + subBuilder = entityFilter_.toBuilder(); } + entityFilter_ = input.readMessage(com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityFilter_); + entityFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + outputUrlPrefix_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -155,39 +125,34 @@ private ExportEntitiesMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.ExportEntitiesMetadata.class, - com.google.datastore.admin.v1.ExportEntitiesMetadata.Builder.class); + com.google.datastore.admin.v1.ExportEntitiesMetadata.class, com.google.datastore.admin.v1.ExportEntitiesMetadata.Builder.class); } public static final int COMMON_FIELD_NUMBER = 1; private com.google.datastore.admin.v1.CommonMetadata common_; /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ @java.lang.Override @@ -195,25 +160,18 @@ public boolean hasCommon() { return common_ != null; } /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata getCommon() { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -228,14 +186,11 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( public static final int PROGRESS_ENTITIES_FIELD_NUMBER = 2; private com.google.datastore.admin.v1.Progress progressEntities_; /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ @java.lang.Override @@ -243,25 +198,18 @@ public boolean hasProgressEntities() { return progressEntities_ != null; } /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressEntities() { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } /** - * - * *
    * An estimate of the number of entities processed.
    * 
@@ -276,14 +224,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil public static final int PROGRESS_BYTES_FIELD_NUMBER = 3; private com.google.datastore.admin.v1.Progress progressBytes_; /** - * - * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return Whether the progressBytes field is set. */ @java.lang.Override @@ -291,25 +236,18 @@ public boolean hasProgressBytes() { return progressBytes_ != null; } /** - * - * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return The progressBytes. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressBytes() { - return progressBytes_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressBytes_; + return progressBytes_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; } /** - * - * *
    * An estimate of the number of bytes processed.
    * 
@@ -324,14 +262,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder public static final int ENTITY_FILTER_FIELD_NUMBER = 4; private com.google.datastore.admin.v1.EntityFilter entityFilter_; /** - * - * *
    * Description of which entities are being exported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ @java.lang.Override @@ -339,25 +274,18 @@ public boolean hasEntityFilter() { return entityFilter_ != null; } /** - * - * *
    * Description of which entities are being exported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ @java.lang.Override public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } /** - * - * *
    * Description of which entities are being exported.
    * 
@@ -372,8 +300,6 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil public static final int OUTPUT_URL_PREFIX_FIELD_NUMBER = 5; private volatile java.lang.Object outputUrlPrefix_; /** - * - * *
    * Location for the export metadata and data files. This will be the same
    * value as the
@@ -383,7 +309,6 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
    * 
* * string output_url_prefix = 5; - * * @return The outputUrlPrefix. */ @java.lang.Override @@ -392,15 +317,14 @@ public java.lang.String getOutputUrlPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrlPrefix_ = s; return s; } } /** - * - * *
    * Location for the export metadata and data files. This will be the same
    * value as the
@@ -410,15 +334,16 @@ public java.lang.String getOutputUrlPrefix() {
    * 
* * string output_url_prefix = 5; - * * @return The bytes for outputUrlPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUrlPrefixBytes() { java.lang.Object ref = outputUrlPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUrlPrefix_ = b; return b; } else { @@ -427,7 +352,6 @@ public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,7 +363,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (common_ != null) { output.writeMessage(1, getCommon()); } @@ -465,16 +390,20 @@ public int getSerializedSize() { size = 0; if (common_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCommon()); } if (progressEntities_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgressEntities()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgressEntities()); } if (progressBytes_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgressBytes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProgressBytes()); } if (entityFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEntityFilter()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEntityFilter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUrlPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputUrlPrefix_); @@ -487,31 +416,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.ExportEntitiesMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.ExportEntitiesMetadata other = - (com.google.datastore.admin.v1.ExportEntitiesMetadata) obj; + com.google.datastore.admin.v1.ExportEntitiesMetadata other = (com.google.datastore.admin.v1.ExportEntitiesMetadata) obj; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { - if (!getCommon().equals(other.getCommon())) return false; + if (!getCommon() + .equals(other.getCommon())) return false; } if (hasProgressEntities() != other.hasProgressEntities()) return false; if (hasProgressEntities()) { - if (!getProgressEntities().equals(other.getProgressEntities())) return false; + if (!getProgressEntities() + .equals(other.getProgressEntities())) return false; } if (hasProgressBytes() != other.hasProgressBytes()) return false; if (hasProgressBytes()) { - if (!getProgressBytes().equals(other.getProgressBytes())) return false; + if (!getProgressBytes() + .equals(other.getProgressBytes())) return false; } if (hasEntityFilter() != other.hasEntityFilter()) return false; if (hasEntityFilter()) { - if (!getEntityFilter().equals(other.getEntityFilter())) return false; + if (!getEntityFilter() + .equals(other.getEntityFilter())) return false; } - if (!getOutputUrlPrefix().equals(other.getOutputUrlPrefix())) return false; + if (!getOutputUrlPrefix() + .equals(other.getOutputUrlPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -547,126 +480,117 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.ExportEntitiesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for ExportEntities operations.
    * 
* * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ExportEntitiesMetadata) com.google.datastore.admin.v1.ExportEntitiesMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.ExportEntitiesMetadata.class, - com.google.datastore.admin.v1.ExportEntitiesMetadata.Builder.class); + com.google.datastore.admin.v1.ExportEntitiesMetadata.class, com.google.datastore.admin.v1.ExportEntitiesMetadata.Builder.class); } // Construct using com.google.datastore.admin.v1.ExportEntitiesMetadata.newBuilder() @@ -674,15 +598,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -716,9 +641,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; } @java.lang.Override @@ -737,8 +662,7 @@ public com.google.datastore.admin.v1.ExportEntitiesMetadata build() { @java.lang.Override public com.google.datastore.admin.v1.ExportEntitiesMetadata buildPartial() { - com.google.datastore.admin.v1.ExportEntitiesMetadata result = - new com.google.datastore.admin.v1.ExportEntitiesMetadata(this); + com.google.datastore.admin.v1.ExportEntitiesMetadata result = new com.google.datastore.admin.v1.ExportEntitiesMetadata(this); if (commonBuilder_ == null) { result.common_ = common_; } else { @@ -768,39 +692,38 @@ public com.google.datastore.admin.v1.ExportEntitiesMetadata 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.datastore.admin.v1.ExportEntitiesMetadata) { - return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesMetadata) other); + return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesMetadata)other); } else { super.mergeFrom(other); return this; @@ -808,8 +731,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.admin.v1.ExportEntitiesMetadata other) { - if (other == com.google.datastore.admin.v1.ExportEntitiesMetadata.getDefaultInstance()) - return this; + if (other == com.google.datastore.admin.v1.ExportEntitiesMetadata.getDefaultInstance()) return this; if (other.hasCommon()) { mergeCommon(other.getCommon()); } @@ -845,8 +767,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.datastore.admin.v1.ExportEntitiesMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.datastore.admin.v1.ExportEntitiesMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -858,47 +779,34 @@ public Builder mergeFrom( private com.google.datastore.admin.v1.CommonMetadata common_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder> - commonBuilder_; + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> commonBuilder_; /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ public boolean hasCommon() { return commonBuilder_ != null || common_ != null; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ public com.google.datastore.admin.v1.CommonMetadata getCommon() { if (commonBuilder_ == null) { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } else { return commonBuilder_.getMessage(); } } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -919,15 +827,14 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; */ - public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { + public Builder setCommon( + com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); onChanged(); @@ -938,8 +845,6 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder bu return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -950,9 +855,7 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { if (commonBuilder_ == null) { if (common_ != null) { common_ = - com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_).mergeFrom(value).buildPartial(); } else { common_ = value; } @@ -964,8 +867,6 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -984,8 +885,6 @@ public Builder clearCommon() { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -993,13 +892,11 @@ public Builder clearCommon() { * .google.datastore.admin.v1.CommonMetadata common = 1; */ public com.google.datastore.admin.v1.CommonMetadata.Builder getCommonBuilder() { - + onChanged(); return getCommonFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -1010,14 +907,11 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( if (commonBuilder_ != null) { return commonBuilder_.getMessageOrBuilder(); } else { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? + com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -1025,17 +919,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( * .google.datastore.admin.v1.CommonMetadata common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder> + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { - commonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder>( - getCommon(), getParentForChildren(), isClean()); + commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder>( + getCommon(), + getParentForChildren(), + isClean()); common_ = null; } return commonBuilder_; @@ -1043,47 +934,34 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( private com.google.datastore.admin.v1.Progress progressEntities_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> - progressEntitiesBuilder_; + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressEntitiesBuilder_; /** - * - * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ public boolean hasProgressEntities() { return progressEntitiesBuilder_ != null || progressEntities_ != null; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ public com.google.datastore.admin.v1.Progress getProgressEntities() { if (progressEntitiesBuilder_ == null) { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } else { return progressEntitiesBuilder_.getMessage(); } } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1104,8 +982,6 @@ public Builder setProgressEntities(com.google.datastore.admin.v1.Progress value) return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1124,8 +1000,6 @@ public Builder setProgressEntities( return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1136,9 +1010,7 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu if (progressEntitiesBuilder_ == null) { if (progressEntities_ != null) { progressEntities_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_).mergeFrom(value).buildPartial(); } else { progressEntities_ = value; } @@ -1150,8 +1022,6 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1170,8 +1040,6 @@ public Builder clearProgressEntities() { return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1179,13 +1047,11 @@ public Builder clearProgressEntities() { * .google.datastore.admin.v1.Progress progress_entities = 2; */ public com.google.datastore.admin.v1.Progress.Builder getProgressEntitiesBuilder() { - + onChanged(); return getProgressEntitiesFieldBuilder().getBuilder(); } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1196,14 +1062,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil if (progressEntitiesBuilder_ != null) { return progressEntitiesBuilder_.getMessageOrBuilder(); } else { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? + com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1211,17 +1074,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil * .google.datastore.admin.v1.Progress progress_entities = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> getProgressEntitiesFieldBuilder() { if (progressEntitiesBuilder_ == null) { - progressEntitiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressEntities(), getParentForChildren(), isClean()); + progressEntitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressEntities(), + getParentForChildren(), + isClean()); progressEntities_ = null; } return progressEntitiesBuilder_; @@ -1229,47 +1089,34 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil private com.google.datastore.admin.v1.Progress progressBytes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> - progressBytesBuilder_; + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressBytesBuilder_; /** - * - * *
      * An estimate of the number of bytes processed.
      * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return Whether the progressBytes field is set. */ public boolean hasProgressBytes() { return progressBytesBuilder_ != null || progressBytes_ != null; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return The progressBytes. */ public com.google.datastore.admin.v1.Progress getProgressBytes() { if (progressBytesBuilder_ == null) { - return progressBytes_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressBytes_; + return progressBytes_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; } else { return progressBytesBuilder_.getMessage(); } } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1290,8 +1137,6 @@ public Builder setProgressBytes(com.google.datastore.admin.v1.Progress value) { return this; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1310,8 +1155,6 @@ public Builder setProgressBytes( return this; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1322,9 +1165,7 @@ public Builder mergeProgressBytes(com.google.datastore.admin.v1.Progress value) if (progressBytesBuilder_ == null) { if (progressBytes_ != null) { progressBytes_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressBytes_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressBytes_).mergeFrom(value).buildPartial(); } else { progressBytes_ = value; } @@ -1336,8 +1177,6 @@ public Builder mergeProgressBytes(com.google.datastore.admin.v1.Progress value) return this; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1356,8 +1195,6 @@ public Builder clearProgressBytes() { return this; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1365,13 +1202,11 @@ public Builder clearProgressBytes() { * .google.datastore.admin.v1.Progress progress_bytes = 3; */ public com.google.datastore.admin.v1.Progress.Builder getProgressBytesBuilder() { - + onChanged(); return getProgressBytesFieldBuilder().getBuilder(); } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1382,14 +1217,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder if (progressBytesBuilder_ != null) { return progressBytesBuilder_.getMessageOrBuilder(); } else { - return progressBytes_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressBytes_; + return progressBytes_ == null ? + com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; } } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1397,17 +1229,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder * .google.datastore.admin.v1.Progress progress_bytes = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> getProgressBytesFieldBuilder() { if (progressBytesBuilder_ == null) { - progressBytesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressBytes(), getParentForChildren(), isClean()); + progressBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressBytes(), + getParentForChildren(), + isClean()); progressBytes_ = null; } return progressBytesBuilder_; @@ -1415,47 +1244,34 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder private com.google.datastore.admin.v1.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder> - entityFilterBuilder_; + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> entityFilterBuilder_; /** - * - * *
      * Description of which entities are being exported.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ public boolean hasEntityFilter() { return entityFilterBuilder_ != null || entityFilter_ != null; } /** - * - * *
      * Description of which entities are being exported.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** - * - * *
      * Description of which entities are being exported.
      * 
@@ -1476,8 +1292,6 @@ public Builder setEntityFilter(com.google.datastore.admin.v1.EntityFilter value) return this; } /** - * - * *
      * Description of which entities are being exported.
      * 
@@ -1496,8 +1310,6 @@ public Builder setEntityFilter( return this; } /** - * - * *
      * Description of which entities are being exported.
      * 
@@ -1508,9 +1320,7 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu if (entityFilterBuilder_ == null) { if (entityFilter_ != null) { entityFilter_ = - com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_).mergeFrom(value).buildPartial(); } else { entityFilter_ = value; } @@ -1522,8 +1332,6 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu return this; } /** - * - * *
      * Description of which entities are being exported.
      * 
@@ -1542,8 +1350,6 @@ public Builder clearEntityFilter() { return this; } /** - * - * *
      * Description of which entities are being exported.
      * 
@@ -1551,13 +1357,11 @@ public Builder clearEntityFilter() { * .google.datastore.admin.v1.EntityFilter entity_filter = 4; */ public com.google.datastore.admin.v1.EntityFilter.Builder getEntityFilterBuilder() { - + onChanged(); return getEntityFilterFieldBuilder().getBuilder(); } /** - * - * *
      * Description of which entities are being exported.
      * 
@@ -1568,14 +1372,11 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil if (entityFilterBuilder_ != null) { return entityFilterBuilder_.getMessageOrBuilder(); } else { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? + com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } } /** - * - * *
      * Description of which entities are being exported.
      * 
@@ -1583,17 +1384,14 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil * .google.datastore.admin.v1.EntityFilter entity_filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder> + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> getEntityFilterFieldBuilder() { if (entityFilterBuilder_ == null) { - entityFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder>( - getEntityFilter(), getParentForChildren(), isClean()); + entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder>( + getEntityFilter(), + getParentForChildren(), + isClean()); entityFilter_ = null; } return entityFilterBuilder_; @@ -1601,8 +1399,6 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil private java.lang.Object outputUrlPrefix_ = ""; /** - * - * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1612,13 +1408,13 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
      * 
* * string output_url_prefix = 5; - * * @return The outputUrlPrefix. */ public java.lang.String getOutputUrlPrefix() { java.lang.Object ref = outputUrlPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrlPrefix_ = s; return s; @@ -1627,8 +1423,6 @@ public java.lang.String getOutputUrlPrefix() { } } /** - * - * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1638,14 +1432,15 @@ public java.lang.String getOutputUrlPrefix() {
      * 
* * string output_url_prefix = 5; - * * @return The bytes for outputUrlPrefix. */ - public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUrlPrefixBytes() { java.lang.Object ref = outputUrlPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUrlPrefix_ = b; return b; } else { @@ -1653,8 +1448,6 @@ public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { } } /** - * - * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1664,22 +1457,20 @@ public com.google.protobuf.ByteString getOutputUrlPrefixBytes() {
      * 
* * string output_url_prefix = 5; - * * @param value The outputUrlPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUrlPrefix(java.lang.String value) { + public Builder setOutputUrlPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUrlPrefix_ = value; onChanged(); return this; } /** - * - * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1689,18 +1480,15 @@ public Builder setOutputUrlPrefix(java.lang.String value) {
      * 
* * string output_url_prefix = 5; - * * @return This builder for chaining. */ public Builder clearOutputUrlPrefix() { - + outputUrlPrefix_ = getDefaultInstance().getOutputUrlPrefix(); onChanged(); return this; } /** - * - * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1710,23 +1498,23 @@ public Builder clearOutputUrlPrefix() {
      * 
* * string output_url_prefix = 5; - * * @param value The bytes for outputUrlPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUrlPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUrlPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUrlPrefix_ = 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); } @@ -1736,12 +1524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ExportEntitiesMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ExportEntitiesMetadata) private static final com.google.datastore.admin.v1.ExportEntitiesMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ExportEntitiesMetadata(); } @@ -1750,16 +1538,16 @@ public static com.google.datastore.admin.v1.ExportEntitiesMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportEntitiesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportEntitiesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEntitiesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEntitiesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1774,4 +1562,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ExportEntitiesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java similarity index 83% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java index 408049d0c..eb16a932a 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ExportEntitiesMetadataOrBuilder - extends +public interface ExportEntitiesMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ExportEntitiesMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ boolean hasCommon(); /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ com.google.datastore.admin.v1.CommonMetadata getCommon(); /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -59,32 +35,24 @@ public interface ExportEntitiesMetadataOrBuilder com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ boolean hasProgressEntities(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ com.google.datastore.admin.v1.Progress getProgressEntities(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
@@ -94,32 +62,24 @@ public interface ExportEntitiesMetadataOrBuilder com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuilder(); /** - * - * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return Whether the progressBytes field is set. */ boolean hasProgressBytes(); /** - * - * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return The progressBytes. */ com.google.datastore.admin.v1.Progress getProgressBytes(); /** - * - * *
    * An estimate of the number of bytes processed.
    * 
@@ -129,32 +89,24 @@ public interface ExportEntitiesMetadataOrBuilder com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder(); /** - * - * *
    * Description of which entities are being exported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ boolean hasEntityFilter(); /** - * - * *
    * Description of which entities are being exported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ com.google.datastore.admin.v1.EntityFilter getEntityFilter(); /** - * - * *
    * Description of which entities are being exported.
    * 
@@ -164,8 +116,6 @@ public interface ExportEntitiesMetadataOrBuilder com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuilder(); /** - * - * *
    * Location for the export metadata and data files. This will be the same
    * value as the
@@ -175,13 +125,10 @@ public interface ExportEntitiesMetadataOrBuilder
    * 
* * string output_url_prefix = 5; - * * @return The outputUrlPrefix. */ java.lang.String getOutputUrlPrefix(); /** - * - * *
    * Location for the export metadata and data files. This will be the same
    * value as the
@@ -191,8 +138,8 @@ public interface ExportEntitiesMetadataOrBuilder
    * 
* * string output_url_prefix = 5; - * * @return The bytes for outputUrlPrefix. */ - com.google.protobuf.ByteString getOutputUrlPrefixBytes(); + com.google.protobuf.ByteString + getOutputUrlPrefixBytes(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java similarity index 71% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java index 945292d02..f92e37b87 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesRequest}
  */
-public final class ExportEntitiesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ExportEntitiesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ExportEntitiesRequest)
     ExportEntitiesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ExportEntitiesRequest.newBuilder() to construct.
   private ExportEntitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ExportEntitiesRequest() {
     projectId_ = "";
     outputUrlPrefix_ = "";
@@ -45,15 +27,16 @@ private ExportEntitiesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportEntitiesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ExportEntitiesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,56 +56,51 @@ private ExportEntitiesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              projectId_ = s;
-              break;
+            projectId_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 26: {
+            com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null;
+            if (entityFilter_ != null) {
+              subBuilder = entityFilter_.toBuilder();
             }
-          case 26:
-            {
-              com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null;
-              if (entityFilter_ != null) {
-                subBuilder = entityFilter_.toBuilder();
-              }
-              entityFilter_ =
-                  input.readMessage(
-                      com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(entityFilter_);
-                entityFilter_ = subBuilder.buildPartial();
-              }
-
-              break;
+            entityFilter_ = input.readMessage(com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(entityFilter_);
+              entityFilter_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              outputUrlPrefix_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            outputUrlPrefix_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -130,50 +108,46 @@ private ExportEntitiesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ExportEntitiesRequest.class,
-            com.google.datastore.admin.v1.ExportEntitiesRequest.Builder.class);
+            com.google.datastore.admin.v1.ExportEntitiesRequest.class, com.google.datastore.admin.v1.ExportEntitiesRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
-   *
-   *
    * 
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -182,29 +156,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -213,23 +187,24 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -238,30 +213,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Client-assigned labels.
    * 
@@ -269,12 +242,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Client-assigned labels.
    * 
@@ -282,16 +254,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Client-assigned labels.
    * 
@@ -299,11 +271,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -313,14 +286,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int ENTITY_FILTER_FIELD_NUMBER = 3; private com.google.datastore.admin.v1.EntityFilter entityFilter_; /** - * - * *
    * Description of what data from the project is included in the export.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; - * * @return Whether the entityFilter field is set. */ @java.lang.Override @@ -328,25 +298,18 @@ public boolean hasEntityFilter() { return entityFilter_ != null; } /** - * - * *
    * Description of what data from the project is included in the export.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; - * * @return The entityFilter. */ @java.lang.Override public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } /** - * - * *
    * Description of what data from the project is included in the export.
    * 
@@ -361,8 +324,6 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil public static final int OUTPUT_URL_PREFIX_FIELD_NUMBER = 4; private volatile java.lang.Object outputUrlPrefix_; /** - * - * *
    * Required. Location for the export metadata and data files.
    * The full resource URL of the external storage location. Currently, only
@@ -382,7 +343,6 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
    * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUrlPrefix. */ @java.lang.Override @@ -391,15 +351,14 @@ public java.lang.String getOutputUrlPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrlPrefix_ = s; return s; } } /** - * - * *
    * Required. Location for the export metadata and data files.
    * The full resource URL of the external storage location. Currently, only
@@ -419,15 +378,16 @@ public java.lang.String getOutputUrlPrefix() {
    * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUrlPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUrlPrefixBytes() { java.lang.Object ref = outputUrlPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUrlPrefix_ = b; return b; } else { @@ -436,7 +396,6 @@ public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,12 +407,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); if (entityFilter_ != null) { output.writeMessage(3, getEntityFilter()); } @@ -472,18 +436,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, labels__); } if (entityFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEntityFilter()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEntityFilter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUrlPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputUrlPrefix_); @@ -496,21 +461,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.ExportEntitiesRequest)) { return super.equals(obj); } - com.google.datastore.admin.v1.ExportEntitiesRequest other = - (com.google.datastore.admin.v1.ExportEntitiesRequest) obj; + com.google.datastore.admin.v1.ExportEntitiesRequest other = (com.google.datastore.admin.v1.ExportEntitiesRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasEntityFilter() != other.hasEntityFilter()) return false; if (hasEntityFilter()) { - if (!getEntityFilter().equals(other.getEntityFilter())) return false; + if (!getEntityFilter() + .equals(other.getEntityFilter())) return false; } - if (!getOutputUrlPrefix().equals(other.getOutputUrlPrefix())) return false; + if (!getOutputUrlPrefix() + .equals(other.getOutputUrlPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -540,103 +508,96 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.ExportEntitiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
@@ -644,43 +605,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ExportEntitiesRequest)
       com.google.datastore.admin.v1.ExportEntitiesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ExportEntitiesRequest.class,
-              com.google.datastore.admin.v1.ExportEntitiesRequest.Builder.class);
+              com.google.datastore.admin.v1.ExportEntitiesRequest.class, com.google.datastore.admin.v1.ExportEntitiesRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ExportEntitiesRequest.newBuilder()
@@ -688,15 +649,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -715,9 +677,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -736,8 +698,7 @@ public com.google.datastore.admin.v1.ExportEntitiesRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ExportEntitiesRequest buildPartial() {
-      com.google.datastore.admin.v1.ExportEntitiesRequest result =
-          new com.google.datastore.admin.v1.ExportEntitiesRequest(this);
+      com.google.datastore.admin.v1.ExportEntitiesRequest result = new com.google.datastore.admin.v1.ExportEntitiesRequest(this);
       int from_bitField0_ = bitField0_;
       result.projectId_ = projectId_;
       result.labels_ = internalGetLabels();
@@ -756,39 +717,38 @@ public com.google.datastore.admin.v1.ExportEntitiesRequest 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.datastore.admin.v1.ExportEntitiesRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesRequest) other);
+        return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -796,13 +756,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ExportEntitiesRequest other) {
-      if (other == com.google.datastore.admin.v1.ExportEntitiesRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.ExportEntitiesRequest.getDefaultInstance()) return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.hasEntityFilter()) {
         mergeEntityFilter(other.getEntityFilter());
       }
@@ -829,8 +789,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.datastore.admin.v1.ExportEntitiesRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.datastore.admin.v1.ExportEntitiesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -839,25 +798,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object projectId_ = "";
     /**
-     *
-     *
      * 
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -866,21 +822,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -888,81 +843,75 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -974,30 +923,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Client-assigned labels.
      * 
@@ -1005,12 +952,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Client-assigned labels.
      * 
@@ -1018,17 +964,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Client-assigned labels.
      * 
@@ -1036,11 +981,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1048,107 +994,97 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private com.google.datastore.admin.v1.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder> - entityFilterBuilder_; + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> entityFilterBuilder_; /** - * - * *
      * Description of what data from the project is included in the export.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; - * * @return Whether the entityFilter field is set. */ public boolean hasEntityFilter() { return entityFilterBuilder_ != null || entityFilter_ != null; } /** - * - * *
      * Description of what data from the project is included in the export.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; - * * @return The entityFilter. */ public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** - * - * *
      * Description of what data from the project is included in the export.
      * 
@@ -1169,8 +1105,6 @@ public Builder setEntityFilter(com.google.datastore.admin.v1.EntityFilter value) return this; } /** - * - * *
      * Description of what data from the project is included in the export.
      * 
@@ -1189,8 +1123,6 @@ public Builder setEntityFilter( return this; } /** - * - * *
      * Description of what data from the project is included in the export.
      * 
@@ -1201,9 +1133,7 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu if (entityFilterBuilder_ == null) { if (entityFilter_ != null) { entityFilter_ = - com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_).mergeFrom(value).buildPartial(); } else { entityFilter_ = value; } @@ -1215,8 +1145,6 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu return this; } /** - * - * *
      * Description of what data from the project is included in the export.
      * 
@@ -1235,8 +1163,6 @@ public Builder clearEntityFilter() { return this; } /** - * - * *
      * Description of what data from the project is included in the export.
      * 
@@ -1244,13 +1170,11 @@ public Builder clearEntityFilter() { * .google.datastore.admin.v1.EntityFilter entity_filter = 3; */ public com.google.datastore.admin.v1.EntityFilter.Builder getEntityFilterBuilder() { - + onChanged(); return getEntityFilterFieldBuilder().getBuilder(); } /** - * - * *
      * Description of what data from the project is included in the export.
      * 
@@ -1261,14 +1185,11 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil if (entityFilterBuilder_ != null) { return entityFilterBuilder_.getMessageOrBuilder(); } else { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? + com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } } /** - * - * *
      * Description of what data from the project is included in the export.
      * 
@@ -1276,17 +1197,14 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil * .google.datastore.admin.v1.EntityFilter entity_filter = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder> + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> getEntityFilterFieldBuilder() { if (entityFilterBuilder_ == null) { - entityFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder>( - getEntityFilter(), getParentForChildren(), isClean()); + entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder>( + getEntityFilter(), + getParentForChildren(), + isClean()); entityFilter_ = null; } return entityFilterBuilder_; @@ -1294,8 +1212,6 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil private java.lang.Object outputUrlPrefix_ = ""; /** - * - * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1315,13 +1231,13 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUrlPrefix. */ public java.lang.String getOutputUrlPrefix() { java.lang.Object ref = outputUrlPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrlPrefix_ = s; return s; @@ -1330,8 +1246,6 @@ public java.lang.String getOutputUrlPrefix() { } } /** - * - * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1351,14 +1265,15 @@ public java.lang.String getOutputUrlPrefix() {
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUrlPrefix. */ - public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUrlPrefixBytes() { java.lang.Object ref = outputUrlPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUrlPrefix_ = b; return b; } else { @@ -1366,8 +1281,6 @@ public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { } } /** - * - * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1387,22 +1300,20 @@ public com.google.protobuf.ByteString getOutputUrlPrefixBytes() {
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The outputUrlPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUrlPrefix(java.lang.String value) { + public Builder setOutputUrlPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUrlPrefix_ = value; onChanged(); return this; } /** - * - * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1422,18 +1333,15 @@ public Builder setOutputUrlPrefix(java.lang.String value) {
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOutputUrlPrefix() { - + outputUrlPrefix_ = getDefaultInstance().getOutputUrlPrefix(); onChanged(); return this; } /** - * - * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1453,23 +1361,23 @@ public Builder clearOutputUrlPrefix() {
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for outputUrlPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUrlPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUrlPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUrlPrefix_ = 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); } @@ -1479,12 +1387,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ExportEntitiesRequest) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ExportEntitiesRequest) private static final com.google.datastore.admin.v1.ExportEntitiesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ExportEntitiesRequest(); } @@ -1493,16 +1401,16 @@ public static com.google.datastore.admin.v1.ExportEntitiesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportEntitiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportEntitiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEntitiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEntitiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1517,4 +1425,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ExportEntitiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java index 639802398..a006fac10 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ExportEntitiesRequestOrBuilder - extends +public interface ExportEntitiesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ExportEntitiesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Client-assigned labels.
    * 
@@ -59,31 +36,30 @@ public interface ExportEntitiesRequestOrBuilder */ int getLabelsCount(); /** - * - * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Client-assigned labels.
    * 
@@ -92,48 +68,40 @@ public interface ExportEntitiesRequestOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Description of what data from the project is included in the export.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; - * * @return Whether the entityFilter field is set. */ boolean hasEntityFilter(); /** - * - * *
    * Description of what data from the project is included in the export.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; - * * @return The entityFilter. */ com.google.datastore.admin.v1.EntityFilter getEntityFilter(); /** - * - * *
    * Description of what data from the project is included in the export.
    * 
@@ -143,8 +111,6 @@ java.lang.String getLabelsOrDefault( com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuilder(); /** - * - * *
    * Required. Location for the export metadata and data files.
    * The full resource URL of the external storage location. Currently, only
@@ -164,13 +130,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUrlPrefix. */ java.lang.String getOutputUrlPrefix(); /** - * - * *
    * Required. Location for the export metadata and data files.
    * The full resource URL of the external storage location. Currently, only
@@ -190,8 +153,8 @@ java.lang.String getLabelsOrDefault(
    * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUrlPrefix. */ - com.google.protobuf.ByteString getOutputUrlPrefixBytes(); + com.google.protobuf.ByteString + getOutputUrlPrefixBytes(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java similarity index 71% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java index 23ef5aa68..f39da2409 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * The response for
  * [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesResponse}
  */
-public final class ExportEntitiesResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ExportEntitiesResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ExportEntitiesResponse)
     ExportEntitiesResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ExportEntitiesResponse.newBuilder() to construct.
   private ExportEntitiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ExportEntitiesResponse() {
     outputUrl_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportEntitiesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ExportEntitiesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private ExportEntitiesResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              outputUrl_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            outputUrl_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,33 +74,29 @@ private ExportEntitiesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ExportEntitiesResponse.class,
-            com.google.datastore.admin.v1.ExportEntitiesResponse.Builder.class);
+            com.google.datastore.admin.v1.ExportEntitiesResponse.class, com.google.datastore.admin.v1.ExportEntitiesResponse.Builder.class);
   }
 
   public static final int OUTPUT_URL_FIELD_NUMBER = 1;
   private volatile java.lang.Object outputUrl_;
   /**
-   *
-   *
    * 
    * Location of the output metadata file. This can be used to begin an import
    * into Cloud Datastore (this project or another project). See
@@ -127,7 +105,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_url = 1; - * * @return The outputUrl. */ @java.lang.Override @@ -136,15 +113,14 @@ public java.lang.String getOutputUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrl_ = s; return s; } } /** - * - * *
    * Location of the output metadata file. This can be used to begin an import
    * into Cloud Datastore (this project or another project). See
@@ -153,15 +129,16 @@ public java.lang.String getOutputUrl() {
    * 
* * string output_url = 1; - * * @return The bytes for outputUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUrlBytes() { + public com.google.protobuf.ByteString + getOutputUrlBytes() { java.lang.Object ref = outputUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUrl_ = b; return b; } else { @@ -170,7 +147,6 @@ public com.google.protobuf.ByteString getOutputUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUrl_); } @@ -206,15 +183,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.datastore.admin.v1.ExportEntitiesResponse)) { return super.equals(obj); } - com.google.datastore.admin.v1.ExportEntitiesResponse other = - (com.google.datastore.admin.v1.ExportEntitiesResponse) obj; + com.google.datastore.admin.v1.ExportEntitiesResponse other = (com.google.datastore.admin.v1.ExportEntitiesResponse) obj; - if (!getOutputUrl().equals(other.getOutputUrl())) return false; + if (!getOutputUrl() + .equals(other.getOutputUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,103 +211,96 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.ExportEntitiesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for
    * [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
@@ -338,23 +308,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ExportEntitiesResponse)
       com.google.datastore.admin.v1.ExportEntitiesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ExportEntitiesResponse.class,
-              com.google.datastore.admin.v1.ExportEntitiesResponse.Builder.class);
+              com.google.datastore.admin.v1.ExportEntitiesResponse.class, com.google.datastore.admin.v1.ExportEntitiesResponse.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ExportEntitiesResponse.newBuilder()
@@ -362,15 +330,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -380,9 +349,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -401,8 +370,7 @@ public com.google.datastore.admin.v1.ExportEntitiesResponse build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ExportEntitiesResponse buildPartial() {
-      com.google.datastore.admin.v1.ExportEntitiesResponse result =
-          new com.google.datastore.admin.v1.ExportEntitiesResponse(this);
+      com.google.datastore.admin.v1.ExportEntitiesResponse result = new com.google.datastore.admin.v1.ExportEntitiesResponse(this);
       result.outputUrl_ = outputUrl_;
       onBuilt();
       return result;
@@ -412,39 +380,38 @@ public com.google.datastore.admin.v1.ExportEntitiesResponse 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.datastore.admin.v1.ExportEntitiesResponse) {
-        return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesResponse) other);
+        return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -452,8 +419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ExportEntitiesResponse other) {
-      if (other == com.google.datastore.admin.v1.ExportEntitiesResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.ExportEntitiesResponse.getDefaultInstance()) return this;
       if (!other.getOutputUrl().isEmpty()) {
         outputUrl_ = other.outputUrl_;
         onChanged();
@@ -477,8 +443,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.datastore.admin.v1.ExportEntitiesResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.datastore.admin.v1.ExportEntitiesResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -490,8 +455,6 @@ public Builder mergeFrom(
 
     private java.lang.Object outputUrl_ = "";
     /**
-     *
-     *
      * 
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -500,13 +463,13 @@ public Builder mergeFrom(
      * 
* * string output_url = 1; - * * @return The outputUrl. */ public java.lang.String getOutputUrl() { java.lang.Object ref = outputUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrl_ = s; return s; @@ -515,8 +478,6 @@ public java.lang.String getOutputUrl() { } } /** - * - * *
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -525,14 +486,15 @@ public java.lang.String getOutputUrl() {
      * 
* * string output_url = 1; - * * @return The bytes for outputUrl. */ - public com.google.protobuf.ByteString getOutputUrlBytes() { + public com.google.protobuf.ByteString + getOutputUrlBytes() { java.lang.Object ref = outputUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUrl_ = b; return b; } else { @@ -540,8 +502,6 @@ public com.google.protobuf.ByteString getOutputUrlBytes() { } } /** - * - * *
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -550,22 +510,20 @@ public com.google.protobuf.ByteString getOutputUrlBytes() {
      * 
* * string output_url = 1; - * * @param value The outputUrl to set. * @return This builder for chaining. */ - public Builder setOutputUrl(java.lang.String value) { + public Builder setOutputUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUrl_ = value; onChanged(); return this; } /** - * - * *
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -574,18 +532,15 @@ public Builder setOutputUrl(java.lang.String value) {
      * 
* * string output_url = 1; - * * @return This builder for chaining. */ public Builder clearOutputUrl() { - + outputUrl_ = getDefaultInstance().getOutputUrl(); onChanged(); return this; } /** - * - * *
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -594,23 +549,23 @@ public Builder clearOutputUrl() {
      * 
* * string output_url = 1; - * * @param value The bytes for outputUrl to set. * @return This builder for chaining. */ - public Builder setOutputUrlBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUrl_ = 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,12 +575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ExportEntitiesResponse) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ExportEntitiesResponse) private static final com.google.datastore.admin.v1.ExportEntitiesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ExportEntitiesResponse(); } @@ -634,16 +589,16 @@ public static com.google.datastore.admin.v1.ExportEntitiesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportEntitiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportEntitiesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEntitiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEntitiesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -658,4 +613,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ExportEntitiesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java index 74b00e9cd..434f9ce2c 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ExportEntitiesResponseOrBuilder - extends +public interface ExportEntitiesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ExportEntitiesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Location of the output metadata file. This can be used to begin an import
    * into Cloud Datastore (this project or another project). See
@@ -34,13 +16,10 @@ public interface ExportEntitiesResponseOrBuilder
    * 
* * string output_url = 1; - * * @return The outputUrl. */ java.lang.String getOutputUrl(); /** - * - * *
    * Location of the output metadata file. This can be used to begin an import
    * into Cloud Datastore (this project or another project). See
@@ -49,8 +28,8 @@ public interface ExportEntitiesResponseOrBuilder
    * 
* * string output_url = 1; - * * @return The bytes for outputUrl. */ - com.google.protobuf.ByteString getOutputUrlBytes(); + com.google.protobuf.ByteString + getOutputUrlBytes(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java similarity index 70% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java index 173eb97eb..261774fa0 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * The request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex].
  * 
* * Protobuf type {@code google.datastore.admin.v1.GetIndexRequest} */ -public final class GetIndexRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetIndexRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.GetIndexRequest) GetIndexRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetIndexRequest.newBuilder() to construct. private GetIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetIndexRequest() { projectId_ = ""; indexId_ = ""; @@ -44,15 +26,16 @@ private GetIndexRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetIndexRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetIndexRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private GetIndexRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - indexId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + indexId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private GetIndexRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.GetIndexRequest.class, - com.google.datastore.admin.v1.GetIndexRequest.Builder.class); + com.google.datastore.admin.v1.GetIndexRequest.class, com.google.datastore.admin.v1.GetIndexRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -173,14 +149,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int INDEX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object indexId_; /** - * - * *
    * The resource ID of the index to get.
    * 
* * string index_id = 3; - * * @return The indexId. */ @java.lang.Override @@ -189,29 +162,29 @@ public java.lang.String getIndexId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; } } /** - * - * *
    * The resource ID of the index to get.
    * 
* * string index_id = 3; - * * @return The bytes for indexId. */ @java.lang.Override - public com.google.protobuf.ByteString getIndexIdBytes() { + public com.google.protobuf.ByteString + getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); indexId_ = b; return b; } else { @@ -220,7 +193,6 @@ public com.google.protobuf.ByteString getIndexIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -262,16 +235,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.datastore.admin.v1.GetIndexRequest)) { return super.equals(obj); } - com.google.datastore.admin.v1.GetIndexRequest other = - (com.google.datastore.admin.v1.GetIndexRequest) obj; + com.google.datastore.admin.v1.GetIndexRequest other = (com.google.datastore.admin.v1.GetIndexRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getIndexId().equals(other.getIndexId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getIndexId() + .equals(other.getIndexId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,127 +266,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.GetIndexRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.GetIndexRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.GetIndexRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.GetIndexRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex].
    * 
* * Protobuf type {@code google.datastore.admin.v1.GetIndexRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.GetIndexRequest) com.google.datastore.admin.v1.GetIndexRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.GetIndexRequest.class, - com.google.datastore.admin.v1.GetIndexRequest.Builder.class); + com.google.datastore.admin.v1.GetIndexRequest.class, com.google.datastore.admin.v1.GetIndexRequest.Builder.class); } // Construct using com.google.datastore.admin.v1.GetIndexRequest.newBuilder() @@ -420,15 +385,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; } @java.lang.Override @@ -461,8 +427,7 @@ public com.google.datastore.admin.v1.GetIndexRequest build() { @java.lang.Override public com.google.datastore.admin.v1.GetIndexRequest buildPartial() { - com.google.datastore.admin.v1.GetIndexRequest result = - new com.google.datastore.admin.v1.GetIndexRequest(this); + com.google.datastore.admin.v1.GetIndexRequest result = new com.google.datastore.admin.v1.GetIndexRequest(this); result.projectId_ = projectId_; result.indexId_ = indexId_; onBuilt(); @@ -473,39 +438,38 @@ public com.google.datastore.admin.v1.GetIndexRequest 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.datastore.admin.v1.GetIndexRequest) { - return mergeFrom((com.google.datastore.admin.v1.GetIndexRequest) other); + return mergeFrom((com.google.datastore.admin.v1.GetIndexRequest)other); } else { super.mergeFrom(other); return this; @@ -553,20 +517,18 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -575,21 +537,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -597,61 +558,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -659,20 +613,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object indexId_ = ""; /** - * - * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; - * * @return The indexId. */ public java.lang.String getIndexId() { java.lang.Object ref = indexId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; @@ -681,21 +633,20 @@ public java.lang.String getIndexId() { } } /** - * - * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; - * * @return The bytes for indexId. */ - public com.google.protobuf.ByteString getIndexIdBytes() { + public com.google.protobuf.ByteString + getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); indexId_ = b; return b; } else { @@ -703,68 +654,61 @@ public com.google.protobuf.ByteString getIndexIdBytes() { } } /** - * - * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; - * * @param value The indexId to set. * @return This builder for chaining. */ - public Builder setIndexId(java.lang.String value) { + public Builder setIndexId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + indexId_ = value; onChanged(); return this; } /** - * - * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; - * * @return This builder for chaining. */ public Builder clearIndexId() { - + indexId_ = getDefaultInstance().getIndexId(); onChanged(); return this; } /** - * - * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; - * * @param value The bytes for indexId to set. * @return This builder for chaining. */ - public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { + public Builder setIndexIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexId_ = 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); } @@ -774,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.GetIndexRequest) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.GetIndexRequest) private static final com.google.datastore.admin.v1.GetIndexRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.GetIndexRequest(); } @@ -788,16 +732,16 @@ public static com.google.datastore.admin.v1.GetIndexRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetIndexRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetIndexRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetIndexRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -812,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.GetIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java index 14e873eb6..cbec0a1a5 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface GetIndexRequestOrBuilder - extends +public interface GetIndexRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.GetIndexRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * The resource ID of the index to get.
    * 
* * string index_id = 3; - * * @return The indexId. */ java.lang.String getIndexId(); /** - * - * *
    * The resource ID of the index to get.
    * 
* * string index_id = 3; - * * @return The bytes for indexId. */ - com.google.protobuf.ByteString getIndexIdBytes(); + com.google.protobuf.ByteString + getIndexIdBytes(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java similarity index 71% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java index b1116dde9..b91d24def 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * Metadata for ImportEntities operations.
  * 
* * Protobuf type {@code google.datastore.admin.v1.ImportEntitiesMetadata} */ -public final class ImportEntitiesMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportEntitiesMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ImportEntitiesMetadata) ImportEntitiesMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportEntitiesMetadata.newBuilder() to construct. private ImportEntitiesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportEntitiesMetadata() { inputUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportEntitiesMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportEntitiesMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,84 +53,71 @@ private ImportEntitiesMetadata( case 0: done = true; break; - case 10: - { - com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; - if (common_ != null) { - subBuilder = common_.toBuilder(); - } - common_ = - input.readMessage( - com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(common_); - common_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); } - case 18: - { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressEntities_ != null) { - subBuilder = progressEntities_.toBuilder(); - } - progressEntities_ = - input.readMessage( - com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressEntities_); - progressEntities_ = subBuilder.buildPartial(); - } - - break; + common_ = input.readMessage(com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); } - case 26: - { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressBytes_ != null) { - subBuilder = progressBytes_.toBuilder(); - } - progressBytes_ = - input.readMessage( - com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressBytes_); - progressBytes_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 18: { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressEntities_ != null) { + subBuilder = progressEntities_.toBuilder(); } - case 34: - { - com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null; - if (entityFilter_ != null) { - subBuilder = entityFilter_.toBuilder(); - } - entityFilter_ = - input.readMessage( - com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityFilter_); - entityFilter_ = subBuilder.buildPartial(); - } - - break; + progressEntities_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressEntities_); + progressEntities_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - inputUrl_ = s; - break; + break; + } + case 26: { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + progressBytes_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null; + if (entityFilter_ != null) { + subBuilder = entityFilter_.toBuilder(); } + entityFilter_ = input.readMessage(com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityFilter_); + entityFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -155,39 +125,34 @@ private ImportEntitiesMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.ImportEntitiesMetadata.class, - com.google.datastore.admin.v1.ImportEntitiesMetadata.Builder.class); + com.google.datastore.admin.v1.ImportEntitiesMetadata.class, com.google.datastore.admin.v1.ImportEntitiesMetadata.Builder.class); } public static final int COMMON_FIELD_NUMBER = 1; private com.google.datastore.admin.v1.CommonMetadata common_; /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ @java.lang.Override @@ -195,25 +160,18 @@ public boolean hasCommon() { return common_ != null; } /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata getCommon() { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -228,14 +186,11 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( public static final int PROGRESS_ENTITIES_FIELD_NUMBER = 2; private com.google.datastore.admin.v1.Progress progressEntities_; /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ @java.lang.Override @@ -243,25 +198,18 @@ public boolean hasProgressEntities() { return progressEntities_ != null; } /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressEntities() { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } /** - * - * *
    * An estimate of the number of entities processed.
    * 
@@ -276,14 +224,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil public static final int PROGRESS_BYTES_FIELD_NUMBER = 3; private com.google.datastore.admin.v1.Progress progressBytes_; /** - * - * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return Whether the progressBytes field is set. */ @java.lang.Override @@ -291,25 +236,18 @@ public boolean hasProgressBytes() { return progressBytes_ != null; } /** - * - * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return The progressBytes. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressBytes() { - return progressBytes_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressBytes_; + return progressBytes_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; } /** - * - * *
    * An estimate of the number of bytes processed.
    * 
@@ -324,14 +262,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder public static final int ENTITY_FILTER_FIELD_NUMBER = 4; private com.google.datastore.admin.v1.EntityFilter entityFilter_; /** - * - * *
    * Description of which entities are being imported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ @java.lang.Override @@ -339,25 +274,18 @@ public boolean hasEntityFilter() { return entityFilter_ != null; } /** - * - * *
    * Description of which entities are being imported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ @java.lang.Override public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } /** - * - * *
    * Description of which entities are being imported.
    * 
@@ -372,15 +300,12 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil public static final int INPUT_URL_FIELD_NUMBER = 5; private volatile java.lang.Object inputUrl_; /** - * - * *
    * The location of the import metadata file. This will be the same value as
    * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    * 
* * string input_url = 5; - * * @return The inputUrl. */ @java.lang.Override @@ -389,30 +314,30 @@ public java.lang.String getInputUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUrl_ = s; return s; } } /** - * - * *
    * The location of the import metadata file. This will be the same value as
    * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    * 
* * string input_url = 5; - * * @return The bytes for inputUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUrlBytes() { + public com.google.protobuf.ByteString + getInputUrlBytes() { java.lang.Object ref = inputUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUrl_ = b; return b; } else { @@ -421,7 +346,6 @@ public com.google.protobuf.ByteString getInputUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,7 +357,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (common_ != null) { output.writeMessage(1, getCommon()); } @@ -459,16 +384,20 @@ public int getSerializedSize() { size = 0; if (common_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCommon()); } if (progressEntities_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgressEntities()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgressEntities()); } if (progressBytes_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgressBytes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProgressBytes()); } if (entityFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEntityFilter()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEntityFilter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputUrl_); @@ -481,31 +410,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.ImportEntitiesMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.ImportEntitiesMetadata other = - (com.google.datastore.admin.v1.ImportEntitiesMetadata) obj; + com.google.datastore.admin.v1.ImportEntitiesMetadata other = (com.google.datastore.admin.v1.ImportEntitiesMetadata) obj; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { - if (!getCommon().equals(other.getCommon())) return false; + if (!getCommon() + .equals(other.getCommon())) return false; } if (hasProgressEntities() != other.hasProgressEntities()) return false; if (hasProgressEntities()) { - if (!getProgressEntities().equals(other.getProgressEntities())) return false; + if (!getProgressEntities() + .equals(other.getProgressEntities())) return false; } if (hasProgressBytes() != other.hasProgressBytes()) return false; if (hasProgressBytes()) { - if (!getProgressBytes().equals(other.getProgressBytes())) return false; + if (!getProgressBytes() + .equals(other.getProgressBytes())) return false; } if (hasEntityFilter() != other.hasEntityFilter()) return false; if (hasEntityFilter()) { - if (!getEntityFilter().equals(other.getEntityFilter())) return false; + if (!getEntityFilter() + .equals(other.getEntityFilter())) return false; } - if (!getInputUrl().equals(other.getInputUrl())) return false; + if (!getInputUrl() + .equals(other.getInputUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -541,126 +474,117 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.ImportEntitiesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for ImportEntities operations.
    * 
* * Protobuf type {@code google.datastore.admin.v1.ImportEntitiesMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ImportEntitiesMetadata) com.google.datastore.admin.v1.ImportEntitiesMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.ImportEntitiesMetadata.class, - com.google.datastore.admin.v1.ImportEntitiesMetadata.Builder.class); + com.google.datastore.admin.v1.ImportEntitiesMetadata.class, com.google.datastore.admin.v1.ImportEntitiesMetadata.Builder.class); } // Construct using com.google.datastore.admin.v1.ImportEntitiesMetadata.newBuilder() @@ -668,15 +592,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -710,9 +635,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; } @java.lang.Override @@ -731,8 +656,7 @@ public com.google.datastore.admin.v1.ImportEntitiesMetadata build() { @java.lang.Override public com.google.datastore.admin.v1.ImportEntitiesMetadata buildPartial() { - com.google.datastore.admin.v1.ImportEntitiesMetadata result = - new com.google.datastore.admin.v1.ImportEntitiesMetadata(this); + com.google.datastore.admin.v1.ImportEntitiesMetadata result = new com.google.datastore.admin.v1.ImportEntitiesMetadata(this); if (commonBuilder_ == null) { result.common_ = common_; } else { @@ -762,39 +686,38 @@ public com.google.datastore.admin.v1.ImportEntitiesMetadata 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.datastore.admin.v1.ImportEntitiesMetadata) { - return mergeFrom((com.google.datastore.admin.v1.ImportEntitiesMetadata) other); + return mergeFrom((com.google.datastore.admin.v1.ImportEntitiesMetadata)other); } else { super.mergeFrom(other); return this; @@ -802,8 +725,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.admin.v1.ImportEntitiesMetadata other) { - if (other == com.google.datastore.admin.v1.ImportEntitiesMetadata.getDefaultInstance()) - return this; + if (other == com.google.datastore.admin.v1.ImportEntitiesMetadata.getDefaultInstance()) return this; if (other.hasCommon()) { mergeCommon(other.getCommon()); } @@ -839,8 +761,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.datastore.admin.v1.ImportEntitiesMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.datastore.admin.v1.ImportEntitiesMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -852,47 +773,34 @@ public Builder mergeFrom( private com.google.datastore.admin.v1.CommonMetadata common_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder> - commonBuilder_; + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> commonBuilder_; /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ public boolean hasCommon() { return commonBuilder_ != null || common_ != null; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ public com.google.datastore.admin.v1.CommonMetadata getCommon() { if (commonBuilder_ == null) { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } else { return commonBuilder_.getMessage(); } } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -913,15 +821,14 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; */ - public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { + public Builder setCommon( + com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); onChanged(); @@ -932,8 +839,6 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder bu return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -944,9 +849,7 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { if (commonBuilder_ == null) { if (common_ != null) { common_ = - com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_).mergeFrom(value).buildPartial(); } else { common_ = value; } @@ -958,8 +861,6 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -978,8 +879,6 @@ public Builder clearCommon() { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -987,13 +886,11 @@ public Builder clearCommon() { * .google.datastore.admin.v1.CommonMetadata common = 1; */ public com.google.datastore.admin.v1.CommonMetadata.Builder getCommonBuilder() { - + onChanged(); return getCommonFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -1004,14 +901,11 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( if (commonBuilder_ != null) { return commonBuilder_.getMessageOrBuilder(); } else { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? + com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -1019,17 +913,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( * .google.datastore.admin.v1.CommonMetadata common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder> + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { - commonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder>( - getCommon(), getParentForChildren(), isClean()); + commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder>( + getCommon(), + getParentForChildren(), + isClean()); common_ = null; } return commonBuilder_; @@ -1037,47 +928,34 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( private com.google.datastore.admin.v1.Progress progressEntities_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> - progressEntitiesBuilder_; + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressEntitiesBuilder_; /** - * - * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ public boolean hasProgressEntities() { return progressEntitiesBuilder_ != null || progressEntities_ != null; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ public com.google.datastore.admin.v1.Progress getProgressEntities() { if (progressEntitiesBuilder_ == null) { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } else { return progressEntitiesBuilder_.getMessage(); } } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1098,8 +976,6 @@ public Builder setProgressEntities(com.google.datastore.admin.v1.Progress value) return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1118,8 +994,6 @@ public Builder setProgressEntities( return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1130,9 +1004,7 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu if (progressEntitiesBuilder_ == null) { if (progressEntities_ != null) { progressEntities_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_).mergeFrom(value).buildPartial(); } else { progressEntities_ = value; } @@ -1144,8 +1016,6 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1164,8 +1034,6 @@ public Builder clearProgressEntities() { return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1173,13 +1041,11 @@ public Builder clearProgressEntities() { * .google.datastore.admin.v1.Progress progress_entities = 2; */ public com.google.datastore.admin.v1.Progress.Builder getProgressEntitiesBuilder() { - + onChanged(); return getProgressEntitiesFieldBuilder().getBuilder(); } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1190,14 +1056,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil if (progressEntitiesBuilder_ != null) { return progressEntitiesBuilder_.getMessageOrBuilder(); } else { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? + com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1205,17 +1068,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil * .google.datastore.admin.v1.Progress progress_entities = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> getProgressEntitiesFieldBuilder() { if (progressEntitiesBuilder_ == null) { - progressEntitiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressEntities(), getParentForChildren(), isClean()); + progressEntitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressEntities(), + getParentForChildren(), + isClean()); progressEntities_ = null; } return progressEntitiesBuilder_; @@ -1223,47 +1083,34 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil private com.google.datastore.admin.v1.Progress progressBytes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> - progressBytesBuilder_; + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressBytesBuilder_; /** - * - * *
      * An estimate of the number of bytes processed.
      * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return Whether the progressBytes field is set. */ public boolean hasProgressBytes() { return progressBytesBuilder_ != null || progressBytes_ != null; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return The progressBytes. */ public com.google.datastore.admin.v1.Progress getProgressBytes() { if (progressBytesBuilder_ == null) { - return progressBytes_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressBytes_; + return progressBytes_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; } else { return progressBytesBuilder_.getMessage(); } } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1284,8 +1131,6 @@ public Builder setProgressBytes(com.google.datastore.admin.v1.Progress value) { return this; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1304,8 +1149,6 @@ public Builder setProgressBytes( return this; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1316,9 +1159,7 @@ public Builder mergeProgressBytes(com.google.datastore.admin.v1.Progress value) if (progressBytesBuilder_ == null) { if (progressBytes_ != null) { progressBytes_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressBytes_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressBytes_).mergeFrom(value).buildPartial(); } else { progressBytes_ = value; } @@ -1330,8 +1171,6 @@ public Builder mergeProgressBytes(com.google.datastore.admin.v1.Progress value) return this; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1350,8 +1189,6 @@ public Builder clearProgressBytes() { return this; } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1359,13 +1196,11 @@ public Builder clearProgressBytes() { * .google.datastore.admin.v1.Progress progress_bytes = 3; */ public com.google.datastore.admin.v1.Progress.Builder getProgressBytesBuilder() { - + onChanged(); return getProgressBytesFieldBuilder().getBuilder(); } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1376,14 +1211,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder if (progressBytesBuilder_ != null) { return progressBytesBuilder_.getMessageOrBuilder(); } else { - return progressBytes_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressBytes_; + return progressBytes_ == null ? + com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; } } /** - * - * *
      * An estimate of the number of bytes processed.
      * 
@@ -1391,17 +1223,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder * .google.datastore.admin.v1.Progress progress_bytes = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> getProgressBytesFieldBuilder() { if (progressBytesBuilder_ == null) { - progressBytesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressBytes(), getParentForChildren(), isClean()); + progressBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressBytes(), + getParentForChildren(), + isClean()); progressBytes_ = null; } return progressBytesBuilder_; @@ -1409,47 +1238,34 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder private com.google.datastore.admin.v1.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder> - entityFilterBuilder_; + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> entityFilterBuilder_; /** - * - * *
      * Description of which entities are being imported.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ public boolean hasEntityFilter() { return entityFilterBuilder_ != null || entityFilter_ != null; } /** - * - * *
      * Description of which entities are being imported.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** - * - * *
      * Description of which entities are being imported.
      * 
@@ -1470,8 +1286,6 @@ public Builder setEntityFilter(com.google.datastore.admin.v1.EntityFilter value) return this; } /** - * - * *
      * Description of which entities are being imported.
      * 
@@ -1490,8 +1304,6 @@ public Builder setEntityFilter( return this; } /** - * - * *
      * Description of which entities are being imported.
      * 
@@ -1502,9 +1314,7 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu if (entityFilterBuilder_ == null) { if (entityFilter_ != null) { entityFilter_ = - com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_).mergeFrom(value).buildPartial(); } else { entityFilter_ = value; } @@ -1516,8 +1326,6 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu return this; } /** - * - * *
      * Description of which entities are being imported.
      * 
@@ -1536,8 +1344,6 @@ public Builder clearEntityFilter() { return this; } /** - * - * *
      * Description of which entities are being imported.
      * 
@@ -1545,13 +1351,11 @@ public Builder clearEntityFilter() { * .google.datastore.admin.v1.EntityFilter entity_filter = 4; */ public com.google.datastore.admin.v1.EntityFilter.Builder getEntityFilterBuilder() { - + onChanged(); return getEntityFilterFieldBuilder().getBuilder(); } /** - * - * *
      * Description of which entities are being imported.
      * 
@@ -1562,14 +1366,11 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil if (entityFilterBuilder_ != null) { return entityFilterBuilder_.getMessageOrBuilder(); } else { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? + com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } } /** - * - * *
      * Description of which entities are being imported.
      * 
@@ -1577,17 +1378,14 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil * .google.datastore.admin.v1.EntityFilter entity_filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder> + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> getEntityFilterFieldBuilder() { if (entityFilterBuilder_ == null) { - entityFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder>( - getEntityFilter(), getParentForChildren(), isClean()); + entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder>( + getEntityFilter(), + getParentForChildren(), + isClean()); entityFilter_ = null; } return entityFilterBuilder_; @@ -1595,21 +1393,19 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil private java.lang.Object inputUrl_ = ""; /** - * - * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; - * * @return The inputUrl. */ public java.lang.String getInputUrl() { java.lang.Object ref = inputUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUrl_ = s; return s; @@ -1618,22 +1414,21 @@ public java.lang.String getInputUrl() { } } /** - * - * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; - * * @return The bytes for inputUrl. */ - public com.google.protobuf.ByteString getInputUrlBytes() { + public com.google.protobuf.ByteString + getInputUrlBytes() { java.lang.Object ref = inputUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUrl_ = b; return b; } else { @@ -1641,71 +1436,64 @@ public com.google.protobuf.ByteString getInputUrlBytes() { } } /** - * - * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; - * * @param value The inputUrl to set. * @return This builder for chaining. */ - public Builder setInputUrl(java.lang.String value) { + public Builder setInputUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUrl_ = value; onChanged(); return this; } /** - * - * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; - * * @return This builder for chaining. */ public Builder clearInputUrl() { - + inputUrl_ = getDefaultInstance().getInputUrl(); onChanged(); return this; } /** - * - * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; - * * @param value The bytes for inputUrl to set. * @return This builder for chaining. */ - public Builder setInputUrlBytes(com.google.protobuf.ByteString value) { + public Builder setInputUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUrl_ = 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); } @@ -1715,12 +1503,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ImportEntitiesMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ImportEntitiesMetadata) private static final com.google.datastore.admin.v1.ImportEntitiesMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ImportEntitiesMetadata(); } @@ -1729,16 +1517,16 @@ public static com.google.datastore.admin.v1.ImportEntitiesMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportEntitiesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportEntitiesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportEntitiesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportEntitiesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1753,4 +1541,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ImportEntitiesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java similarity index 81% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java index 6cfc8190a..da7b82c40 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ImportEntitiesMetadataOrBuilder - extends +public interface ImportEntitiesMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ImportEntitiesMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ boolean hasCommon(); /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ com.google.datastore.admin.v1.CommonMetadata getCommon(); /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -59,32 +35,24 @@ public interface ImportEntitiesMetadataOrBuilder com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ boolean hasProgressEntities(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ com.google.datastore.admin.v1.Progress getProgressEntities(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
@@ -94,32 +62,24 @@ public interface ImportEntitiesMetadataOrBuilder com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuilder(); /** - * - * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return Whether the progressBytes field is set. */ boolean hasProgressBytes(); /** - * - * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; - * * @return The progressBytes. */ com.google.datastore.admin.v1.Progress getProgressBytes(); /** - * - * *
    * An estimate of the number of bytes processed.
    * 
@@ -129,32 +89,24 @@ public interface ImportEntitiesMetadataOrBuilder com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder(); /** - * - * *
    * Description of which entities are being imported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ boolean hasEntityFilter(); /** - * - * *
    * Description of which entities are being imported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ com.google.datastore.admin.v1.EntityFilter getEntityFilter(); /** - * - * *
    * Description of which entities are being imported.
    * 
@@ -164,29 +116,24 @@ public interface ImportEntitiesMetadataOrBuilder com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuilder(); /** - * - * *
    * The location of the import metadata file. This will be the same value as
    * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    * 
* * string input_url = 5; - * * @return The inputUrl. */ java.lang.String getInputUrl(); /** - * - * *
    * The location of the import metadata file. This will be the same value as
    * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    * 
* * string input_url = 5; - * * @return The bytes for inputUrl. */ - com.google.protobuf.ByteString getInputUrlBytes(); + com.google.protobuf.ByteString + getInputUrlBytes(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java similarity index 71% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java index 71ef341ac..55c2743c6 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ImportEntitiesRequest}
  */
-public final class ImportEntitiesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportEntitiesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ImportEntitiesRequest)
     ImportEntitiesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportEntitiesRequest.newBuilder() to construct.
   private ImportEntitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportEntitiesRequest() {
     projectId_ = "";
     inputUrl_ = "";
@@ -45,15 +27,16 @@ private ImportEntitiesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportEntitiesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImportEntitiesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,56 +56,51 @@ private ImportEntitiesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              projectId_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            projectId_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              inputUrl_ = s;
-              break;
+            inputUrl_ = s;
+            break;
+          }
+          case 34: {
+            com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null;
+            if (entityFilter_ != null) {
+              subBuilder = entityFilter_.toBuilder();
             }
-          case 34:
-            {
-              com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null;
-              if (entityFilter_ != null) {
-                subBuilder = entityFilter_.toBuilder();
-              }
-              entityFilter_ =
-                  input.readMessage(
-                      com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(entityFilter_);
-                entityFilter_ = subBuilder.buildPartial();
-              }
-
-              break;
+            entityFilter_ = input.readMessage(com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(entityFilter_);
+              entityFilter_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -130,50 +108,46 @@ private ImportEntitiesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ImportEntitiesRequest.class,
-            com.google.datastore.admin.v1.ImportEntitiesRequest.Builder.class);
+            com.google.datastore.admin.v1.ImportEntitiesRequest.class, com.google.datastore.admin.v1.ImportEntitiesRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
-   *
-   *
    * 
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -182,29 +156,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -213,23 +187,24 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -238,30 +213,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Client-assigned labels.
    * 
@@ -269,12 +242,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Client-assigned labels.
    * 
@@ -282,16 +254,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Client-assigned labels.
    * 
@@ -299,11 +271,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -313,8 +286,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int INPUT_URL_FIELD_NUMBER = 3; private volatile java.lang.Object inputUrl_; /** - * - * *
    * Required. The full resource URL of the external storage location. Currently, only
    * Google Cloud Storage is supported. So input_url should be of the form:
@@ -331,7 +302,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUrl. */ @java.lang.Override @@ -340,15 +310,14 @@ public java.lang.String getInputUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUrl_ = s; return s; } } /** - * - * *
    * Required. The full resource URL of the external storage location. Currently, only
    * Google Cloud Storage is supported. So input_url should be of the form:
@@ -365,15 +334,16 @@ public java.lang.String getInputUrl() {
    * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUrlBytes() { + public com.google.protobuf.ByteString + getInputUrlBytes() { java.lang.Object ref = inputUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUrl_ = b; return b; } else { @@ -384,8 +354,6 @@ public com.google.protobuf.ByteString getInputUrlBytes() { public static final int ENTITY_FILTER_FIELD_NUMBER = 4; private com.google.datastore.admin.v1.EntityFilter entityFilter_; /** - * - * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -394,7 +362,6 @@ public com.google.protobuf.ByteString getInputUrlBytes() {
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ @java.lang.Override @@ -402,8 +369,6 @@ public boolean hasEntityFilter() { return entityFilter_ != null; } /** - * - * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -412,18 +377,13 @@ public boolean hasEntityFilter() {
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ @java.lang.Override public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } /** - * - * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -439,7 +399,6 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -451,12 +410,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        2);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUrl_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputUrl_);
     }
@@ -475,21 +439,22 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUrl_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inputUrl_);
     }
     if (entityFilter_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEntityFilter());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getEntityFilter());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -499,20 +464,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.datastore.admin.v1.ImportEntitiesRequest)) {
       return super.equals(obj);
     }
-    com.google.datastore.admin.v1.ImportEntitiesRequest other =
-        (com.google.datastore.admin.v1.ImportEntitiesRequest) obj;
+    com.google.datastore.admin.v1.ImportEntitiesRequest other = (com.google.datastore.admin.v1.ImportEntitiesRequest) obj;
 
-    if (!getProjectId().equals(other.getProjectId())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
-    if (!getInputUrl().equals(other.getInputUrl())) return false;
+    if (!getProjectId()
+        .equals(other.getProjectId())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
+    if (!getInputUrl()
+        .equals(other.getInputUrl())) return false;
     if (hasEntityFilter() != other.hasEntityFilter()) return false;
     if (hasEntityFilter()) {
-      if (!getEntityFilter().equals(other.getEntityFilter())) return false;
+      if (!getEntityFilter()
+          .equals(other.getEntityFilter())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -543,103 +511,96 @@ public int hashCode() {
   }
 
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.admin.v1.ImportEntitiesRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.datastore.admin.v1.ImportEntitiesRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.admin.v1.ImportEntitiesRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
@@ -647,43 +608,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.ImportEntitiesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ImportEntitiesRequest)
       com.google.datastore.admin.v1.ImportEntitiesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ImportEntitiesRequest.class,
-              com.google.datastore.admin.v1.ImportEntitiesRequest.Builder.class);
+              com.google.datastore.admin.v1.ImportEntitiesRequest.class, com.google.datastore.admin.v1.ImportEntitiesRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ImportEntitiesRequest.newBuilder()
@@ -691,15 +652,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -718,9 +680,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -739,8 +701,7 @@ public com.google.datastore.admin.v1.ImportEntitiesRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ImportEntitiesRequest buildPartial() {
-      com.google.datastore.admin.v1.ImportEntitiesRequest result =
-          new com.google.datastore.admin.v1.ImportEntitiesRequest(this);
+      com.google.datastore.admin.v1.ImportEntitiesRequest result = new com.google.datastore.admin.v1.ImportEntitiesRequest(this);
       int from_bitField0_ = bitField0_;
       result.projectId_ = projectId_;
       result.labels_ = internalGetLabels();
@@ -759,39 +720,38 @@ public com.google.datastore.admin.v1.ImportEntitiesRequest 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.datastore.admin.v1.ImportEntitiesRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.ImportEntitiesRequest) other);
+        return mergeFrom((com.google.datastore.admin.v1.ImportEntitiesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -799,13 +759,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ImportEntitiesRequest other) {
-      if (other == com.google.datastore.admin.v1.ImportEntitiesRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.ImportEntitiesRequest.getDefaultInstance()) return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getInputUrl().isEmpty()) {
         inputUrl_ = other.inputUrl_;
         onChanged();
@@ -832,8 +792,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.datastore.admin.v1.ImportEntitiesRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.datastore.admin.v1.ImportEntitiesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -842,25 +801,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object projectId_ = "";
     /**
-     *
-     *
      * 
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -869,21 +825,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -891,81 +846,75 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -977,30 +926,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Client-assigned labels.
      * 
@@ -1008,12 +955,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Client-assigned labels.
      * 
@@ -1021,17 +967,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Client-assigned labels.
      * 
@@ -1039,11 +984,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1051,68 +997,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object inputUrl_ = ""; /** - * - * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1129,13 +1076,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUrl. */ public java.lang.String getInputUrl() { java.lang.Object ref = inputUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUrl_ = s; return s; @@ -1144,8 +1091,6 @@ public java.lang.String getInputUrl() { } } /** - * - * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1162,14 +1107,15 @@ public java.lang.String getInputUrl() {
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUrl. */ - public com.google.protobuf.ByteString getInputUrlBytes() { + public com.google.protobuf.ByteString + getInputUrlBytes() { java.lang.Object ref = inputUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUrl_ = b; return b; } else { @@ -1177,8 +1123,6 @@ public com.google.protobuf.ByteString getInputUrlBytes() { } } /** - * - * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1195,22 +1139,20 @@ public com.google.protobuf.ByteString getInputUrlBytes() {
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUrl to set. * @return This builder for chaining. */ - public Builder setInputUrl(java.lang.String value) { + public Builder setInputUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUrl_ = value; onChanged(); return this; } /** - * - * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1227,18 +1169,15 @@ public Builder setInputUrl(java.lang.String value) {
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUrl() { - + inputUrl_ = getDefaultInstance().getInputUrl(); onChanged(); return this; } /** - * - * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1255,16 +1194,16 @@ public Builder clearInputUrl() {
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for inputUrl to set. * @return This builder for chaining. */ - public Builder setInputUrlBytes(com.google.protobuf.ByteString value) { + public Builder setInputUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUrl_ = value; onChanged(); return this; @@ -1272,13 +1211,8 @@ public Builder setInputUrlBytes(com.google.protobuf.ByteString value) { private com.google.datastore.admin.v1.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, - com.google.datastore.admin.v1.EntityFilter.Builder, - com.google.datastore.admin.v1.EntityFilterOrBuilder> - entityFilterBuilder_; + com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> entityFilterBuilder_; /** - * - * *
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1287,15 +1221,12 @@ public Builder setInputUrlBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ public boolean hasEntityFilter() { return entityFilterBuilder_ != null || entityFilter_ != null; } /** - * - * *
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1304,21 +1235,16 @@ public boolean hasEntityFilter() {
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { - return entityFilter_ == null - ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() - : entityFilter_; + return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** - * - * *
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1342,8 +1268,6 @@ public Builder setEntityFilter(com.google.datastore.admin.v1.EntityFilter value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1365,8 +1289,6 @@ public Builder setEntityFilter(
       return this;
     }
     /**
-     *
-     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1380,9 +1302,7 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu
       if (entityFilterBuilder_ == null) {
         if (entityFilter_ != null) {
           entityFilter_ =
-              com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_).mergeFrom(value).buildPartial();
         } else {
           entityFilter_ = value;
         }
@@ -1394,8 +1314,6 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1417,8 +1335,6 @@ public Builder clearEntityFilter() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1429,13 +1345,11 @@ public Builder clearEntityFilter() {
      * .google.datastore.admin.v1.EntityFilter entity_filter = 4;
      */
     public com.google.datastore.admin.v1.EntityFilter.Builder getEntityFilterBuilder() {
-
+      
       onChanged();
       return getEntityFilterFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1449,14 +1363,11 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
       if (entityFilterBuilder_ != null) {
         return entityFilterBuilder_.getMessageOrBuilder();
       } else {
-        return entityFilter_ == null
-            ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance()
-            : entityFilter_;
+        return entityFilter_ == null ?
+            com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_;
       }
     }
     /**
-     *
-     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1467,24 +1378,21 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
      * .google.datastore.admin.v1.EntityFilter entity_filter = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.admin.v1.EntityFilter,
-            com.google.datastore.admin.v1.EntityFilter.Builder,
-            com.google.datastore.admin.v1.EntityFilterOrBuilder>
+        com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> 
         getEntityFilterFieldBuilder() {
       if (entityFilterBuilder_ == null) {
-        entityFilterBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.admin.v1.EntityFilter,
-                com.google.datastore.admin.v1.EntityFilter.Builder,
-                com.google.datastore.admin.v1.EntityFilterOrBuilder>(
-                getEntityFilter(), getParentForChildren(), isClean());
+        entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder>(
+                getEntityFilter(),
+                getParentForChildren(),
+                isClean());
         entityFilter_ = null;
       }
       return entityFilterBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1494,12 +1402,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ImportEntitiesRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ImportEntitiesRequest)
   private static final com.google.datastore.admin.v1.ImportEntitiesRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ImportEntitiesRequest();
   }
@@ -1508,16 +1416,16 @@ public static com.google.datastore.admin.v1.ImportEntitiesRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ImportEntitiesRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ImportEntitiesRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportEntitiesRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ImportEntitiesRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1532,4 +1440,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.admin.v1.ImportEntitiesRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
similarity index 79%
rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
index e3d1d782f..7522ee60a 100644
--- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/admin/v1/datastore_admin.proto
 
 package com.google.datastore.admin.v1;
 
-public interface ImportEntitiesRequestOrBuilder
-    extends
+public interface ImportEntitiesRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ImportEntitiesRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Client-assigned labels.
    * 
@@ -59,31 +36,30 @@ public interface ImportEntitiesRequestOrBuilder */ int getLabelsCount(); /** - * - * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Client-assigned labels.
    * 
@@ -92,24 +68,22 @@ public interface ImportEntitiesRequestOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. The full resource URL of the external storage location. Currently, only
    * Google Cloud Storage is supported. So input_url should be of the form:
@@ -126,13 +100,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUrl. */ java.lang.String getInputUrl(); /** - * - * *
    * Required. The full resource URL of the external storage location. Currently, only
    * Google Cloud Storage is supported. So input_url should be of the form:
@@ -149,14 +120,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUrl. */ - com.google.protobuf.ByteString getInputUrlBytes(); + com.google.protobuf.ByteString + getInputUrlBytes(); /** - * - * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -165,13 +134,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return Whether the entityFilter field is set. */ boolean hasEntityFilter(); /** - * - * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -180,13 +146,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * * @return The entityFilter. */ com.google.datastore.admin.v1.EntityFilter getEntityFilter(); /** - * - * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java
similarity index 70%
rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java
index 74be6fcce..84a90e361 100644
--- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.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/datastore/admin/v1/index.proto
 
 package com.google.datastore.admin.v1;
 
 /**
- *
- *
  * 
  * Datastore composite index definition.
  * 
* * Protobuf type {@code google.datastore.admin.v1.Index} */ -public final class Index extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Index extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.Index) IndexOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Index.newBuilder() to construct. private Index(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Index() { projectId_ = ""; indexId_ = ""; @@ -48,15 +30,16 @@ private Index() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Index(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Index( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,61 +59,52 @@ private Index( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - indexId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + indexId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); + kind_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); - ancestor_ = rawValue; - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - properties_.add( - input.readMessage( - com.google.datastore.admin.v1.Index.IndexedProperty.parser(), - extensionRegistry)); - break; + ancestor_ = rawValue; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 56: - { - int rawValue = input.readEnum(); + properties_.add( + input.readMessage(com.google.datastore.admin.v1.Index.IndexedProperty.parser(), extensionRegistry)); + break; + } + case 56: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,7 +112,8 @@ private Index( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { properties_ = java.util.Collections.unmodifiableList(properties_); @@ -147,25 +122,20 @@ private Index( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_fieldAccessorTable + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Index.class, - com.google.datastore.admin.v1.Index.Builder.class); + com.google.datastore.admin.v1.Index.class, com.google.datastore.admin.v1.Index.Builder.class); } /** - * - * *
    * For an ordered index, specifies whether each of the entity's ancestors
    * will be included.
@@ -173,10 +143,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.datastore.admin.v1.Index.AncestorMode}
    */
-  public enum AncestorMode implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AncestorMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * The ancestor mode is unspecified.
      * 
@@ -185,8 +154,6 @@ public enum AncestorMode implements com.google.protobuf.ProtocolMessageEnum { */ ANCESTOR_MODE_UNSPECIFIED(0), /** - * - * *
      * Do not include the entity's ancestors in the index.
      * 
@@ -195,8 +162,6 @@ public enum AncestorMode implements com.google.protobuf.ProtocolMessageEnum { */ NONE(1), /** - * - * *
      * Include all the entity's ancestors in the index.
      * 
@@ -208,8 +173,6 @@ public enum AncestorMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The ancestor mode is unspecified.
      * 
@@ -218,8 +181,6 @@ public enum AncestorMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ANCESTOR_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Do not include the entity's ancestors in the index.
      * 
@@ -228,8 +189,6 @@ public enum AncestorMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NONE_VALUE = 1; /** - * - * *
      * Include all the entity's ancestors in the index.
      * 
@@ -238,6 +197,7 @@ public enum AncestorMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALL_ANCESTORS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -262,49 +222,49 @@ public static AncestorMode valueOf(int value) { */ public static AncestorMode forNumber(int value) { switch (value) { - case 0: - return ANCESTOR_MODE_UNSPECIFIED; - case 1: - return NONE; - case 2: - return ALL_ANCESTORS; - default: - return null; + case 0: return ANCESTOR_MODE_UNSPECIFIED; + case 1: return NONE; + case 2: return ALL_ANCESTORS; + 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< + AncestorMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AncestorMode findValueByNumber(int number) { + return AncestorMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AncestorMode findValueByNumber(int number) { - return AncestorMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.admin.v1.Index.getDescriptor().getEnumTypes().get(0); } private static final AncestorMode[] VALUES = values(); - public static AncestorMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AncestorMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -322,18 +282,15 @@ private AncestorMode(int value) { } /** - * - * *
    * The direction determines how a property is indexed.
    * 
* * Protobuf enum {@code google.datastore.admin.v1.Index.Direction} */ - public enum Direction implements com.google.protobuf.ProtocolMessageEnum { + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The direction is unspecified.
      * 
@@ -342,8 +299,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ DIRECTION_UNSPECIFIED(0), /** - * - * *
      * The property's values are indexed so as to support sequencing in
      * ascending order and also query by <, >, <=, >=, and =.
@@ -353,8 +308,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
      */
     ASCENDING(1),
     /**
-     *
-     *
      * 
      * The property's values are indexed so as to support sequencing in
      * descending order and also query by <, >, <=, >=, and =.
@@ -367,8 +320,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The direction is unspecified.
      * 
@@ -377,8 +328,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DIRECTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The property's values are indexed so as to support sequencing in
      * ascending order and also query by <, >, <=, >=, and =.
@@ -388,8 +337,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ASCENDING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The property's values are indexed so as to support sequencing in
      * descending order and also query by <, >, <=, >=, and =.
@@ -399,6 +346,7 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DESCENDING_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -423,49 +371,49 @@ public static Direction valueOf(int value) {
      */
     public static Direction forNumber(int value) {
       switch (value) {
-        case 0:
-          return DIRECTION_UNSPECIFIED;
-        case 1:
-          return ASCENDING;
-        case 2:
-          return DESCENDING;
-        default:
-          return null;
+        case 0: return DIRECTION_UNSPECIFIED;
+        case 1: return ASCENDING;
+        case 2: return DESCENDING;
+        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<
+        Direction> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Direction findValueByNumber(int number) {
+              return Direction.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Direction findValueByNumber(int number) {
-            return Direction.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.datastore.admin.v1.Index.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Direction[] VALUES = values();
 
-    public static Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Direction 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;
@@ -483,18 +431,15 @@ private Direction(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The possible set of states of an index.
    * 
* * Protobuf enum {@code google.datastore.admin.v1.Index.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The state is unspecified.
      * 
@@ -503,8 +448,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The index is being created, and cannot be used by queries.
      * There is an active long-running operation for the index.
@@ -516,8 +459,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CREATING(1),
     /**
-     *
-     *
      * 
      * The index is ready to be used.
      * The index is updated when writing an entity.
@@ -528,8 +469,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     READY(2),
     /**
-     *
-     *
      * 
      * The index is being deleted, and cannot be used by queries.
      * There is an active long-running operation for the index.
@@ -541,8 +480,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     DELETING(3),
     /**
-     *
-     *
      * 
      * The index was being created or deleted, but something went wrong.
      * The index cannot by used by queries.
@@ -559,8 +496,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The state is unspecified.
      * 
@@ -569,8 +504,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The index is being created, and cannot be used by queries.
      * There is an active long-running operation for the index.
@@ -582,8 +515,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CREATING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The index is ready to be used.
      * The index is updated when writing an entity.
@@ -594,8 +525,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int READY_VALUE = 2;
     /**
-     *
-     *
      * 
      * The index is being deleted, and cannot be used by queries.
      * There is an active long-running operation for the index.
@@ -607,8 +536,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DELETING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The index was being created or deleted, but something went wrong.
      * The index cannot by used by queries.
@@ -622,6 +549,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -646,53 +574,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return CREATING;
-        case 2:
-          return READY;
-        case 3:
-          return DELETING;
-        case 4:
-          return ERROR;
-        default:
-          return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
-      return internalValueMap;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return CREATING;
+        case 2: return READY;
+        case 3: return DELETING;
+        case 4: return ERROR;
+        default: return null;
+      }
     }
 
-    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 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() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.datastore.admin.v1.Index.getDescriptor().getEnumTypes().get(2);
     }
 
     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;
@@ -709,84 +635,65 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.Index.State)
   }
 
-  public interface IndexedPropertyOrBuilder
-      extends
+  public interface IndexedPropertyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.Index.IndexedProperty)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. The property name to index.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. The property name to index.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** - * - * *
      * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The direction. */ com.google.datastore.admin.v1.Index.Direction getDirection(); } /** - * - * *
    * A property of an index.
    * 
* * Protobuf type {@code google.datastore.admin.v1.Index.IndexedProperty} */ - public static final class IndexedProperty extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IndexedProperty extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.Index.IndexedProperty) IndexedPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IndexedProperty.newBuilder() to construct. private IndexedProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IndexedProperty() { name_ = ""; direction_ = 0; @@ -794,15 +701,16 @@ private IndexedProperty() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IndexedProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IndexedProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -821,27 +729,25 @@ private IndexedProperty( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - direction_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + direction_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -849,39 +755,34 @@ private IndexedProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Index.IndexedProperty.class, - com.google.datastore.admin.v1.Index.IndexedProperty.Builder.class); + com.google.datastore.admin.v1.Index.IndexedProperty.class, com.google.datastore.admin.v1.Index.IndexedProperty.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. The property name to index.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -890,29 +791,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. The property name to index.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -923,45 +824,31 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DIRECTION_FIELD_NUMBER = 2; private int direction_; /** - * - * *
      * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for direction. */ - @java.lang.Override - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * - * *
      * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The direction. */ - @java.lang.Override - public com.google.datastore.admin.v1.Index.Direction getDirection() { + @java.lang.Override public com.google.datastore.admin.v1.Index.Direction getDirection() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.Direction result = - com.google.datastore.admin.v1.Index.Direction.valueOf(direction_); + com.google.datastore.admin.v1.Index.Direction result = com.google.datastore.admin.v1.Index.Direction.valueOf(direction_); return result == null ? com.google.datastore.admin.v1.Index.Direction.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -973,12 +860,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (direction_ - != com.google.datastore.admin.v1.Index.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + if (direction_ != com.google.datastore.admin.v1.Index.Direction.DIRECTION_UNSPECIFIED.getNumber()) { output.writeEnum(2, direction_); } unknownFields.writeTo(output); @@ -993,9 +880,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (direction_ - != com.google.datastore.admin.v1.Index.Direction.DIRECTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); + if (direction_ != com.google.datastore.admin.v1.Index.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, direction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1005,15 +892,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.datastore.admin.v1.Index.IndexedProperty)) { return super.equals(obj); } - com.google.datastore.admin.v1.Index.IndexedProperty other = - (com.google.datastore.admin.v1.Index.IndexedProperty) obj; + com.google.datastore.admin.v1.Index.IndexedProperty other = (com.google.datastore.admin.v1.Index.IndexedProperty) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (direction_ != other.direction_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1036,94 +923,87 @@ public int hashCode() { } public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.Index.IndexedProperty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.Index.IndexedProperty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.datastore.admin.v1.Index.IndexedProperty prototype) { + public static Builder newBuilder(com.google.datastore.admin.v1.Index.IndexedProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1133,32 +1013,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A property of an index.
      * 
* * Protobuf type {@code google.datastore.admin.v1.Index.IndexedProperty} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.Index.IndexedProperty) com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Index.IndexedProperty.class, - com.google.datastore.admin.v1.Index.IndexedProperty.Builder.class); + com.google.datastore.admin.v1.Index.IndexedProperty.class, com.google.datastore.admin.v1.Index.IndexedProperty.Builder.class); } // Construct using com.google.datastore.admin.v1.Index.IndexedProperty.newBuilder() @@ -1166,15 +1041,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1186,9 +1062,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; } @java.lang.Override @@ -1207,8 +1083,7 @@ public com.google.datastore.admin.v1.Index.IndexedProperty build() { @java.lang.Override public com.google.datastore.admin.v1.Index.IndexedProperty buildPartial() { - com.google.datastore.admin.v1.Index.IndexedProperty result = - new com.google.datastore.admin.v1.Index.IndexedProperty(this); + com.google.datastore.admin.v1.Index.IndexedProperty result = new com.google.datastore.admin.v1.Index.IndexedProperty(this); result.name_ = name_; result.direction_ = direction_; onBuilt(); @@ -1219,41 +1094,38 @@ public com.google.datastore.admin.v1.Index.IndexedProperty buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.datastore.admin.v1.Index.IndexedProperty) { - return mergeFrom((com.google.datastore.admin.v1.Index.IndexedProperty) other); + return mergeFrom((com.google.datastore.admin.v1.Index.IndexedProperty)other); } else { super.mergeFrom(other); return this; @@ -1261,8 +1133,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.admin.v1.Index.IndexedProperty other) { - if (other == com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()) - return this; + if (other == com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1289,8 +1160,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.datastore.admin.v1.Index.IndexedProperty) e.getUnfinishedMessage(); + parsedMessage = (com.google.datastore.admin.v1.Index.IndexedProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1302,20 +1172,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1324,21 +1192,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1346,61 +1213,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1408,73 +1268,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int direction_ = 0; /** - * - * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for direction. */ - @java.lang.Override - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * - * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ public Builder setDirectionValue(int value) { - + direction_ = value; onChanged(); return this; } /** - * - * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The direction. */ @java.lang.Override public com.google.datastore.admin.v1.Index.Direction getDirection() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.Direction result = - com.google.datastore.admin.v1.Index.Direction.valueOf(direction_); + com.google.datastore.admin.v1.Index.Direction result = com.google.datastore.admin.v1.Index.Direction.valueOf(direction_); return result == null ? com.google.datastore.admin.v1.Index.Direction.UNRECOGNIZED : result; } /** - * - * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The direction to set. * @return This builder for chaining. */ @@ -1482,31 +1320,25 @@ public Builder setDirection(com.google.datastore.admin.v1.Index.Direction value) if (value == null) { throw new NullPointerException(); } - + direction_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearDirection() { - + direction_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1519,12 +1351,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.Index.IndexedProperty) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.Index.IndexedProperty) private static final com.google.datastore.admin.v1.Index.IndexedProperty DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.Index.IndexedProperty(); } @@ -1533,16 +1365,16 @@ public static com.google.datastore.admin.v1.Index.IndexedProperty getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndexedProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IndexedProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexedProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexedProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1557,19 +1389,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.Index.IndexedProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Output only. Project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The projectId. */ @java.lang.Override @@ -1578,29 +1408,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Output only. Project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1611,14 +1441,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int INDEX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object indexId_; /** - * - * *
    * Output only. The resource ID of the index.
    * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexId. */ @java.lang.Override @@ -1627,29 +1454,29 @@ public java.lang.String getIndexId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; } } /** - * - * *
    * Output only. The resource ID of the index.
    * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for indexId. */ @java.lang.Override - public com.google.protobuf.ByteString getIndexIdBytes() { + public com.google.protobuf.ByteString + getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); indexId_ = b; return b; } else { @@ -1660,14 +1487,11 @@ public com.google.protobuf.ByteString getIndexIdBytes() { public static final int KIND_FIELD_NUMBER = 4; private volatile java.lang.Object kind_; /** - * - * *
    * Required. The entity kind to which this index applies.
    * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kind. */ @java.lang.Override @@ -1676,29 +1500,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Required. The entity kind to which this index applies.
    * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -1709,116 +1533,83 @@ public com.google.protobuf.ByteString getKindBytes() { public static final int ANCESTOR_FIELD_NUMBER = 5; private int ancestor_; /** - * - * *
    * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for ancestor. */ - @java.lang.Override - public int getAncestorValue() { + @java.lang.Override public int getAncestorValue() { return ancestor_; } /** - * - * *
    * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The ancestor. */ - @java.lang.Override - public com.google.datastore.admin.v1.Index.AncestorMode getAncestor() { + @java.lang.Override public com.google.datastore.admin.v1.Index.AncestorMode getAncestor() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.AncestorMode result = - com.google.datastore.admin.v1.Index.AncestorMode.valueOf(ancestor_); + com.google.datastore.admin.v1.Index.AncestorMode result = com.google.datastore.admin.v1.Index.AncestorMode.valueOf(ancestor_); return result == null ? com.google.datastore.admin.v1.Index.AncestorMode.UNRECOGNIZED : result; } public static final int PROPERTIES_FIELD_NUMBER = 6; private java.util.List properties_; /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getPropertiesList() { return properties_; } /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getPropertiesOrBuilderList() { return properties_; } /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getPropertiesCount() { return properties_.size(); } /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.datastore.admin.v1.Index.IndexedProperty getProperties(int index) { return properties_.get(index); } /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertiesOrBuilder( @@ -1829,45 +1620,31 @@ public com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertie public static final int STATE_FIELD_NUMBER = 7; private int state_; /** - * - * *
    * Output only. The state of the index.
    * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.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 state of the index.
    * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.datastore.admin.v1.Index.State getState() { + @java.lang.Override public com.google.datastore.admin.v1.Index.State getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.State result = - com.google.datastore.admin.v1.Index.State.valueOf(state_); + com.google.datastore.admin.v1.Index.State result = com.google.datastore.admin.v1.Index.State.valueOf(state_); return result == null ? com.google.datastore.admin.v1.Index.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1879,7 +1656,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -1889,8 +1667,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kind_); } - if (ancestor_ - != com.google.datastore.admin.v1.Index.AncestorMode.ANCESTOR_MODE_UNSPECIFIED.getNumber()) { + if (ancestor_ != com.google.datastore.admin.v1.Index.AncestorMode.ANCESTOR_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(5, ancestor_); } for (int i = 0; i < properties_.size(); i++) { @@ -1917,15 +1694,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kind_); } - if (ancestor_ - != com.google.datastore.admin.v1.Index.AncestorMode.ANCESTOR_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, ancestor_); + if (ancestor_ != com.google.datastore.admin.v1.Index.AncestorMode.ANCESTOR_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, ancestor_); } for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, properties_.get(i)); } if (state_ != com.google.datastore.admin.v1.Index.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1935,18 +1714,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.datastore.admin.v1.Index)) { return super.equals(obj); } com.google.datastore.admin.v1.Index other = (com.google.datastore.admin.v1.Index) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getIndexId().equals(other.getIndexId())) return false; - if (!getKind().equals(other.getKind())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getIndexId() + .equals(other.getIndexId())) return false; + if (!getKind() + .equals(other.getKind())) return false; if (ancestor_ != other.ancestor_) return false; - if (!getPropertiesList().equals(other.getPropertiesList())) return false; + if (!getPropertiesList() + .equals(other.getPropertiesList())) return false; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1978,126 +1761,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.Index parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.Index parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Index parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.Index parseFrom(com.google.protobuf.ByteString data) + public static com.google.datastore.admin.v1.Index parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Index parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Index parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Index parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Index parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Index parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.Index parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Index parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.Index parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Index parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.Index prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Datastore composite index definition.
    * 
* * Protobuf type {@code google.datastore.admin.v1.Index} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.Index) com.google.datastore.admin.v1.IndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_fieldAccessorTable + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Index.class, - com.google.datastore.admin.v1.Index.Builder.class); + com.google.datastore.admin.v1.Index.class, com.google.datastore.admin.v1.Index.Builder.class); } // Construct using com.google.datastore.admin.v1.Index.newBuilder() @@ -2105,17 +1880,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2139,9 +1914,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.IndexProto - .internal_static_google_datastore_admin_v1_Index_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_descriptor; } @java.lang.Override @@ -2184,39 +1959,38 @@ public com.google.datastore.admin.v1.Index 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.datastore.admin.v1.Index) { - return mergeFrom((com.google.datastore.admin.v1.Index) other); + return mergeFrom((com.google.datastore.admin.v1.Index)other); } else { super.mergeFrom(other); return this; @@ -2258,10 +2032,9 @@ public Builder mergeFrom(com.google.datastore.admin.v1.Index other) { propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000001); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertiesFieldBuilder() - : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -2298,25 +2071,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -2325,21 +2095,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -2347,61 +2116,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -2409,20 +2171,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object indexId_ = ""; /** - * - * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexId. */ public java.lang.String getIndexId() { java.lang.Object ref = indexId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; @@ -2431,21 +2191,20 @@ public java.lang.String getIndexId() { } } /** - * - * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for indexId. */ - public com.google.protobuf.ByteString getIndexIdBytes() { + public com.google.protobuf.ByteString + getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); indexId_ = b; return b; } else { @@ -2453,61 +2212,54 @@ public com.google.protobuf.ByteString getIndexIdBytes() { } } /** - * - * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The indexId to set. * @return This builder for chaining. */ - public Builder setIndexId(java.lang.String value) { + public Builder setIndexId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + indexId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIndexId() { - + indexId_ = getDefaultInstance().getIndexId(); onChanged(); return this; } /** - * - * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for indexId to set. * @return This builder for chaining. */ - public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { + public Builder setIndexIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexId_ = value; onChanged(); return this; @@ -2515,20 +2267,18 @@ public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object kind_ = ""; /** - * - * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -2537,21 +2287,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -2559,61 +2308,54 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { + public Builder setKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** - * - * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** - * - * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { + public Builder setKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; @@ -2621,75 +2363,51 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { private int ancestor_ = 0; /** - * - * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for ancestor. */ - @java.lang.Override - public int getAncestorValue() { + @java.lang.Override public int getAncestorValue() { return ancestor_; } /** - * - * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for ancestor to set. * @return This builder for chaining. */ public Builder setAncestorValue(int value) { - + ancestor_ = value; onChanged(); return this; } /** - * - * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The ancestor. */ @java.lang.Override public com.google.datastore.admin.v1.Index.AncestorMode getAncestor() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.AncestorMode result = - com.google.datastore.admin.v1.Index.AncestorMode.valueOf(ancestor_); - return result == null - ? com.google.datastore.admin.v1.Index.AncestorMode.UNRECOGNIZED - : result; + com.google.datastore.admin.v1.Index.AncestorMode result = com.google.datastore.admin.v1.Index.AncestorMode.valueOf(ancestor_); + return result == null ? com.google.datastore.admin.v1.Index.AncestorMode.UNRECOGNIZED : result; } /** - * - * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @param value The ancestor to set. * @return This builder for chaining. */ @@ -2697,59 +2415,44 @@ public Builder setAncestor(com.google.datastore.admin.v1.Index.AncestorMode valu if (value == null) { throw new NullPointerException(); } - + ancestor_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAncestor() { - + ancestor_ = 0; onChanged(); return this; } private java.util.List properties_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - properties_ = - new java.util.ArrayList( - properties_); + properties_ = new java.util.ArrayList(properties_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index.IndexedProperty, - com.google.datastore.admin.v1.Index.IndexedProperty.Builder, - com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder> - propertiesBuilder_; + com.google.datastore.admin.v1.Index.IndexedProperty, com.google.datastore.admin.v1.Index.IndexedProperty.Builder, com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder> propertiesBuilder_; /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getPropertiesList() { if (propertiesBuilder_ == null) { @@ -2759,15 +2462,11 @@ public java.util.List getPr } } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public int getPropertiesCount() { if (propertiesBuilder_ == null) { @@ -2777,15 +2476,11 @@ public int getPropertiesCount() { } } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.admin.v1.Index.IndexedProperty getProperties(int index) { if (propertiesBuilder_ == null) { @@ -2795,15 +2490,11 @@ public com.google.datastore.admin.v1.Index.IndexedProperty getProperties(int ind } } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProperties( int index, com.google.datastore.admin.v1.Index.IndexedProperty value) { @@ -2820,15 +2511,11 @@ public Builder setProperties( return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProperties( int index, com.google.datastore.admin.v1.Index.IndexedProperty.Builder builderForValue) { @@ -2842,15 +2529,11 @@ public Builder setProperties( return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addProperties(com.google.datastore.admin.v1.Index.IndexedProperty value) { if (propertiesBuilder_ == null) { @@ -2866,15 +2549,11 @@ public Builder addProperties(com.google.datastore.admin.v1.Index.IndexedProperty return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addProperties( int index, com.google.datastore.admin.v1.Index.IndexedProperty value) { @@ -2891,15 +2570,11 @@ public Builder addProperties( return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addProperties( com.google.datastore.admin.v1.Index.IndexedProperty.Builder builderForValue) { @@ -2913,15 +2588,11 @@ public Builder addProperties( return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addProperties( int index, com.google.datastore.admin.v1.Index.IndexedProperty.Builder builderForValue) { @@ -2935,21 +2606,18 @@ public Builder addProperties( return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllProperties( java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -2957,15 +2625,11 @@ public Builder addAllProperties( return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProperties() { if (propertiesBuilder_ == null) { @@ -2978,15 +2642,11 @@ public Builder clearProperties() { return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { @@ -2999,52 +2659,39 @@ public Builder removeProperties(int index) { return this; } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.admin.v1.Index.IndexedProperty.Builder getPropertiesBuilder( int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); - } else { + return properties_.get(index); } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List + getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -3052,65 +2699,49 @@ public com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertie } } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.admin.v1.Index.IndexedProperty.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder() - .addBuilder(com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()); + return getPropertiesFieldBuilder().addBuilder( + com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()); } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.admin.v1.Index.IndexedProperty.Builder addPropertiesBuilder( int index) { - return getPropertiesFieldBuilder() - .addBuilder( - index, com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()); + return getPropertiesFieldBuilder().addBuilder( + index, com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()); } /** - * - * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getPropertiesBuilderList() { + public java.util.List + getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index.IndexedProperty, - com.google.datastore.admin.v1.Index.IndexedProperty.Builder, - com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder> + com.google.datastore.admin.v1.Index.IndexedProperty, com.google.datastore.admin.v1.Index.IndexedProperty.Builder, com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index.IndexedProperty, - com.google.datastore.admin.v1.Index.IndexedProperty.Builder, - com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder>( - properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.admin.v1.Index.IndexedProperty, com.google.datastore.admin.v1.Index.IndexedProperty.Builder, com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder>( + properties_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); properties_ = null; } return propertiesBuilder_; @@ -3118,73 +2749,51 @@ public com.google.datastore.admin.v1.Index.IndexedProperty.Builder addProperties private int state_ = 0; /** - * - * *
      * Output only. The state of the index.
      * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.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 state of the index.
      * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.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 state of the index.
      * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.datastore.admin.v1.Index.State getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.State result = - com.google.datastore.admin.v1.Index.State.valueOf(state_); + com.google.datastore.admin.v1.Index.State result = com.google.datastore.admin.v1.Index.State.valueOf(state_); return result == null ? com.google.datastore.admin.v1.Index.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The state of the index.
      * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3192,33 +2801,28 @@ public Builder setState(com.google.datastore.admin.v1.Index.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The state of the index.
      * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3228,12 +2832,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.Index) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.Index) private static final com.google.datastore.admin.v1.Index DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.Index(); } @@ -3242,16 +2846,16 @@ public static com.google.datastore.admin.v1.Index getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Index parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Index(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Index parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Index(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3266,4 +2870,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.Index getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java similarity index 70% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java index d36516420..9ee59a35e 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * Metadata for Index operations.
  * 
* * Protobuf type {@code google.datastore.admin.v1.IndexOperationMetadata} */ -public final class IndexOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IndexOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.IndexOperationMetadata) IndexOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IndexOperationMetadata.newBuilder() to construct. private IndexOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IndexOperationMetadata() { indexId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IndexOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IndexOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,45 @@ private IndexOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; - if (common_ != null) { - subBuilder = common_.toBuilder(); - } - common_ = - input.readMessage( - com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(common_); - common_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); } - case 18: - { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressEntities_ != null) { - subBuilder = progressEntities_.toBuilder(); - } - progressEntities_ = - input.readMessage( - com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressEntities_); - progressEntities_ = subBuilder.buildPartial(); - } - - break; + common_ = input.readMessage(com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - indexId_ = s; - break; + break; + } + case 18: { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressEntities_ != null) { + subBuilder = progressEntities_.toBuilder(); + } + progressEntities_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressEntities_); + progressEntities_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + indexId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,39 +99,34 @@ private IndexOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.IndexOperationMetadata.class, - com.google.datastore.admin.v1.IndexOperationMetadata.Builder.class); + com.google.datastore.admin.v1.IndexOperationMetadata.class, com.google.datastore.admin.v1.IndexOperationMetadata.Builder.class); } public static final int COMMON_FIELD_NUMBER = 1; private com.google.datastore.admin.v1.CommonMetadata common_; /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ @java.lang.Override @@ -163,25 +134,18 @@ public boolean hasCommon() { return common_ != null; } /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata getCommon() { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -196,14 +160,11 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( public static final int PROGRESS_ENTITIES_FIELD_NUMBER = 2; private com.google.datastore.admin.v1.Progress progressEntities_; /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ @java.lang.Override @@ -211,25 +172,18 @@ public boolean hasProgressEntities() { return progressEntities_ != null; } /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressEntities() { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } /** - * - * *
    * An estimate of the number of entities processed.
    * 
@@ -244,14 +198,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil public static final int INDEX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object indexId_; /** - * - * *
    * The index resource ID that this operation is acting on.
    * 
* * string index_id = 3; - * * @return The indexId. */ @java.lang.Override @@ -260,29 +211,29 @@ public java.lang.String getIndexId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; } } /** - * - * *
    * The index resource ID that this operation is acting on.
    * 
* * string index_id = 3; - * * @return The bytes for indexId. */ @java.lang.Override - public com.google.protobuf.ByteString getIndexIdBytes() { + public com.google.protobuf.ByteString + getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); indexId_ = b; return b; } else { @@ -291,7 +242,6 @@ public com.google.protobuf.ByteString getIndexIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,7 +253,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (common_ != null) { output.writeMessage(1, getCommon()); } @@ -323,10 +274,12 @@ public int getSerializedSize() { size = 0; if (common_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCommon()); } if (progressEntities_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgressEntities()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgressEntities()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, indexId_); @@ -339,23 +292,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.datastore.admin.v1.IndexOperationMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.IndexOperationMetadata other = - (com.google.datastore.admin.v1.IndexOperationMetadata) obj; + com.google.datastore.admin.v1.IndexOperationMetadata other = (com.google.datastore.admin.v1.IndexOperationMetadata) obj; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { - if (!getCommon().equals(other.getCommon())) return false; + if (!getCommon() + .equals(other.getCommon())) return false; } if (hasProgressEntities() != other.hasProgressEntities()) return false; if (hasProgressEntities()) { - if (!getProgressEntities().equals(other.getProgressEntities())) return false; + if (!getProgressEntities() + .equals(other.getProgressEntities())) return false; } - if (!getIndexId().equals(other.getIndexId())) return false; + if (!getIndexId() + .equals(other.getIndexId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -383,126 +338,117 @@ public int hashCode() { } public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.IndexOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.IndexOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.IndexOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for Index operations.
    * 
* * Protobuf type {@code google.datastore.admin.v1.IndexOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.IndexOperationMetadata) com.google.datastore.admin.v1.IndexOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.IndexOperationMetadata.class, - com.google.datastore.admin.v1.IndexOperationMetadata.Builder.class); + com.google.datastore.admin.v1.IndexOperationMetadata.class, com.google.datastore.admin.v1.IndexOperationMetadata.Builder.class); } // Construct using com.google.datastore.admin.v1.IndexOperationMetadata.newBuilder() @@ -510,15 +456,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; } @java.lang.Override @@ -561,8 +508,7 @@ public com.google.datastore.admin.v1.IndexOperationMetadata build() { @java.lang.Override public com.google.datastore.admin.v1.IndexOperationMetadata buildPartial() { - com.google.datastore.admin.v1.IndexOperationMetadata result = - new com.google.datastore.admin.v1.IndexOperationMetadata(this); + com.google.datastore.admin.v1.IndexOperationMetadata result = new com.google.datastore.admin.v1.IndexOperationMetadata(this); if (commonBuilder_ == null) { result.common_ = common_; } else { @@ -582,39 +528,38 @@ public com.google.datastore.admin.v1.IndexOperationMetadata 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.datastore.admin.v1.IndexOperationMetadata) { - return mergeFrom((com.google.datastore.admin.v1.IndexOperationMetadata) other); + return mergeFrom((com.google.datastore.admin.v1.IndexOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -622,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.admin.v1.IndexOperationMetadata other) { - if (other == com.google.datastore.admin.v1.IndexOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.datastore.admin.v1.IndexOperationMetadata.getDefaultInstance()) return this; if (other.hasCommon()) { mergeCommon(other.getCommon()); } @@ -653,8 +597,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.datastore.admin.v1.IndexOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.datastore.admin.v1.IndexOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,47 +609,34 @@ public Builder mergeFrom( private com.google.datastore.admin.v1.CommonMetadata common_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder> - commonBuilder_; + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> commonBuilder_; /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ public boolean hasCommon() { return commonBuilder_ != null || common_ != null; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ public com.google.datastore.admin.v1.CommonMetadata getCommon() { if (commonBuilder_ == null) { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } else { return commonBuilder_.getMessage(); } } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -727,15 +657,14 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; */ - public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { + public Builder setCommon( + com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); onChanged(); @@ -746,8 +675,6 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder bu return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -758,9 +685,7 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { if (commonBuilder_ == null) { if (common_ != null) { common_ = - com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_).mergeFrom(value).buildPartial(); } else { common_ = value; } @@ -772,8 +697,6 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -792,8 +715,6 @@ public Builder clearCommon() { return this; } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -801,13 +722,11 @@ public Builder clearCommon() { * .google.datastore.admin.v1.CommonMetadata common = 1; */ public com.google.datastore.admin.v1.CommonMetadata.Builder getCommonBuilder() { - + onChanged(); return getCommonFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -818,14 +737,11 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( if (commonBuilder_ != null) { return commonBuilder_.getMessageOrBuilder(); } else { - return common_ == null - ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() - : common_; + return common_ == null ? + com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; } } /** - * - * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -833,17 +749,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( * .google.datastore.admin.v1.CommonMetadata common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder> + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { - commonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, - com.google.datastore.admin.v1.CommonMetadata.Builder, - com.google.datastore.admin.v1.CommonMetadataOrBuilder>( - getCommon(), getParentForChildren(), isClean()); + commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder>( + getCommon(), + getParentForChildren(), + isClean()); common_ = null; } return commonBuilder_; @@ -851,47 +764,34 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( private com.google.datastore.admin.v1.Progress progressEntities_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> - progressEntitiesBuilder_; + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressEntitiesBuilder_; /** - * - * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ public boolean hasProgressEntities() { return progressEntitiesBuilder_ != null || progressEntities_ != null; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ public com.google.datastore.admin.v1.Progress getProgressEntities() { if (progressEntitiesBuilder_ == null) { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } else { return progressEntitiesBuilder_.getMessage(); } } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -912,8 +812,6 @@ public Builder setProgressEntities(com.google.datastore.admin.v1.Progress value) return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -932,8 +830,6 @@ public Builder setProgressEntities( return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -944,9 +840,7 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu if (progressEntitiesBuilder_ == null) { if (progressEntities_ != null) { progressEntities_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_).mergeFrom(value).buildPartial(); } else { progressEntities_ = value; } @@ -958,8 +852,6 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -978,8 +870,6 @@ public Builder clearProgressEntities() { return this; } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -987,13 +877,11 @@ public Builder clearProgressEntities() { * .google.datastore.admin.v1.Progress progress_entities = 2; */ public com.google.datastore.admin.v1.Progress.Builder getProgressEntitiesBuilder() { - + onChanged(); return getProgressEntitiesFieldBuilder().getBuilder(); } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1004,14 +892,11 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil if (progressEntitiesBuilder_ != null) { return progressEntitiesBuilder_.getMessageOrBuilder(); } else { - return progressEntities_ == null - ? com.google.datastore.admin.v1.Progress.getDefaultInstance() - : progressEntities_; + return progressEntities_ == null ? + com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; } } /** - * - * *
      * An estimate of the number of entities processed.
      * 
@@ -1019,17 +904,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil * .google.datastore.admin.v1.Progress progress_entities = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> getProgressEntitiesFieldBuilder() { if (progressEntitiesBuilder_ == null) { - progressEntitiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, - com.google.datastore.admin.v1.Progress.Builder, - com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressEntities(), getParentForChildren(), isClean()); + progressEntitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressEntities(), + getParentForChildren(), + isClean()); progressEntities_ = null; } return progressEntitiesBuilder_; @@ -1037,20 +919,18 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil private java.lang.Object indexId_ = ""; /** - * - * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; - * * @return The indexId. */ public java.lang.String getIndexId() { java.lang.Object ref = indexId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; @@ -1059,21 +939,20 @@ public java.lang.String getIndexId() { } } /** - * - * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; - * * @return The bytes for indexId. */ - public com.google.protobuf.ByteString getIndexIdBytes() { + public com.google.protobuf.ByteString + getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); indexId_ = b; return b; } else { @@ -1081,68 +960,61 @@ public com.google.protobuf.ByteString getIndexIdBytes() { } } /** - * - * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; - * * @param value The indexId to set. * @return This builder for chaining. */ - public Builder setIndexId(java.lang.String value) { + public Builder setIndexId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + indexId_ = value; onChanged(); return this; } /** - * - * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; - * * @return This builder for chaining. */ public Builder clearIndexId() { - + indexId_ = getDefaultInstance().getIndexId(); onChanged(); return this; } /** - * - * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; - * * @param value The bytes for indexId to set. * @return This builder for chaining. */ - public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { + public Builder setIndexIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexId_ = 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); } @@ -1152,12 +1024,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.IndexOperationMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.IndexOperationMetadata) private static final com.google.datastore.admin.v1.IndexOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.IndexOperationMetadata(); } @@ -1166,16 +1038,16 @@ public static com.google.datastore.admin.v1.IndexOperationMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndexOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IndexOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1190,4 +1062,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.IndexOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java index 9d655f967..31fe8c722 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface IndexOperationMetadataOrBuilder - extends +public interface IndexOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.IndexOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return Whether the common field is set. */ boolean hasCommon(); /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; - * * @return The common. */ com.google.datastore.admin.v1.CommonMetadata getCommon(); /** - * - * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -59,32 +35,24 @@ public interface IndexOperationMetadataOrBuilder com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return Whether the progressEntities field is set. */ boolean hasProgressEntities(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; - * * @return The progressEntities. */ com.google.datastore.admin.v1.Progress getProgressEntities(); /** - * - * *
    * An estimate of the number of entities processed.
    * 
@@ -94,27 +62,22 @@ public interface IndexOperationMetadataOrBuilder com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuilder(); /** - * - * *
    * The index resource ID that this operation is acting on.
    * 
* * string index_id = 3; - * * @return The indexId. */ java.lang.String getIndexId(); /** - * - * *
    * The index resource ID that this operation is acting on.
    * 
* * string index_id = 3; - * * @return The bytes for indexId. */ - com.google.protobuf.ByteString getIndexIdBytes(); + com.google.protobuf.ByteString + getIndexIdBytes(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java similarity index 58% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java index 37fca791f..2830b89ab 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java @@ -1,219 +1,150 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/index.proto package com.google.datastore.admin.v1; -public interface IndexOrBuilder - extends +public interface IndexOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.Index) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Output only. Project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Output only. The resource ID of the index.
    * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexId. */ java.lang.String getIndexId(); /** - * - * *
    * Output only. The resource ID of the index.
    * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for indexId. */ - com.google.protobuf.ByteString getIndexIdBytes(); + com.google.protobuf.ByteString + getIndexIdBytes(); /** - * - * *
    * Required. The entity kind to which this index applies.
    * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Required. The entity kind to which this index applies.
    * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); /** - * - * *
    * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for ancestor. */ int getAncestorValue(); /** - * - * *
    * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    * 
* - * - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The ancestor. */ com.google.datastore.admin.v1.Index.AncestorMode getAncestor(); /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getPropertiesList(); + java.util.List + getPropertiesList(); /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.datastore.admin.v1.Index.IndexedProperty getProperties(int index); /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ int getPropertiesCount(); /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getPropertiesOrBuilderList(); /** - * - * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertiesOrBuilder(int index); + com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertiesOrBuilder( + int index); /** - * - * *
    * Output only. The state of the index.
    * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The state of the index.
    * 
* - * - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.datastore.admin.v1.Index.State getState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java new file mode 100644 index 000000000..36b0d7816 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/admin/v1/index.proto + +package com.google.datastore.admin.v1; + +public final class IndexProto { + private IndexProto() {} + 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_datastore_admin_v1_Index_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_Index_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%google/datastore/admin/v1/index.proto\022" + + "\031google.datastore.admin.v1\032\037google/api/f" + + "ield_behavior.proto\"\346\004\n\005Index\022\027\n\nproject" + + "_id\030\001 \001(\tB\003\340A\003\022\025\n\010index_id\030\003 \001(\tB\003\340A\003\022\021\n" + + "\004kind\030\004 \001(\tB\003\340A\002\022D\n\010ancestor\030\005 \001(\0162-.goo" + + "gle.datastore.admin.v1.Index.AncestorMod" + + "eB\003\340A\002\022I\n\nproperties\030\006 \003(\01320.google.data" + + "store.admin.v1.Index.IndexedPropertyB\003\340A" + + "\002\022:\n\005state\030\007 \001(\0162&.google.datastore.admi" + + "n.v1.Index.StateB\003\340A\003\032h\n\017IndexedProperty" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022B\n\tdirection\030\002 \001(\0162*" + + ".google.datastore.admin.v1.Index.Directi" + + "onB\003\340A\002\"J\n\014AncestorMode\022\035\n\031ANCESTOR_MODE" + + "_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\021\n\rALL_ANCESTOR" + + "S\020\002\"E\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIE" + + "D\020\000\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"P\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001" + + "\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERROR\020\004B\327\001\n" + + "\035com.google.datastore.admin.v1B\nIndexPro" + + "toP\001Z>google.golang.org/genproto/googlea" + + "pis/datastore/admin/v1;admin\252\002\037Google.Cl" + + "oud.Datastore.Admin.V1\312\002\037Google\\Cloud\\Da" + + "tastore\\Admin\\V1\352\002#Google::Cloud::Datast" + + "ore::Admin::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_datastore_admin_v1_Index_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_datastore_admin_v1_Index_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_Index_descriptor, + new java.lang.String[] { "ProjectId", "IndexId", "Kind", "Ancestor", "Properties", "State", }); + internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor = + internal_static_google_datastore_admin_v1_Index_descriptor.getNestedTypes().get(0); + internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor, + new java.lang.String[] { "Name", "Direction", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java similarity index 71% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java index b10fa04b4..1e76542f3 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ListIndexesRequest}
  */
-public final class ListIndexesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListIndexesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ListIndexesRequest)
     ListIndexesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListIndexesRequest.newBuilder() to construct.
   private ListIndexesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListIndexesRequest() {
     projectId_ = "";
     filter_ = "";
@@ -46,15 +28,16 @@ private ListIndexesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListIndexesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListIndexesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,39 +56,36 @@ private ListIndexesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              projectId_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            projectId_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 32:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            filter_ = s;
+            break;
+          }
+          case 32: {
 
-              pageToken_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            pageToken_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,39 +93,34 @@ private ListIndexesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ListIndexesRequest.class,
-            com.google.datastore.admin.v1.ListIndexesRequest.Builder.class);
+            com.google.datastore.admin.v1.ListIndexesRequest.class, com.google.datastore.admin.v1.ListIndexesRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
-   *
-   *
    * 
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -154,29 +129,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -188,7 +163,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { private volatile java.lang.Object filter_; /** * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -197,7 +171,8 @@ 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; @@ -205,15 +180,16 @@ public java.lang.String getFilter() { } /** * string filter = 3; - * * @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 { @@ -224,15 +200,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * The maximum number of items to return.  If zero, then all results will be
    * returned.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -243,14 +216,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 5; - * * @return The pageToken. */ @java.lang.Override @@ -259,29 +229,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 next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 5; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -290,7 +260,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +271,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -331,7 +301,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -344,18 +315,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.datastore.admin.v1.ListIndexesRequest)) { return super.equals(obj); } - com.google.datastore.admin.v1.ListIndexesRequest other = - (com.google.datastore.admin.v1.ListIndexesRequest) obj; + com.google.datastore.admin.v1.ListIndexesRequest other = (com.google.datastore.admin.v1.ListIndexesRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -380,104 +354,97 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.ListIndexesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ListIndexesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.ListIndexesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
@@ -485,23 +452,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.ListIndexesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ListIndexesRequest)
       com.google.datastore.admin.v1.ListIndexesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ListIndexesRequest.class,
-              com.google.datastore.admin.v1.ListIndexesRequest.Builder.class);
+              com.google.datastore.admin.v1.ListIndexesRequest.class, com.google.datastore.admin.v1.ListIndexesRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ListIndexesRequest.newBuilder()
@@ -509,15 +474,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -533,9 +499,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -554,8 +520,7 @@ public com.google.datastore.admin.v1.ListIndexesRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ListIndexesRequest buildPartial() {
-      com.google.datastore.admin.v1.ListIndexesRequest result =
-          new com.google.datastore.admin.v1.ListIndexesRequest(this);
+      com.google.datastore.admin.v1.ListIndexesRequest result = new com.google.datastore.admin.v1.ListIndexesRequest(this);
       result.projectId_ = projectId_;
       result.filter_ = filter_;
       result.pageSize_ = pageSize_;
@@ -568,39 +533,38 @@ public com.google.datastore.admin.v1.ListIndexesRequest 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.datastore.admin.v1.ListIndexesRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.ListIndexesRequest) other);
+        return mergeFrom((com.google.datastore.admin.v1.ListIndexesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -608,8 +572,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ListIndexesRequest other) {
-      if (other == com.google.datastore.admin.v1.ListIndexesRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.ListIndexesRequest.getDefaultInstance()) return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
@@ -656,20 +619,18 @@ public Builder mergeFrom(
 
     private java.lang.Object projectId_ = "";
     /**
-     *
-     *
      * 
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -678,21 +639,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -700,61 +660,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -763,13 +716,13 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** * string filter = 3; - * * @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; @@ -779,14 +732,15 @@ public java.lang.String getFilter() { } /** * string filter = 3; - * * @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 { @@ -795,58 +749,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } /** * string filter = 3; - * * @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; } /** * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** * string filter = 3; - * * @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 maximum number of items to return.  If zero, then all results will be
      * returned.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -854,38 +804,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.  If zero, then all results will be
      * returned.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return.  If zero, then all results will be
      * returned.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -893,20 +837,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -915,21 +857,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -937,68 +878,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; - * * @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 next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + 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); } @@ -1008,12 +942,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ListIndexesRequest) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ListIndexesRequest) private static final com.google.datastore.admin.v1.ListIndexesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ListIndexesRequest(); } @@ -1022,16 +956,16 @@ public static com.google.datastore.admin.v1.ListIndexesRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListIndexesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListIndexesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1046,4 +980,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ListIndexesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java index 4fe56656a..3035e1ffe 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java @@ -1,102 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ListIndexesRequestOrBuilder - extends +public interface ListIndexesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ListIndexesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * The maximum number of items to return.  If zero, then all results will be
    * returned.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 5; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 5; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java similarity index 72% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java index 02cacc410..445348351 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * The response for
  * [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ListIndexesResponse}
  */
-public final class ListIndexesResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListIndexesResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ListIndexesResponse)
     ListIndexesResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListIndexesResponse.newBuilder() to construct.
   private ListIndexesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListIndexesResponse() {
     indexes_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,15 +27,16 @@ private ListIndexesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListIndexesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListIndexesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,31 +56,28 @@ private ListIndexesResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                indexes_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              indexes_.add(
-                  input.readMessage(
-                      com.google.datastore.admin.v1.Index.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              indexes_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            indexes_.add(
+                input.readMessage(com.google.datastore.admin.v1.Index.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nextPageToken_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            nextPageToken_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -105,7 +85,8 @@ private ListIndexesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         indexes_ = java.util.Collections.unmodifiableList(indexes_);
@@ -114,27 +95,22 @@ private ListIndexesResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto
-        .internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ListIndexesResponse.class,
-            com.google.datastore.admin.v1.ListIndexesResponse.Builder.class);
+            com.google.datastore.admin.v1.ListIndexesResponse.class, com.google.datastore.admin.v1.ListIndexesResponse.Builder.class);
   }
 
   public static final int INDEXES_FIELD_NUMBER = 1;
   private java.util.List indexes_;
   /**
-   *
-   *
    * 
    * The indexes.
    * 
@@ -146,8 +122,6 @@ public java.util.List getIndexesList() { return indexes_; } /** - * - * *
    * The indexes.
    * 
@@ -155,13 +129,11 @@ public java.util.List getIndexesList() { * repeated .google.datastore.admin.v1.Index indexes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getIndexesOrBuilderList() { return indexes_; } /** - * - * *
    * The indexes.
    * 
@@ -173,8 +145,6 @@ public int getIndexesCount() { return indexes_.size(); } /** - * - * *
    * The indexes.
    * 
@@ -186,8 +156,6 @@ public com.google.datastore.admin.v1.Index getIndexes(int index) { return indexes_.get(index); } /** - * - * *
    * The indexes.
    * 
@@ -195,21 +163,19 @@ public com.google.datastore.admin.v1.Index getIndexes(int index) { * repeated .google.datastore.admin.v1.Index indexes = 1; */ @java.lang.Override - public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) { + public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder( + int index) { return indexes_.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 @@ -218,29 +184,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 { @@ -249,7 +215,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < indexes_.size(); i++) { output.writeMessage(1, indexes_.get(i)); } @@ -278,7 +244,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < indexes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, indexes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, indexes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -291,16 +258,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.datastore.admin.v1.ListIndexesResponse)) { return super.equals(obj); } - com.google.datastore.admin.v1.ListIndexesResponse other = - (com.google.datastore.admin.v1.ListIndexesResponse) obj; + com.google.datastore.admin.v1.ListIndexesResponse other = (com.google.datastore.admin.v1.ListIndexesResponse) obj; - if (!getIndexesList().equals(other.getIndexesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getIndexesList() + .equals(other.getIndexesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,103 +292,96 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.ListIndexesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.ListIndexesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.ListIndexesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for
    * [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
@@ -428,23 +389,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.ListIndexesResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ListIndexesResponse)
       com.google.datastore.admin.v1.ListIndexesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ListIndexesResponse.class,
-              com.google.datastore.admin.v1.ListIndexesResponse.Builder.class);
+              com.google.datastore.admin.v1.ListIndexesResponse.class, com.google.datastore.admin.v1.ListIndexesResponse.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ListIndexesResponse.newBuilder()
@@ -452,17 +411,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getIndexesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -478,9 +437,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto
-          .internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -499,8 +458,7 @@ public com.google.datastore.admin.v1.ListIndexesResponse build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ListIndexesResponse buildPartial() {
-      com.google.datastore.admin.v1.ListIndexesResponse result =
-          new com.google.datastore.admin.v1.ListIndexesResponse(this);
+      com.google.datastore.admin.v1.ListIndexesResponse result = new com.google.datastore.admin.v1.ListIndexesResponse(this);
       int from_bitField0_ = bitField0_;
       if (indexesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -520,39 +478,38 @@ public com.google.datastore.admin.v1.ListIndexesResponse 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.datastore.admin.v1.ListIndexesResponse) {
-        return mergeFrom((com.google.datastore.admin.v1.ListIndexesResponse) other);
+        return mergeFrom((com.google.datastore.admin.v1.ListIndexesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ListIndexesResponse other) {
-      if (other == com.google.datastore.admin.v1.ListIndexesResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.ListIndexesResponse.getDefaultInstance()) return this;
       if (indexesBuilder_ == null) {
         if (!other.indexes_.isEmpty()) {
           if (indexes_.isEmpty()) {
@@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.datastore.admin.v1.ListIndexesResponse other
             indexesBuilder_ = null;
             indexes_ = other.indexes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            indexesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getIndexesFieldBuilder()
-                    : null;
+            indexesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getIndexesFieldBuilder() : null;
           } else {
             indexesBuilder_.addAllMessages(other.indexes_);
           }
@@ -612,8 +567,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.datastore.admin.v1.ListIndexesResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.datastore.admin.v1.ListIndexesResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -622,28 +576,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List indexes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureIndexesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         indexes_ = new java.util.ArrayList(indexes_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.admin.v1.Index,
-            com.google.datastore.admin.v1.Index.Builder,
-            com.google.datastore.admin.v1.IndexOrBuilder>
-        indexesBuilder_;
+        com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder> indexesBuilder_;
 
     /**
-     *
-     *
      * 
      * The indexes.
      * 
@@ -658,8 +605,6 @@ public java.util.List getIndexesList() { } } /** - * - * *
      * The indexes.
      * 
@@ -674,8 +619,6 @@ public int getIndexesCount() { } } /** - * - * *
      * The indexes.
      * 
@@ -690,15 +633,14 @@ public com.google.datastore.admin.v1.Index getIndexes(int index) { } } /** - * - * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public Builder setIndexes(int index, com.google.datastore.admin.v1.Index value) { + public Builder setIndexes( + int index, com.google.datastore.admin.v1.Index value) { if (indexesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,8 +654,6 @@ public Builder setIndexes(int index, com.google.datastore.admin.v1.Index value) return this; } /** - * - * *
      * The indexes.
      * 
@@ -732,8 +672,6 @@ public Builder setIndexes( return this; } /** - * - * *
      * The indexes.
      * 
@@ -754,15 +692,14 @@ public Builder addIndexes(com.google.datastore.admin.v1.Index value) { return this; } /** - * - * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public Builder addIndexes(int index, com.google.datastore.admin.v1.Index value) { + public Builder addIndexes( + int index, com.google.datastore.admin.v1.Index value) { if (indexesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -776,15 +713,14 @@ public Builder addIndexes(int index, com.google.datastore.admin.v1.Index value) return this; } /** - * - * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public Builder addIndexes(com.google.datastore.admin.v1.Index.Builder builderForValue) { + public Builder addIndexes( + com.google.datastore.admin.v1.Index.Builder builderForValue) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); indexes_.add(builderForValue.build()); @@ -795,8 +731,6 @@ public Builder addIndexes(com.google.datastore.admin.v1.Index.Builder builderFor return this; } /** - * - * *
      * The indexes.
      * 
@@ -815,8 +749,6 @@ public Builder addIndexes( return this; } /** - * - * *
      * The indexes.
      * 
@@ -827,7 +759,8 @@ public Builder addAllIndexes( java.lang.Iterable values) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, indexes_); onChanged(); } else { indexesBuilder_.addAllMessages(values); @@ -835,8 +768,6 @@ public Builder addAllIndexes( return this; } /** - * - * *
      * The indexes.
      * 
@@ -854,8 +785,6 @@ public Builder clearIndexes() { return this; } /** - * - * *
      * The indexes.
      * 
@@ -873,44 +802,39 @@ public Builder removeIndexes(int index) { return this; } /** - * - * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public com.google.datastore.admin.v1.Index.Builder getIndexesBuilder(int index) { + public com.google.datastore.admin.v1.Index.Builder getIndexesBuilder( + int index) { return getIndexesFieldBuilder().getBuilder(index); } /** - * - * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) { + public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder( + int index) { if (indexesBuilder_ == null) { - return indexes_.get(index); - } else { + return indexes_.get(index); } else { return indexesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public java.util.List - getIndexesOrBuilderList() { + public java.util.List + getIndexesOrBuilderList() { if (indexesBuilder_ != null) { return indexesBuilder_.getMessageOrBuilderList(); } else { @@ -918,8 +842,6 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int inde } } /** - * - * *
      * The indexes.
      * 
@@ -927,47 +849,42 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int inde * repeated .google.datastore.admin.v1.Index indexes = 1; */ public com.google.datastore.admin.v1.Index.Builder addIndexesBuilder() { - return getIndexesFieldBuilder() - .addBuilder(com.google.datastore.admin.v1.Index.getDefaultInstance()); + return getIndexesFieldBuilder().addBuilder( + com.google.datastore.admin.v1.Index.getDefaultInstance()); } /** - * - * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public com.google.datastore.admin.v1.Index.Builder addIndexesBuilder(int index) { - return getIndexesFieldBuilder() - .addBuilder(index, com.google.datastore.admin.v1.Index.getDefaultInstance()); + public com.google.datastore.admin.v1.Index.Builder addIndexesBuilder( + int index) { + return getIndexesFieldBuilder().addBuilder( + index, com.google.datastore.admin.v1.Index.getDefaultInstance()); } /** - * - * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public java.util.List getIndexesBuilderList() { + public java.util.List + getIndexesBuilderList() { return getIndexesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index, - com.google.datastore.admin.v1.Index.Builder, - com.google.datastore.admin.v1.IndexOrBuilder> + com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder> getIndexesFieldBuilder() { if (indexesBuilder_ == null) { - indexesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index, - com.google.datastore.admin.v1.Index.Builder, - com.google.datastore.admin.v1.IndexOrBuilder>( - indexes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + indexesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder>( + indexes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); indexes_ = null; } return indexesBuilder_; @@ -975,20 +892,18 @@ public java.util.List getIndexesBui 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; @@ -997,21 +912,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 { @@ -1019,68 +933,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); } @@ -1090,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ListIndexesResponse) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ListIndexesResponse) private static final com.google.datastore.admin.v1.ListIndexesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ListIndexesResponse(); } @@ -1104,16 +1011,16 @@ public static com.google.datastore.admin.v1.ListIndexesResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListIndexesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListIndexesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1035,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ListIndexesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java index e3fb1989e..696b17066 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ListIndexesResponseOrBuilder - extends +public interface ListIndexesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ListIndexesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The indexes.
    * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - java.util.List getIndexesList(); + java.util.List + getIndexesList(); /** - * - * *
    * The indexes.
    * 
@@ -44,8 +25,6 @@ public interface ListIndexesResponseOrBuilder */ com.google.datastore.admin.v1.Index getIndexes(int index); /** - * - * *
    * The indexes.
    * 
@@ -54,48 +33,41 @@ public interface ListIndexesResponseOrBuilder */ int getIndexesCount(); /** - * - * *
    * The indexes.
    * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - java.util.List getIndexesOrBuilderList(); + java.util.List + getIndexesOrBuilderList(); /** - * - * *
    * The indexes.
    * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index); + com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder( + 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/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java similarity index 59% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java index d2c8bb86e..53e1ea55f 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; /** - * - * *
  * An event signifying the start of a new step in a [migration from Cloud
  * Datastore to Cloud Firestore in Datastore
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent}
  */
-public final class MigrationProgressEvent extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MigrationProgressEvent extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.MigrationProgressEvent)
     MigrationProgressEventOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MigrationProgressEvent.newBuilder() to construct.
   private MigrationProgressEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MigrationProgressEvent() {
     step_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MigrationProgressEvent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MigrationProgressEvent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,69 +55,47 @@ private MigrationProgressEvent(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              step_ = rawValue;
-              break;
+            step_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder subBuilder = null;
+            if (stepDetailsCase_ == 2) {
+              subBuilder = ((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_).toBuilder();
             }
-          case 18:
-            {
-              com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder
-                  subBuilder = null;
-              if (stepDetailsCase_ == 2) {
-                subBuilder =
-                    ((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)
-                            stepDetails_)
-                        .toBuilder();
-              }
-              stepDetails_ =
-                  input.readMessage(
-                      com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)
-                        stepDetails_);
-                stepDetails_ = subBuilder.buildPartial();
-              }
-              stepDetailsCase_ = 2;
-              break;
+            stepDetails_ =
+                input.readMessage(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_);
+              stepDetails_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder
-                  subBuilder = null;
-              if (stepDetailsCase_ == 3) {
-                subBuilder =
-                    ((com.google.datastore.admin.v1.MigrationProgressEvent
-                                .RedirectWritesStepDetails)
-                            stepDetails_)
-                        .toBuilder();
-              }
-              stepDetails_ =
-                  input.readMessage(
-                      com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails)
-                        stepDetails_);
-                stepDetails_ = subBuilder.buildPartial();
-              }
-              stepDetailsCase_ = 3;
-              break;
+            stepDetailsCase_ = 2;
+            break;
+          }
+          case 26: {
+            com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder subBuilder = null;
+            if (stepDetailsCase_ == 3) {
+              subBuilder = ((com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            stepDetails_ =
+                input.readMessage(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_);
+              stepDetails_ = subBuilder.buildPartial();
             }
+            stepDetailsCase_ = 3;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -142,41 +103,36 @@ private MigrationProgressEvent(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.MigrationProto
-        .internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.MigrationProto
-        .internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable
+    return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.MigrationProgressEvent.class,
-            com.google.datastore.admin.v1.MigrationProgressEvent.Builder.class);
+            com.google.datastore.admin.v1.MigrationProgressEvent.class, com.google.datastore.admin.v1.MigrationProgressEvent.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Concurrency modes for transactions in Cloud Firestore.
    * 
* * Protobuf enum {@code google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode} */ - public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { + public enum ConcurrencyMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -185,8 +141,6 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { */ CONCURRENCY_MODE_UNSPECIFIED(0), /** - * - * *
      * Pessimistic concurrency.
      * 
@@ -195,8 +149,6 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { */ PESSIMISTIC(1), /** - * - * *
      * Optimistic concurrency.
      * 
@@ -205,8 +157,6 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { */ OPTIMISTIC(2), /** - * - * *
      * Optimistic concurrency with entity groups.
      * 
@@ -218,8 +168,6 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -228,8 +176,6 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONCURRENCY_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Pessimistic concurrency.
      * 
@@ -238,8 +184,6 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PESSIMISTIC_VALUE = 1; /** - * - * *
      * Optimistic concurrency.
      * 
@@ -248,8 +192,6 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPTIMISTIC_VALUE = 2; /** - * - * *
      * Optimistic concurrency with entity groups.
      * 
@@ -258,6 +200,7 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPTIMISTIC_WITH_ENTITY_GROUPS_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -282,47 +225,41 @@ public static ConcurrencyMode valueOf(int value) { */ public static ConcurrencyMode forNumber(int value) { switch (value) { - case 0: - return CONCURRENCY_MODE_UNSPECIFIED; - case 1: - return PESSIMISTIC; - case 2: - return OPTIMISTIC; - case 3: - return OPTIMISTIC_WITH_ENTITY_GROUPS; - default: - return null; + case 0: return CONCURRENCY_MODE_UNSPECIFIED; + case 1: return PESSIMISTIC; + case 2: return OPTIMISTIC; + case 3: return OPTIMISTIC_WITH_ENTITY_GROUPS; + 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< + ConcurrencyMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConcurrencyMode findValueByNumber(int number) { + return ConcurrencyMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConcurrencyMode findValueByNumber(int number) { - return ConcurrencyMode.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.datastore.admin.v1.MigrationProgressEvent.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.datastore.admin.v1.MigrationProgressEvent.getDescriptor().getEnumTypes().get(0); } private static final ConcurrencyMode[] VALUES = values(); @@ -330,7 +267,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ConcurrencyMode 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; @@ -347,74 +285,63 @@ private ConcurrencyMode(int value) { // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode) } - public interface PrepareStepDetailsOrBuilder - extends + public interface PrepareStepDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The concurrency mode this database will use when it reaches the
      * `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The enum numeric value on the wire for concurrencyMode. */ int getConcurrencyModeValue(); /** - * - * *
      * The concurrency mode this database will use when it reaches the
      * `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The concurrencyMode. */ com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode(); } /** - * - * *
    * Details for the `PREPARE` step.
    * 
* * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails} */ - public static final class PrepareStepDetails extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PrepareStepDetails extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) PrepareStepDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrepareStepDetails.newBuilder() to construct. private PrepareStepDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrepareStepDetails() { concurrencyMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PrepareStepDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PrepareStepDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -433,20 +360,19 @@ private PrepareStepDetails( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - concurrencyMode_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + concurrencyMode_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,75 +380,56 @@ private PrepareStepDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.class, - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder - .class); + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.class, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder.class); } public static final int CONCURRENCY_MODE_FIELD_NUMBER = 1; private int concurrencyMode_; /** - * - * *
      * The concurrency mode this database will use when it reaches the
      * `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The enum numeric value on the wire for concurrencyMode. */ - @java.lang.Override - public int getConcurrencyModeValue() { + @java.lang.Override public int getConcurrencyModeValue() { return concurrencyMode_; } /** - * - * *
      * The concurrency mode this database will use when it reaches the
      * `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The concurrencyMode. */ - @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - getConcurrencyMode() { + @java.lang.Override public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf( - concurrencyMode_); - return result == null - ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED - : result; + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf(concurrencyMode_); + return result == null ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -534,11 +441,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (concurrencyMode_ - != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - .CONCURRENCY_MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (concurrencyMode_ != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, concurrencyMode_); } unknownFields.writeTo(output); @@ -550,11 +455,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (concurrencyMode_ - != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - .CONCURRENCY_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, concurrencyMode_); + if (concurrencyMode_ != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, concurrencyMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -564,14 +467,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)) { + if (!(obj instanceof com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)) { return super.equals(obj); } - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails other = - (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) obj; + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails other = (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) obj; if (concurrencyMode_ != other.concurrencyMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -593,95 +494,87 @@ public int hashCode() { } public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prototype) { + public static Builder newBuilder(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -691,50 +584,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.class, - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder - .class); + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.class, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder.class); } - // Construct using - // com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.newBuilder() + // Construct using com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -744,22 +631,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - getDefaultInstanceForType() { - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance(); + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getDefaultInstanceForType() { + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); } @java.lang.Override public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails build() { - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails result = - buildPartial(); + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -767,10 +651,8 @@ public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails b } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - buildPartial() { - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails result = - new com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails(this); + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails buildPartial() { + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails result = new com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails(this); result.concurrencyMode_ = concurrencyMode_; onBuilt(); return result; @@ -780,54 +662,46 @@ public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) { - return mergeFrom( - (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) other); + if (other instanceof com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) { + return mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails other) { - if (other - == com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails other) { + if (other == com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance()) return this; if (other.concurrencyMode_ != 0) { setConcurrencyModeValue(other.getConcurrencyModeValue()); } @@ -846,14 +720,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parsedMessage = - null; + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) - e.getUnfinishedMessage(); + parsedMessage = (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -865,115 +736,82 @@ public Builder mergeFrom( private int concurrencyMode_ = 0; /** - * - * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The enum numeric value on the wire for concurrencyMode. */ - @java.lang.Override - public int getConcurrencyModeValue() { + @java.lang.Override public int getConcurrencyModeValue() { return concurrencyMode_; } /** - * - * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @param value The enum numeric value on the wire for concurrencyMode to set. * @return This builder for chaining. */ public Builder setConcurrencyModeValue(int value) { - + concurrencyMode_ = value; onChanged(); return this; } /** - * - * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The concurrencyMode. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - getConcurrencyMode() { + public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf( - concurrencyMode_); - return result == null - ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED - : result; + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf(concurrencyMode_); + return result == null ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED : result; } /** - * - * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @param value The concurrencyMode to set. * @return This builder for chaining. */ - public Builder setConcurrencyMode( - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode value) { + public Builder setConcurrencyMode(com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode value) { if (value == null) { throw new NullPointerException(); } - + concurrencyMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return This builder for chaining. */ public Builder clearConcurrencyMode() { - + concurrencyMode_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -986,33 +824,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) - private static final com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - DEFAULT_INSTANCE; - + private static final com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails(); + DEFAULT_INSTANCE = new com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails(); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - getDefaultInstance() { + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareStepDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareStepDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrepareStepDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrepareStepDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1024,79 +859,67 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - getDefaultInstanceForType() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface RedirectWritesStepDetailsOrBuilder - extends + public interface RedirectWritesStepDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Ths concurrency mode for this database.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The enum numeric value on the wire for concurrencyMode. */ int getConcurrencyModeValue(); /** - * - * *
      * Ths concurrency mode for this database.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The concurrencyMode. */ com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode(); } /** - * - * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * Protobuf type {@code - * google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails} + * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails} */ - public static final class RedirectWritesStepDetails extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RedirectWritesStepDetails extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) RedirectWritesStepDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RedirectWritesStepDetails.newBuilder() to construct. private RedirectWritesStepDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RedirectWritesStepDetails() { concurrencyMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RedirectWritesStepDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RedirectWritesStepDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1115,20 +938,19 @@ private RedirectWritesStepDetails( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - concurrencyMode_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + concurrencyMode_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1136,73 +958,54 @@ private RedirectWritesStepDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.class, - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder - .class); + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.class, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder.class); } public static final int CONCURRENCY_MODE_FIELD_NUMBER = 1; private int concurrencyMode_; /** - * - * *
      * Ths concurrency mode for this database.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The enum numeric value on the wire for concurrencyMode. */ - @java.lang.Override - public int getConcurrencyModeValue() { + @java.lang.Override public int getConcurrencyModeValue() { return concurrencyMode_; } /** - * - * *
      * Ths concurrency mode for this database.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The concurrencyMode. */ - @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - getConcurrencyMode() { + @java.lang.Override public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf( - concurrencyMode_); - return result == null - ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED - : result; + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf(concurrencyMode_); + return result == null ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1214,11 +1017,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (concurrencyMode_ - != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - .CONCURRENCY_MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (concurrencyMode_ != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, concurrencyMode_); } unknownFields.writeTo(output); @@ -1230,11 +1031,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (concurrencyMode_ - != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - .CONCURRENCY_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, concurrencyMode_); + if (concurrencyMode_ != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, concurrencyMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1244,15 +1043,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails)) { + if (!(obj instanceof com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails)) { return super.equals(obj); } - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails other = - (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) obj; + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails other = (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) obj; if (concurrencyMode_ != other.concurrencyMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1273,101 +1069,88 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - 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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails 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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - 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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails 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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails prototype) { + public static Builder newBuilder(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1377,52 +1160,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * Protobuf type {@code - * google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails} + * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .class, - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .Builder.class); + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.class, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder.class); } - // Construct using - // com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.newBuilder() + // Construct using com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1432,23 +1207,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.MigrationProto - .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - getDefaultInstanceForType() { - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance(); + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getDefaultInstanceForType() { + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - build() { - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails result = - buildPartial(); + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails build() { + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1456,11 +1227,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - buildPartial() { - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails result = - new com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails( - this); + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails buildPartial() { + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails result = new com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails(this); result.concurrencyMode_ = concurrencyMode_; onBuilt(); return result; @@ -1470,56 +1238,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) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) { - return mergeFrom( - (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - other); + if (other instanceof com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) { + return mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails other) { - if (other - == com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails other) { + if (other == com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance()) return this; if (other.concurrencyMode_ != 0) { setConcurrencyModeValue(other.getConcurrencyModeValue()); } @@ -1538,14 +1296,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - parsedMessage = null; + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - e.getUnfinishedMessage(); + parsedMessage = (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1557,110 +1312,77 @@ public Builder mergeFrom( private int concurrencyMode_ = 0; /** - * - * *
        * Ths concurrency mode for this database.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The enum numeric value on the wire for concurrencyMode. */ - @java.lang.Override - public int getConcurrencyModeValue() { + @java.lang.Override public int getConcurrencyModeValue() { return concurrencyMode_; } /** - * - * *
        * Ths concurrency mode for this database.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @param value The enum numeric value on the wire for concurrencyMode to set. * @return This builder for chaining. */ public Builder setConcurrencyModeValue(int value) { - + concurrencyMode_ = value; onChanged(); return this; } /** - * - * *
        * Ths concurrency mode for this database.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return The concurrencyMode. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - getConcurrencyMode() { + public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf( - concurrencyMode_); - return result == null - ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED - : result; + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf(concurrencyMode_); + return result == null ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED : result; } /** - * - * *
        * Ths concurrency mode for this database.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @param value The concurrencyMode to set. * @return This builder for chaining. */ - public Builder setConcurrencyMode( - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode value) { + public Builder setConcurrencyMode(com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode value) { if (value == null) { throw new NullPointerException(); } - + concurrencyMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Ths concurrency mode for this database.
        * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; * @return This builder for chaining. */ public Builder clearConcurrencyMode() { - + concurrencyMode_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1673,34 +1395,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - private static final com.google.datastore.admin.v1.MigrationProgressEvent - .RedirectWritesStepDetails - DEFAULT_INSTANCE; - + private static final com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails(); + DEFAULT_INSTANCE = new com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails(); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - getDefaultInstance() { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RedirectWritesStepDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RedirectWritesStepDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedirectWritesStepDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RedirectWritesStepDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1712,24 +1430,21 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - getDefaultInstanceForType() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int stepDetailsCase_ = 0; private java.lang.Object stepDetails_; - public enum StepDetailsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PREPARE_STEP_DETAILS(2), REDIRECT_WRITES_STEP_DETAILS(3), STEPDETAILS_NOT_SET(0); private final int value; - private StepDetailsCase(int value) { this.value = value; } @@ -1745,31 +1460,26 @@ public static StepDetailsCase valueOf(int value) { public static StepDetailsCase forNumber(int value) { switch (value) { - case 2: - return PREPARE_STEP_DETAILS; - case 3: - return REDIRECT_WRITES_STEP_DETAILS; - case 0: - return STEPDETAILS_NOT_SET; - default: - return null; + case 2: return PREPARE_STEP_DETAILS; + case 3: return REDIRECT_WRITES_STEP_DETAILS; + case 0: return STEPDETAILS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public StepDetailsCase getStepDetailsCase() { - return StepDetailsCase.forNumber(stepDetailsCase_); + public StepDetailsCase + getStepDetailsCase() { + return StepDetailsCase.forNumber( + stepDetailsCase_); } public static final int STEP_FIELD_NUMBER = 1; private int step_; /** - * - * *
    * The step that is starting.
    * An event with step set to `START` indicates that the migration
@@ -1777,16 +1487,12 @@ public StepDetailsCase getStepDetailsCase() {
    * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @return The enum numeric value on the wire for step. */ - @java.lang.Override - public int getStepValue() { + @java.lang.Override public int getStepValue() { return step_; } /** - * - * *
    * The step that is starting.
    * An event with step set to `START` indicates that the migration
@@ -1794,29 +1500,21 @@ public int getStepValue() {
    * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @return The step. */ - @java.lang.Override - public com.google.datastore.admin.v1.MigrationStep getStep() { + @java.lang.Override public com.google.datastore.admin.v1.MigrationStep getStep() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationStep result = - com.google.datastore.admin.v1.MigrationStep.valueOf(step_); + com.google.datastore.admin.v1.MigrationStep result = com.google.datastore.admin.v1.MigrationStep.valueOf(step_); return result == null ? com.google.datastore.admin.v1.MigrationStep.UNRECOGNIZED : result; } public static final int PREPARE_STEP_DETAILS_FIELD_NUMBER = 2; /** - * - * *
    * Details for the `PREPARE` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; * @return Whether the prepareStepDetails field is set. */ @java.lang.Override @@ -1824,60 +1522,42 @@ public boolean hasPrepareStepDetails() { return stepDetailsCase_ == 2; } /** - * - * *
    * Details for the `PREPARE` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; * @return The prepareStepDetails. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - getPrepareStepDetails() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails() { if (stepDetailsCase_ == 2) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); } /** - * - * *
    * Details for the `PREPARE` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder - getPrepareStepDetailsOrBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder() { if (stepDetailsCase_ == 2) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); } public static final int REDIRECT_WRITES_STEP_DETAILS_FIELD_NUMBER = 3; /** - * - * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; * @return Whether the redirectWritesStepDetails field is set. */ @java.lang.Override @@ -1885,52 +1565,36 @@ public boolean hasRedirectWritesStepDetails() { return stepDetailsCase_ == 3; } /** - * - * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; * @return The redirectWritesStepDetails. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - getRedirectWritesStepDetails() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getRedirectWritesStepDetails() { if (stepDetailsCase_ == 3) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); } /** - * - * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder - getRedirectWritesStepDetailsOrBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder getRedirectWritesStepDetailsOrBuilder() { if (stepDetailsCase_ == 3) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1942,21 +1606,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (step_ - != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (step_ != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { output.writeEnum(1, step_); } if (stepDetailsCase_ == 2) { - output.writeMessage( - 2, - (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_); + output.writeMessage(2, (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_); } if (stepDetailsCase_ == 3) { - output.writeMessage( - 3, - (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - stepDetails_); + output.writeMessage(3, (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_); } unknownFields.writeTo(output); } @@ -1967,23 +1626,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (step_ - != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, step_); + if (step_ != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, step_); } if (stepDetailsCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) - stepDetails_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_); } if (stepDetailsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - stepDetails_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1993,23 +1646,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.datastore.admin.v1.MigrationProgressEvent)) { return super.equals(obj); } - com.google.datastore.admin.v1.MigrationProgressEvent other = - (com.google.datastore.admin.v1.MigrationProgressEvent) obj; + com.google.datastore.admin.v1.MigrationProgressEvent other = (com.google.datastore.admin.v1.MigrationProgressEvent) obj; if (step_ != other.step_) return false; if (!getStepDetailsCase().equals(other.getStepDetailsCase())) return false; switch (stepDetailsCase_) { case 2: - if (!getPrepareStepDetails().equals(other.getPrepareStepDetails())) return false; + if (!getPrepareStepDetails() + .equals(other.getPrepareStepDetails())) return false; break; case 3: - if (!getRedirectWritesStepDetails().equals(other.getRedirectWritesStepDetails())) - return false; + if (!getRedirectWritesStepDetails() + .equals(other.getRedirectWritesStepDetails())) return false; break; case 0: default: @@ -2045,103 +1698,96 @@ public int hashCode() { } public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationProgressEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationProgressEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.MigrationProgressEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An event signifying the start of a new step in a [migration from Cloud
    * Datastore to Cloud Firestore in Datastore
@@ -2150,23 +1796,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.MigrationProgressEvent)
       com.google.datastore.admin.v1.MigrationProgressEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.MigrationProto
-          .internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.MigrationProto
-          .internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable
+      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.MigrationProgressEvent.class,
-              com.google.datastore.admin.v1.MigrationProgressEvent.Builder.class);
+              com.google.datastore.admin.v1.MigrationProgressEvent.class, com.google.datastore.admin.v1.MigrationProgressEvent.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.MigrationProgressEvent.newBuilder()
@@ -2174,15 +1818,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2194,9 +1839,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.MigrationProto
-          .internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
     }
 
     @java.lang.Override
@@ -2215,8 +1860,7 @@ public com.google.datastore.admin.v1.MigrationProgressEvent build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.MigrationProgressEvent buildPartial() {
-      com.google.datastore.admin.v1.MigrationProgressEvent result =
-          new com.google.datastore.admin.v1.MigrationProgressEvent(this);
+      com.google.datastore.admin.v1.MigrationProgressEvent result = new com.google.datastore.admin.v1.MigrationProgressEvent(this);
       result.step_ = step_;
       if (stepDetailsCase_ == 2) {
         if (prepareStepDetailsBuilder_ == null) {
@@ -2241,39 +1885,38 @@ public com.google.datastore.admin.v1.MigrationProgressEvent 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.datastore.admin.v1.MigrationProgressEvent) {
-        return mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent) other);
+        return mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2281,26 +1924,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.MigrationProgressEvent other) {
-      if (other == com.google.datastore.admin.v1.MigrationProgressEvent.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.MigrationProgressEvent.getDefaultInstance()) return this;
       if (other.step_ != 0) {
         setStepValue(other.getStepValue());
       }
       switch (other.getStepDetailsCase()) {
-        case PREPARE_STEP_DETAILS:
-          {
-            mergePrepareStepDetails(other.getPrepareStepDetails());
-            break;
-          }
-        case REDIRECT_WRITES_STEP_DETAILS:
-          {
-            mergeRedirectWritesStepDetails(other.getRedirectWritesStepDetails());
-            break;
-          }
-        case STEPDETAILS_NOT_SET:
-          {
-            break;
-          }
+        case PREPARE_STEP_DETAILS: {
+          mergePrepareStepDetails(other.getPrepareStepDetails());
+          break;
+        }
+        case REDIRECT_WRITES_STEP_DETAILS: {
+          mergeRedirectWritesStepDetails(other.getRedirectWritesStepDetails());
+          break;
+        }
+        case STEPDETAILS_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2321,8 +1960,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.datastore.admin.v1.MigrationProgressEvent) e.getUnfinishedMessage();
+        parsedMessage = (com.google.datastore.admin.v1.MigrationProgressEvent) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2331,12 +1969,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int stepDetailsCase_ = 0;
     private java.lang.Object stepDetails_;
-
-    public StepDetailsCase getStepDetailsCase() {
-      return StepDetailsCase.forNumber(stepDetailsCase_);
+    public StepDetailsCase
+        getStepDetailsCase() {
+      return StepDetailsCase.forNumber(
+          stepDetailsCase_);
     }
 
     public Builder clearStepDetails() {
@@ -2346,10 +1984,9 @@ public Builder clearStepDetails() {
       return this;
     }
 
+
     private int step_ = 0;
     /**
-     *
-     *
      * 
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2357,16 +1994,12 @@ public Builder clearStepDetails() {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @return The enum numeric value on the wire for step. */ - @java.lang.Override - public int getStepValue() { + @java.lang.Override public int getStepValue() { return step_; } /** - * - * *
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2374,19 +2007,16 @@ public int getStepValue() {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @param value The enum numeric value on the wire for step to set. * @return This builder for chaining. */ public Builder setStepValue(int value) { - + step_ = value; onChanged(); return this; } /** - * - * *
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2394,19 +2024,15 @@ public Builder setStepValue(int value) {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @return The step. */ @java.lang.Override public com.google.datastore.admin.v1.MigrationStep getStep() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationStep result = - com.google.datastore.admin.v1.MigrationStep.valueOf(step_); + com.google.datastore.admin.v1.MigrationStep result = com.google.datastore.admin.v1.MigrationStep.valueOf(step_); return result == null ? com.google.datastore.admin.v1.MigrationStep.UNRECOGNIZED : result; } /** - * - * *
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2414,7 +2040,6 @@ public com.google.datastore.admin.v1.MigrationStep getStep() {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @param value The step to set. * @return This builder for chaining. */ @@ -2422,14 +2047,12 @@ public Builder setStep(com.google.datastore.admin.v1.MigrationStep value) { if (value == null) { throw new NullPointerException(); } - + step_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2437,32 +2060,23 @@ public Builder setStep(com.google.datastore.admin.v1.MigrationStep value) {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @return This builder for chaining. */ public Builder clearStep() { - + step_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder> - prepareStepDetailsBuilder_; + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder> prepareStepDetailsBuilder_; /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; * @return Whether the prepareStepDetails field is set. */ @java.lang.Override @@ -2470,49 +2084,35 @@ public boolean hasPrepareStepDetails() { return stepDetailsCase_ == 2; } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; * @return The prepareStepDetails. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - getPrepareStepDetails() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails() { if (prepareStepDetailsBuilder_ == null) { if (stepDetailsCase_ == 2) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) - stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); } else { if (stepDetailsCase_ == 2) { return prepareStepDetailsBuilder_.getMessage(); } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); } } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ - public Builder setPrepareStepDetails( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails value) { + public Builder setPrepareStepDetails(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails value) { if (prepareStepDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2526,19 +2126,14 @@ public Builder setPrepareStepDetails( return this; } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ public Builder setPrepareStepDetails( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder - builderForValue) { + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder builderForValue) { if (prepareStepDetailsBuilder_ == null) { stepDetails_ = builderForValue.build(); onChanged(); @@ -2549,29 +2144,18 @@ public Builder setPrepareStepDetails( return this; } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ - public Builder mergePrepareStepDetails( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails value) { + public Builder mergePrepareStepDetails(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails value) { if (prepareStepDetailsBuilder_ == null) { - if (stepDetailsCase_ == 2 - && stepDetails_ - != com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance()) { - stepDetails_ = - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.newBuilder( - (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) - stepDetails_) - .mergeFrom(value) - .buildPartial(); + if (stepDetailsCase_ == 2 && + stepDetails_ != com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance()) { + stepDetails_ = com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.newBuilder((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_) + .mergeFrom(value).buildPartial(); } else { stepDetails_ = value; } @@ -2587,15 +2171,11 @@ public Builder mergePrepareStepDetails( return this; } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ public Builder clearPrepareStepDetails() { if (prepareStepDetailsBuilder_ == null) { @@ -2614,100 +2194,67 @@ public Builder clearPrepareStepDetails() { return this; } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder - getPrepareStepDetailsBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder getPrepareStepDetailsBuilder() { return getPrepareStepDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder - getPrepareStepDetailsOrBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder() { if ((stepDetailsCase_ == 2) && (prepareStepDetailsBuilder_ != null)) { return prepareStepDetailsBuilder_.getMessageOrBuilder(); } else { if (stepDetailsCase_ == 2) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) - stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); } } /** - * - * *
      * Details for the `PREPARE` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder> + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder> getPrepareStepDetailsFieldBuilder() { if (prepareStepDetailsBuilder_ == null) { if (!(stepDetailsCase_ == 2)) { - stepDetails_ = - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - .getDefaultInstance(); + stepDetails_ = com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); } - prepareStepDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder>( - (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) - stepDetails_, + prepareStepDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder>( + (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_, getParentForChildren(), isClean()); stepDetails_ = null; } stepDetailsCase_ = 2; - onChanged(); - ; + onChanged();; return prepareStepDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder> - redirectWritesStepDetailsBuilder_; + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder> redirectWritesStepDetailsBuilder_; /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; * @return Whether the redirectWritesStepDetails field is set. */ @java.lang.Override @@ -2715,49 +2262,35 @@ public boolean hasRedirectWritesStepDetails() { return stepDetailsCase_ == 3; } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; * @return The redirectWritesStepDetails. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - getRedirectWritesStepDetails() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getRedirectWritesStepDetails() { if (redirectWritesStepDetailsBuilder_ == null) { if (stepDetailsCase_ == 3) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); } else { if (stepDetailsCase_ == 3) { return redirectWritesStepDetailsBuilder_.getMessage(); } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); } } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ - public Builder setRedirectWritesStepDetails( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails value) { + public Builder setRedirectWritesStepDetails(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails value) { if (redirectWritesStepDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2771,19 +2304,14 @@ public Builder setRedirectWritesStepDetails( return this; } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ public Builder setRedirectWritesStepDetails( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder - builderForValue) { + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder builderForValue) { if (redirectWritesStepDetailsBuilder_ == null) { stepDetails_ = builderForValue.build(); onChanged(); @@ -2794,31 +2322,18 @@ public Builder setRedirectWritesStepDetails( return this; } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ - public Builder mergeRedirectWritesStepDetails( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails value) { + public Builder mergeRedirectWritesStepDetails(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails value) { if (redirectWritesStepDetailsBuilder_ == null) { - if (stepDetailsCase_ == 3 - && stepDetails_ - != com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance()) { - stepDetails_ = - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .newBuilder( - (com.google.datastore.admin.v1.MigrationProgressEvent - .RedirectWritesStepDetails) - stepDetails_) - .mergeFrom(value) - .buildPartial(); + if (stepDetailsCase_ == 3 && + stepDetails_ != com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance()) { + stepDetails_ = com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.newBuilder((com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_) + .mergeFrom(value).buildPartial(); } else { stepDetails_ = value; } @@ -2834,15 +2349,11 @@ public Builder mergeRedirectWritesStepDetails( return this; } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ public Builder clearRedirectWritesStepDetails() { if (redirectWritesStepDetailsBuilder_ == null) { @@ -2861,88 +2372,61 @@ public Builder clearRedirectWritesStepDetails() { return this; } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder - getRedirectWritesStepDetailsBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder getRedirectWritesStepDetailsBuilder() { return getRedirectWritesStepDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder - getRedirectWritesStepDetailsOrBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder getRedirectWritesStepDetailsOrBuilder() { if ((stepDetailsCase_ == 3) && (redirectWritesStepDetailsBuilder_ != null)) { return redirectWritesStepDetailsBuilder_.getMessageOrBuilder(); } else { if (stepDetailsCase_ == 3) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); } } /** - * - * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder> + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder> getRedirectWritesStepDetailsFieldBuilder() { if (redirectWritesStepDetailsBuilder_ == null) { if (!(stepDetailsCase_ == 3)) { - stepDetails_ = - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .getDefaultInstance(); + stepDetails_ = com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); } - redirectWritesStepDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - .Builder, - com.google.datastore.admin.v1.MigrationProgressEvent - .RedirectWritesStepDetailsOrBuilder>( - (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - stepDetails_, + redirectWritesStepDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder>( + (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_, getParentForChildren(), isClean()); stepDetails_ = null; } stepDetailsCase_ = 3; - onChanged(); - ; + onChanged();; return redirectWritesStepDetailsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2952,12 +2436,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.MigrationProgressEvent) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.MigrationProgressEvent) private static final com.google.datastore.admin.v1.MigrationProgressEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.MigrationProgressEvent(); } @@ -2966,16 +2450,16 @@ public static com.google.datastore.admin.v1.MigrationProgressEvent getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationProgressEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MigrationProgressEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationProgressEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrationProgressEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2990,4 +2474,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.MigrationProgressEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java similarity index 55% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java index 4660304ea..fa0727538 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; -public interface MigrationProgressEventOrBuilder - extends +public interface MigrationProgressEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.MigrationProgressEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The step that is starting.
    * An event with step set to `START` indicates that the migration
@@ -33,13 +15,10 @@ public interface MigrationProgressEventOrBuilder
    * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @return The enum numeric value on the wire for step. */ int getStepValue(); /** - * - * *
    * The step that is starting.
    * An event with step set to `START` indicates that the migration
@@ -47,95 +26,63 @@ public interface MigrationProgressEventOrBuilder
    * 
* * .google.datastore.admin.v1.MigrationStep step = 1; - * * @return The step. */ com.google.datastore.admin.v1.MigrationStep getStep(); /** - * - * *
    * Details for the `PREPARE` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; * @return Whether the prepareStepDetails field is set. */ boolean hasPrepareStepDetails(); /** - * - * *
    * Details for the `PREPARE` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; * @return The prepareStepDetails. */ com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails(); /** - * - * *
    * Details for the `PREPARE` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; */ - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder - getPrepareStepDetailsOrBuilder(); + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder(); /** - * - * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; * @return Whether the redirectWritesStepDetails field is set. */ boolean hasRedirectWritesStepDetails(); /** - * - * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; * @return The redirectWritesStepDetails. */ - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - getRedirectWritesStepDetails(); + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getRedirectWritesStepDetails(); /** - * - * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; */ - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder - getRedirectWritesStepDetailsOrBuilder(); + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder getRedirectWritesStepDetailsOrBuilder(); public com.google.datastore.admin.v1.MigrationProgressEvent.StepDetailsCase getStepDetailsCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java new file mode 100644 index 000000000..257192f18 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/admin/v1/migration.proto + +package com.google.datastore.admin.v1; + +public final class MigrationProto { + private MigrationProto() {} + 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_datastore_admin_v1_MigrationStateEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/datastore/admin/v1/migration.pr" + + "oto\022\031google.datastore.admin.v1\"O\n\023Migrat" + + "ionStateEvent\0228\n\005state\030\001 \001(\0162).google.da" + + "tastore.admin.v1.MigrationState\"\241\005\n\026Migr" + + "ationProgressEvent\0226\n\004step\030\001 \001(\0162(.googl" + + "e.datastore.admin.v1.MigrationStep\022d\n\024pr" + + "epare_step_details\030\002 \001(\0132D.google.datast" + + "ore.admin.v1.MigrationProgressEvent.Prep" + + "areStepDetailsH\000\022s\n\034redirect_writes_step" + + "_details\030\003 \001(\0132K.google.datastore.admin." + + "v1.MigrationProgressEvent.RedirectWrites" + + "StepDetailsH\000\032q\n\022PrepareStepDetails\022[\n\020c" + + "oncurrency_mode\030\001 \001(\0162A.google.datastore" + + ".admin.v1.MigrationProgressEvent.Concurr" + + "encyMode\032x\n\031RedirectWritesStepDetails\022[\n" + + "\020concurrency_mode\030\001 \001(\0162A.google.datasto" + + "re.admin.v1.MigrationProgressEvent.Concu" + + "rrencyMode\"w\n\017ConcurrencyMode\022 \n\034CONCURR" + + "ENCY_MODE_UNSPECIFIED\020\000\022\017\n\013PESSIMISTIC\020\001" + + "\022\016\n\nOPTIMISTIC\020\002\022!\n\035OPTIMISTIC_WITH_ENTI" + + "TY_GROUPS\020\003B\016\n\014step_details*X\n\016Migration" + + "State\022\037\n\033MIGRATION_STATE_UNSPECIFIED\020\000\022\013" + + "\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014\n\010COMPLETE\020\003*\343\001" + + "\n\rMigrationStep\022\036\n\032MIGRATION_STEP_UNSPEC" + + "IFIED\020\000\022\013\n\007PREPARE\020\006\022\t\n\005START\020\001\022\036\n\032APPLY" + + "_WRITES_SYNCHRONOUSLY\020\007\022\023\n\017COPY_AND_VERI" + + "FY\020\002\022(\n$REDIRECT_EVENTUALLY_CONSISTENT_R" + + "EADS\020\003\022&\n\"REDIRECT_STRONGLY_CONSISTENT_R" + + "EADS\020\004\022\023\n\017REDIRECT_WRITES\020\005B\333\001\n\035com.goog" + + "le.datastore.admin.v1B\016MigrationProtoP\001Z" + + ">google.golang.org/genproto/googleapis/d" + + "atastore/admin/v1;admin\252\002\037Google.Cloud.D" + + "atastore.Admin.V1\312\002\037Google\\Cloud\\Datasto" + + "re\\Admin\\V1\352\002#Google::Cloud::Datastore::" + + "Admin::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor, + new java.lang.String[] { "State", }); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor, + new java.lang.String[] { "Step", "PrepareStepDetails", "RedirectWritesStepDetails", "StepDetails", }); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor = + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor.getNestedTypes().get(0); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor, + new java.lang.String[] { "ConcurrencyMode", }); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor = + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor.getNestedTypes().get(1); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor, + new java.lang.String[] { "ConcurrencyMode", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java similarity index 67% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java index 40a2f72db..fe5796d87 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.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/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; /** - * - * *
  * States for a migration.
  * 
* * Protobuf enum {@code google.datastore.admin.v1.MigrationState} */ -public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { +public enum MigrationState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified.
    * 
@@ -39,8 +21,6 @@ public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { */ MIGRATION_STATE_UNSPECIFIED(0), /** - * - * *
    * The migration is running.
    * 
@@ -49,8 +29,6 @@ public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
    * The migration is paused.
    * 
@@ -59,8 +37,6 @@ public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { */ PAUSED(2), /** - * - * *
    * The migration is complete.
    * 
@@ -72,8 +48,6 @@ public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified.
    * 
@@ -82,8 +56,6 @@ public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MIGRATION_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The migration is running.
    * 
@@ -92,8 +64,6 @@ public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
    * The migration is paused.
    * 
@@ -102,8 +72,6 @@ public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAUSED_VALUE = 2; /** - * - * *
    * The migration is complete.
    * 
@@ -112,6 +80,7 @@ public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,51 +105,50 @@ public static MigrationState valueOf(int value) { */ public static MigrationState forNumber(int value) { switch (value) { - case 0: - return MIGRATION_STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return PAUSED; - case 3: - return COMPLETE; - default: - return null; + case 0: return MIGRATION_STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return PAUSED; + case 3: return COMPLETE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MigrationState findValueByNumber(int number) { - return MigrationState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + MigrationState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MigrationState findValueByNumber(int number) { + return MigrationState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.admin.v1.MigrationProto.getDescriptor().getEnumTypes().get(0); } private static final MigrationState[] VALUES = values(); - public static MigrationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MigrationState 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; @@ -196,3 +164,4 @@ private MigrationState(int value) { // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.MigrationState) } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java similarity index 68% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java index 95e77a6fd..4d13ee85b 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; /** - * - * *
  * An event signifying a change in state of a [migration from Cloud Datastore to
  * Cloud Firestore in Datastore
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.MigrationStateEvent}
  */
-public final class MigrationStateEvent extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MigrationStateEvent extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.MigrationStateEvent)
     MigrationStateEventOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MigrationStateEvent.newBuilder() to construct.
   private MigrationStateEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MigrationStateEvent() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MigrationStateEvent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MigrationStateEvent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,20 +55,19 @@ private MigrationStateEvent(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            state_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,66 +75,54 @@ private MigrationStateEvent(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.admin.v1.MigrationProto
-        .internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.MigrationProto
-        .internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable
+    return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.MigrationStateEvent.class,
-            com.google.datastore.admin.v1.MigrationStateEvent.Builder.class);
+            com.google.datastore.admin.v1.MigrationStateEvent.class, com.google.datastore.admin.v1.MigrationStateEvent.Builder.class);
   }
 
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * The new state of the migration.
    * 
* * .google.datastore.admin.v1.MigrationState 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 new state of the migration.
    * 
* * .google.datastore.admin.v1.MigrationState state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.datastore.admin.v1.MigrationState getState() { + @java.lang.Override public com.google.datastore.admin.v1.MigrationState getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationState result = - com.google.datastore.admin.v1.MigrationState.valueOf(state_); + com.google.datastore.admin.v1.MigrationState result = com.google.datastore.admin.v1.MigrationState.valueOf(state_); return result == null ? com.google.datastore.admin.v1.MigrationState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,9 +134,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } unknownFields.writeTo(output); @@ -178,9 +148,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -190,13 +160,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.MigrationStateEvent)) { return super.equals(obj); } - com.google.datastore.admin.v1.MigrationStateEvent other = - (com.google.datastore.admin.v1.MigrationStateEvent) obj; + com.google.datastore.admin.v1.MigrationStateEvent other = (com.google.datastore.admin.v1.MigrationStateEvent) obj; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -218,103 +187,96 @@ public int hashCode() { } public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.admin.v1.MigrationStateEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.admin.v1.MigrationStateEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.MigrationStateEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An event signifying a change in state of a [migration from Cloud Datastore to
    * Cloud Firestore in Datastore
@@ -323,23 +285,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.admin.v1.MigrationStateEvent}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.MigrationStateEvent)
       com.google.datastore.admin.v1.MigrationStateEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.admin.v1.MigrationProto
-          .internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.MigrationProto
-          .internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable
+      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.MigrationStateEvent.class,
-              com.google.datastore.admin.v1.MigrationStateEvent.Builder.class);
+              com.google.datastore.admin.v1.MigrationStateEvent.class, com.google.datastore.admin.v1.MigrationStateEvent.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.MigrationStateEvent.newBuilder()
@@ -347,15 +307,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -365,9 +326,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.admin.v1.MigrationProto
-          .internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
     }
 
     @java.lang.Override
@@ -386,8 +347,7 @@ public com.google.datastore.admin.v1.MigrationStateEvent build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.MigrationStateEvent buildPartial() {
-      com.google.datastore.admin.v1.MigrationStateEvent result =
-          new com.google.datastore.admin.v1.MigrationStateEvent(this);
+      com.google.datastore.admin.v1.MigrationStateEvent result = new com.google.datastore.admin.v1.MigrationStateEvent(this);
       result.state_ = state_;
       onBuilt();
       return result;
@@ -397,39 +357,38 @@ public com.google.datastore.admin.v1.MigrationStateEvent 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.datastore.admin.v1.MigrationStateEvent) {
-        return mergeFrom((com.google.datastore.admin.v1.MigrationStateEvent) other);
+        return mergeFrom((com.google.datastore.admin.v1.MigrationStateEvent)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -437,8 +396,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.MigrationStateEvent other) {
-      if (other == com.google.datastore.admin.v1.MigrationStateEvent.getDefaultInstance())
-        return this;
+      if (other == com.google.datastore.admin.v1.MigrationStateEvent.getDefaultInstance()) return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -461,8 +419,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.datastore.admin.v1.MigrationStateEvent) e.getUnfinishedMessage();
+        parsedMessage = (com.google.datastore.admin.v1.MigrationStateEvent) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -474,65 +431,51 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState 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 new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState 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 new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState state = 1; - * * @return The state. */ @java.lang.Override public com.google.datastore.admin.v1.MigrationState getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationState result = - com.google.datastore.admin.v1.MigrationState.valueOf(state_); + com.google.datastore.admin.v1.MigrationState result = com.google.datastore.admin.v1.MigrationState.valueOf(state_); return result == null ? com.google.datastore.admin.v1.MigrationState.UNRECOGNIZED : result; } /** - * - * *
      * The new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -540,31 +483,28 @@ public Builder setState(com.google.datastore.admin.v1.MigrationState value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -574,12 +514,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.MigrationStateEvent) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.MigrationStateEvent) private static final com.google.datastore.admin.v1.MigrationStateEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.MigrationStateEvent(); } @@ -588,16 +528,16 @@ public static com.google.datastore.admin.v1.MigrationStateEvent getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationStateEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MigrationStateEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationStateEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrationStateEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -612,4 +552,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.MigrationStateEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java similarity index 52% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java index 99444401b..6a2fc1a5d 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; -public interface MigrationStateEventOrBuilder - extends +public interface MigrationStateEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.MigrationStateEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The new state of the migration.
    * 
* * .google.datastore.admin.v1.MigrationState state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The new state of the migration.
    * 
* * .google.datastore.admin.v1.MigrationState state = 1; - * * @return The state. */ com.google.datastore.admin.v1.MigrationState getState(); diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java similarity index 72% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java index 86f6eaed8..dec14bfd2 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.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/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; /** - * - * *
  * Steps in a migration.
  * 
* * Protobuf enum {@code google.datastore.admin.v1.MigrationStep} */ -public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { +public enum MigrationStep + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified.
    * 
@@ -39,8 +21,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ MIGRATION_STEP_UNSPECIFIED(0), /** - * - * *
    * Pre-migration: the database is prepared for migration.
    * 
@@ -49,8 +29,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ PREPARE(6), /** - * - * *
    * Start of migration.
    * 
@@ -59,8 +37,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ START(1), /** - * - * *
    * Writes are applied synchronously to at least one replica.
    * 
@@ -69,8 +45,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ APPLY_WRITES_SYNCHRONOUSLY(7), /** - * - * *
    * Data is copied to Cloud Firestore and then verified to match the data in
    * Cloud Datastore.
@@ -80,8 +54,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum {
    */
   COPY_AND_VERIFY(2),
   /**
-   *
-   *
    * 
    * Eventually-consistent reads are redirected to Cloud Firestore.
    * 
@@ -90,8 +62,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ REDIRECT_EVENTUALLY_CONSISTENT_READS(3), /** - * - * *
    * Strongly-consistent reads are redirected to Cloud Firestore.
    * 
@@ -100,8 +70,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ REDIRECT_STRONGLY_CONSISTENT_READS(4), /** - * - * *
    * Writes are redirected to Cloud Firestore.
    * 
@@ -113,8 +81,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified.
    * 
@@ -123,8 +89,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MIGRATION_STEP_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Pre-migration: the database is prepared for migration.
    * 
@@ -133,8 +97,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PREPARE_VALUE = 6; /** - * - * *
    * Start of migration.
    * 
@@ -143,8 +105,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ public static final int START_VALUE = 1; /** - * - * *
    * Writes are applied synchronously to at least one replica.
    * 
@@ -153,8 +113,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APPLY_WRITES_SYNCHRONOUSLY_VALUE = 7; /** - * - * *
    * Data is copied to Cloud Firestore and then verified to match the data in
    * Cloud Datastore.
@@ -164,8 +122,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int COPY_AND_VERIFY_VALUE = 2;
   /**
-   *
-   *
    * 
    * Eventually-consistent reads are redirected to Cloud Firestore.
    * 
@@ -174,8 +130,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REDIRECT_EVENTUALLY_CONSISTENT_READS_VALUE = 3; /** - * - * *
    * Strongly-consistent reads are redirected to Cloud Firestore.
    * 
@@ -184,8 +138,6 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REDIRECT_STRONGLY_CONSISTENT_READS_VALUE = 4; /** - * - * *
    * Writes are redirected to Cloud Firestore.
    * 
@@ -194,6 +146,7 @@ public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REDIRECT_WRITES_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -218,59 +171,54 @@ public static MigrationStep valueOf(int value) { */ public static MigrationStep forNumber(int value) { switch (value) { - case 0: - return MIGRATION_STEP_UNSPECIFIED; - case 6: - return PREPARE; - case 1: - return START; - case 7: - return APPLY_WRITES_SYNCHRONOUSLY; - case 2: - return COPY_AND_VERIFY; - case 3: - return REDIRECT_EVENTUALLY_CONSISTENT_READS; - case 4: - return REDIRECT_STRONGLY_CONSISTENT_READS; - case 5: - return REDIRECT_WRITES; - default: - return null; + case 0: return MIGRATION_STEP_UNSPECIFIED; + case 6: return PREPARE; + case 1: return START; + case 7: return APPLY_WRITES_SYNCHRONOUSLY; + case 2: return COPY_AND_VERIFY; + case 3: return REDIRECT_EVENTUALLY_CONSISTENT_READS; + case 4: return REDIRECT_STRONGLY_CONSISTENT_READS; + case 5: return REDIRECT_WRITES; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MigrationStep findValueByNumber(int number) { - return MigrationStep.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + MigrationStep> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MigrationStep findValueByNumber(int number) { + return MigrationStep.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.admin.v1.MigrationProto.getDescriptor().getEnumTypes().get(1); } private static final MigrationStep[] VALUES = values(); - public static MigrationStep valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MigrationStep 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,3 +234,4 @@ private MigrationStep(int value) { // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.MigrationStep) } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java similarity index 67% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java index d1ab497e0..c67276478 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * Operation types.
  * 
* * Protobuf enum {@code google.datastore.admin.v1.OperationType} */ -public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { +public enum OperationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified.
    * 
@@ -39,8 +21,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_TYPE_UNSPECIFIED(0), /** - * - * *
    * ExportEntities.
    * 
@@ -49,8 +29,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ EXPORT_ENTITIES(1), /** - * - * *
    * ImportEntities.
    * 
@@ -59,8 +37,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ IMPORT_ENTITIES(2), /** - * - * *
    * CreateIndex.
    * 
@@ -69,8 +45,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ CREATE_INDEX(3), /** - * - * *
    * DeleteIndex.
    * 
@@ -82,8 +56,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified.
    * 
@@ -92,8 +64,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * ExportEntities.
    * 
@@ -102,8 +72,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXPORT_ENTITIES_VALUE = 1; /** - * - * *
    * ImportEntities.
    * 
@@ -112,8 +80,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPORT_ENTITIES_VALUE = 2; /** - * - * *
    * CreateIndex.
    * 
@@ -122,8 +88,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATE_INDEX_VALUE = 3; /** - * - * *
    * DeleteIndex.
    * 
@@ -132,6 +96,7 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETE_INDEX_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -156,53 +121,51 @@ public static OperationType valueOf(int value) { */ public static OperationType forNumber(int value) { switch (value) { - case 0: - return OPERATION_TYPE_UNSPECIFIED; - case 1: - return EXPORT_ENTITIES; - case 2: - return IMPORT_ENTITIES; - case 3: - return CREATE_INDEX; - case 4: - return DELETE_INDEX; - default: - return null; + case 0: return OPERATION_TYPE_UNSPECIFIED; + case 1: return EXPORT_ENTITIES; + case 2: return IMPORT_ENTITIES; + case 3: return CREATE_INDEX; + case 4: return DELETE_INDEX; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationType findValueByNumber(int number) { - return OperationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + OperationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.admin.v1.DatastoreAdminProto.getDescriptor().getEnumTypes().get(0); } private static final OperationType[] VALUES = values(); - public static OperationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static OperationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -218,3 +181,4 @@ private OperationType(int value) { // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.OperationType) } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java similarity index 70% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java index 2eeb86c5f..d0382592c 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** - * - * *
  * Measures the progress of a particular metric.
  * 
* * Protobuf type {@code google.datastore.admin.v1.Progress} */ -public final class Progress extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Progress extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.Progress) ProgressOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Progress.newBuilder() to construct. private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Progress() {} + private Progress() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Progress(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Progress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,23 +52,23 @@ private Progress( case 0: done = true; break; - case 8: - { - workCompleted_ = input.readInt64(); - break; - } - case 16: - { - workEstimated_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + workCompleted_ = input.readInt64(); + break; + } + case 16: { + + workEstimated_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,40 +76,35 @@ private Progress( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Progress.class, - com.google.datastore.admin.v1.Progress.Builder.class); + com.google.datastore.admin.v1.Progress.class, com.google.datastore.admin.v1.Progress.Builder.class); } public static final int WORK_COMPLETED_FIELD_NUMBER = 1; private long workCompleted_; /** - * - * *
    * The amount of work that has been completed. Note that this may be greater
    * than work_estimated.
    * 
* * int64 work_completed = 1; - * * @return The workCompleted. */ @java.lang.Override @@ -136,15 +115,12 @@ public long getWorkCompleted() { public static final int WORK_ESTIMATED_FIELD_NUMBER = 2; private long workEstimated_; /** - * - * *
    * An estimate of how much work needs to be performed. May be zero if the
    * work estimate is unavailable.
    * 
* * int64 work_estimated = 2; - * * @return The workEstimated. */ @java.lang.Override @@ -153,7 +129,6 @@ public long getWorkEstimated() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (workCompleted_ != 0L) { output.writeInt64(1, workCompleted_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (workCompleted_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, workCompleted_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, workCompleted_); } if (workEstimated_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, workEstimated_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, workEstimated_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,15 +173,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.Progress)) { return super.equals(obj); } com.google.datastore.admin.v1.Progress other = (com.google.datastore.admin.v1.Progress) obj; - if (getWorkCompleted() != other.getWorkCompleted()) return false; - if (getWorkEstimated() != other.getWorkEstimated()) return false; + if (getWorkCompleted() + != other.getWorkCompleted()) return false; + if (getWorkEstimated() + != other.getWorkEstimated()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -216,135 +196,128 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WORK_COMPLETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWorkCompleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWorkCompleted()); hash = (37 * hash) + WORK_ESTIMATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWorkEstimated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWorkEstimated()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.datastore.admin.v1.Progress parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.Progress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Progress parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Progress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Progress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Progress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.Progress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Progress parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Progress parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.Progress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Progress parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.Progress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.Progress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.Progress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Measures the progress of a particular metric.
    * 
* * Protobuf type {@code google.datastore.admin.v1.Progress} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.Progress) com.google.datastore.admin.v1.ProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Progress.class, - com.google.datastore.admin.v1.Progress.Builder.class); + com.google.datastore.admin.v1.Progress.class, com.google.datastore.admin.v1.Progress.Builder.class); } // Construct using com.google.datastore.admin.v1.Progress.newBuilder() @@ -352,15 +325,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +346,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto - .internal_static_google_datastore_admin_v1_Progress_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_descriptor; } @java.lang.Override @@ -393,8 +367,7 @@ public com.google.datastore.admin.v1.Progress build() { @java.lang.Override public com.google.datastore.admin.v1.Progress buildPartial() { - com.google.datastore.admin.v1.Progress result = - new com.google.datastore.admin.v1.Progress(this); + com.google.datastore.admin.v1.Progress result = new com.google.datastore.admin.v1.Progress(this); result.workCompleted_ = workCompleted_; result.workEstimated_ = workEstimated_; onBuilt(); @@ -405,39 +378,38 @@ public com.google.datastore.admin.v1.Progress 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.datastore.admin.v1.Progress) { - return mergeFrom((com.google.datastore.admin.v1.Progress) other); + return mergeFrom((com.google.datastore.admin.v1.Progress)other); } else { super.mergeFrom(other); return this; @@ -481,17 +453,14 @@ public Builder mergeFrom( return this; } - private long workCompleted_; + private long workCompleted_ ; /** - * - * *
      * The amount of work that has been completed. Note that this may be greater
      * than work_estimated.
      * 
* * int64 work_completed = 1; - * * @return The workCompleted. */ @java.lang.Override @@ -499,54 +468,45 @@ public long getWorkCompleted() { return workCompleted_; } /** - * - * *
      * The amount of work that has been completed. Note that this may be greater
      * than work_estimated.
      * 
* * int64 work_completed = 1; - * * @param value The workCompleted to set. * @return This builder for chaining. */ public Builder setWorkCompleted(long value) { - + workCompleted_ = value; onChanged(); return this; } /** - * - * *
      * The amount of work that has been completed. Note that this may be greater
      * than work_estimated.
      * 
* * int64 work_completed = 1; - * * @return This builder for chaining. */ public Builder clearWorkCompleted() { - + workCompleted_ = 0L; onChanged(); return this; } - private long workEstimated_; + private long workEstimated_ ; /** - * - * *
      * An estimate of how much work needs to be performed. May be zero if the
      * work estimate is unavailable.
      * 
* * int64 work_estimated = 2; - * * @return The workEstimated. */ @java.lang.Override @@ -554,45 +514,39 @@ public long getWorkEstimated() { return workEstimated_; } /** - * - * *
      * An estimate of how much work needs to be performed. May be zero if the
      * work estimate is unavailable.
      * 
* * int64 work_estimated = 2; - * * @param value The workEstimated to set. * @return This builder for chaining. */ public Builder setWorkEstimated(long value) { - + workEstimated_ = value; onChanged(); return this; } /** - * - * *
      * An estimate of how much work needs to be performed. May be zero if the
      * work estimate is unavailable.
      * 
* * int64 work_estimated = 2; - * * @return This builder for chaining. */ public Builder clearWorkEstimated() { - + workEstimated_ = 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); } @@ -602,12 +556,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.Progress) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.Progress) private static final com.google.datastore.admin.v1.Progress DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.Progress(); } @@ -616,16 +570,16 @@ public static com.google.datastore.admin.v1.Progress getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Progress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Progress(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Progress(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +594,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.Progress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java similarity index 54% rename from proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java index 68343d04f..cccc4759f 100644 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java @@ -1,52 +1,30 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ProgressOrBuilder - extends +public interface ProgressOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.Progress) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The amount of work that has been completed. Note that this may be greater
    * than work_estimated.
    * 
* * int64 work_completed = 1; - * * @return The workCompleted. */ long getWorkCompleted(); /** - * - * *
    * An estimate of how much work needs to be performed. May be zero if the
    * work estimate is unavailable.
    * 
* * int64 work_estimated = 2; - * * @return The workEstimated. */ long getWorkEstimated(); diff --git a/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/datastore_admin.proto b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/datastore_admin.proto similarity index 100% rename from proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/datastore_admin.proto rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/datastore_admin.proto diff --git a/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/index.proto b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/index.proto similarity index 100% rename from proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/index.proto rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/index.proto diff --git a/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/migration.proto b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/migration.proto similarity index 100% rename from proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/migration.proto rename to owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/migration.proto diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java similarity index 71% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java index 6345bc138..4a98f492b 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The request for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
  * 
* * Protobuf type {@code google.datastore.v1.AllocateIdsRequest} */ -public final class AllocateIdsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AllocateIdsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.AllocateIdsRequest) AllocateIdsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AllocateIdsRequest.newBuilder() to construct. private AllocateIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AllocateIdsRequest() { projectId_ = ""; keys_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private AllocateIdsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AllocateIdsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AllocateIdsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,29 +55,28 @@ private AllocateIdsRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keys_.add(input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + keys_.add( + input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + projectId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,7 +84,8 @@ private AllocateIdsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -111,33 +94,27 @@ private AllocateIdsRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.AllocateIdsRequest.class, - com.google.datastore.v1.AllocateIdsRequest.Builder.class); + com.google.datastore.v1.AllocateIdsRequest.class, com.google.datastore.v1.AllocateIdsRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -146,29 +123,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -179,83 +156,69 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getKeysList() { return keys_; } /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List getKeysOrBuilderList() { + public java.util.List + getKeysOrBuilderList() { return keys_; } /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getKeysCount() { return keys_.size(); } /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.datastore.v1.Key getKeys(int index) { return keys_.get(index); } /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < keys_.size(); i++) { output.writeMessage(1, keys_.get(i)); } @@ -284,7 +248,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, keys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -297,16 +262,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.AllocateIdsRequest)) { return super.equals(obj); } - com.google.datastore.v1.AllocateIdsRequest other = - (com.google.datastore.v1.AllocateIdsRequest) obj; + com.google.datastore.v1.AllocateIdsRequest other = (com.google.datastore.v1.AllocateIdsRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getKeysList().equals(other.getKeysList())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getKeysList() + .equals(other.getKeysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -329,127 +295,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.AllocateIdsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.AllocateIdsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.AllocateIdsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.AllocateIdsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.AllocateIdsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
    * 
* * Protobuf type {@code google.datastore.v1.AllocateIdsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.AllocateIdsRequest) com.google.datastore.v1.AllocateIdsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.AllocateIdsRequest.class, - com.google.datastore.v1.AllocateIdsRequest.Builder.class); + com.google.datastore.v1.AllocateIdsRequest.class, com.google.datastore.v1.AllocateIdsRequest.Builder.class); } // Construct using com.google.datastore.v1.AllocateIdsRequest.newBuilder() @@ -457,17 +414,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getKeysFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; } @java.lang.Override @@ -504,8 +461,7 @@ public com.google.datastore.v1.AllocateIdsRequest build() { @java.lang.Override public com.google.datastore.v1.AllocateIdsRequest buildPartial() { - com.google.datastore.v1.AllocateIdsRequest result = - new com.google.datastore.v1.AllocateIdsRequest(this); + com.google.datastore.v1.AllocateIdsRequest result = new com.google.datastore.v1.AllocateIdsRequest(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; if (keysBuilder_ == null) { @@ -525,39 +481,38 @@ public com.google.datastore.v1.AllocateIdsRequest 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.datastore.v1.AllocateIdsRequest) { - return mergeFrom((com.google.datastore.v1.AllocateIdsRequest) other); + return mergeFrom((com.google.datastore.v1.AllocateIdsRequest)other); } else { super.mergeFrom(other); return this; @@ -588,10 +543,9 @@ public Builder mergeFrom(com.google.datastore.v1.AllocateIdsRequest other) { keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeysFieldBuilder() - : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeysFieldBuilder() : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -625,25 +579,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -652,21 +603,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -674,91 +624,78 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } - private java.util.List keys_ = java.util.Collections.emptyList(); - + private java.util.List keys_ = + java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> - keysBuilder_; + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keysBuilder_; /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getKeysList() { if (keysBuilder_ == null) { @@ -768,15 +705,12 @@ public java.util.List getKeysList() { } } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getKeysCount() { if (keysBuilder_ == null) { @@ -786,15 +720,12 @@ public int getKeysCount() { } } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.v1.Key getKeys(int index) { if (keysBuilder_ == null) { @@ -804,17 +735,15 @@ public com.google.datastore.v1.Key getKeys(int index) { } } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKeys(int index, com.google.datastore.v1.Key value) { + public Builder setKeys( + int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -828,17 +757,15 @@ public Builder setKeys(int index, com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder setKeys( + int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.set(index, builderForValue.build()); @@ -849,15 +776,12 @@ public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderFor return this; } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addKeys(com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { @@ -873,17 +797,15 @@ public Builder addKeys(com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(int index, com.google.datastore.v1.Key value) { + public Builder addKeys( + int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -897,17 +819,15 @@ public Builder addKeys(int index, com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys( + com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); @@ -918,17 +838,15 @@ public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { return this; } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys( + int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(index, builderForValue.build()); @@ -939,20 +857,19 @@ public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderFor return this; } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addAllKeys(java.lang.Iterable values) { + public Builder addAllKeys( + java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); @@ -960,15 +877,12 @@ public Builder addAllKeys(java.lang.Iterable * Required. A list of keys with incomplete key paths for which to allocate IDs. * No key may be reserved/read-only. *
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearKeys() { if (keysBuilder_ == null) { @@ -981,15 +895,12 @@ public Builder clearKeys() { return this; } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeKeys(int index) { if (keysBuilder_ == null) { @@ -1002,49 +913,42 @@ public Builder removeKeys(int index) { return this; } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) { + public com.google.datastore.v1.Key.Builder getKeysBuilder( + int index) { return getKeysFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index) { if (keysBuilder_ == null) { - return keys_.get(index); - } else { + return keys_.get(index); } else { return keysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getKeysOrBuilderList() { + public java.util.List + getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { @@ -1052,68 +956,59 @@ public java.util.List getKeysOrB } } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.v1.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance()); + return getKeysFieldBuilder().addBuilder( + com.google.datastore.v1.Key.getDefaultInstance()); } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) { - return getKeysFieldBuilder() - .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance()); + public com.google.datastore.v1.Key.Builder addKeysBuilder( + int index) { + return getKeysFieldBuilder().addBuilder( + index, com.google.datastore.v1.Key.getDefaultInstance()); } /** - * - * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getKeysBuilderList() { + public java.util.List + getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder>( - keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>( + keys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); keys_ = null; } return keysBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1123,12 +1018,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.AllocateIdsRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.AllocateIdsRequest) private static final com.google.datastore.v1.AllocateIdsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.AllocateIdsRequest(); } @@ -1137,16 +1032,16 @@ public static com.google.datastore.v1.AllocateIdsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllocateIdsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllocateIdsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllocateIdsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllocateIdsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,4 +1056,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.AllocateIdsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java index c348f5838..116fec549 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java @@ -1,111 +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/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface AllocateIdsRequestOrBuilder - extends +public interface AllocateIdsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.AllocateIdsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getKeysList(); + java.util.List + getKeysList(); /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.datastore.v1.Key getKeys(int index); /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getKeysCount(); /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getKeysOrBuilderList(); + java.util.List + getKeysOrBuilderList(); /** - * - * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index); + com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index); } diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java similarity index 73% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java index a2e0dd89b..4463d159e 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The response for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
  * 
* * Protobuf type {@code google.datastore.v1.AllocateIdsResponse} */ -public final class AllocateIdsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AllocateIdsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.AllocateIdsResponse) AllocateIdsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AllocateIdsResponse.newBuilder() to construct. private AllocateIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AllocateIdsResponse() { keys_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AllocateIdsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AllocateIdsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,22 +54,22 @@ private AllocateIdsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keys_.add(input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + keys_.add( + input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,7 +77,8 @@ private AllocateIdsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -103,27 +87,22 @@ private AllocateIdsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.AllocateIdsResponse.class, - com.google.datastore.v1.AllocateIdsResponse.Builder.class); + com.google.datastore.v1.AllocateIdsResponse.class, com.google.datastore.v1.AllocateIdsResponse.Builder.class); } public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** - * - * *
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -136,8 +115,6 @@ public java.util.List getKeysList() {
     return keys_;
   }
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -146,12 +123,11 @@ public java.util.List getKeysList() {
    * repeated .google.datastore.v1.Key keys = 1;
    */
   @java.lang.Override
-  public java.util.List getKeysOrBuilderList() {
+  public java.util.List 
+      getKeysOrBuilderList() {
     return keys_;
   }
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -164,8 +140,6 @@ public int getKeysCount() {
     return keys_.size();
   }
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -178,8 +152,6 @@ public com.google.datastore.v1.Key getKeys(int index) {
     return keys_.get(index);
   }
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -188,12 +160,12 @@ public com.google.datastore.v1.Key getKeys(int index) {
    * repeated .google.datastore.v1.Key keys = 1;
    */
   @java.lang.Override
-  public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) {
+  public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
+      int index) {
     return keys_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -205,7 +177,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < keys_.size(); i++) {
       output.writeMessage(1, keys_.get(i));
     }
@@ -219,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < keys_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, keys_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -229,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.AllocateIdsResponse)) {
       return super.equals(obj);
     }
-    com.google.datastore.v1.AllocateIdsResponse other =
-        (com.google.datastore.v1.AllocateIdsResponse) obj;
+    com.google.datastore.v1.AllocateIdsResponse other = (com.google.datastore.v1.AllocateIdsResponse) obj;
 
-    if (!getKeysList().equals(other.getKeysList())) return false;
+    if (!getKeysList()
+        .equals(other.getKeysList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -258,127 +232,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.AllocateIdsResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.AllocateIdsResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.datastore.v1.AllocateIdsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.AllocateIdsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 response for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
    * 
* * Protobuf type {@code google.datastore.v1.AllocateIdsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.AllocateIdsResponse) com.google.datastore.v1.AllocateIdsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.AllocateIdsResponse.class, - com.google.datastore.v1.AllocateIdsResponse.Builder.class); + com.google.datastore.v1.AllocateIdsResponse.class, com.google.datastore.v1.AllocateIdsResponse.Builder.class); } // Construct using com.google.datastore.v1.AllocateIdsResponse.newBuilder() @@ -386,17 +351,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getKeysFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; } @java.lang.Override @@ -431,8 +396,7 @@ public com.google.datastore.v1.AllocateIdsResponse build() { @java.lang.Override public com.google.datastore.v1.AllocateIdsResponse buildPartial() { - com.google.datastore.v1.AllocateIdsResponse result = - new com.google.datastore.v1.AllocateIdsResponse(this); + com.google.datastore.v1.AllocateIdsResponse result = new com.google.datastore.v1.AllocateIdsResponse(this); int from_bitField0_ = bitField0_; if (keysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -451,39 +415,38 @@ public com.google.datastore.v1.AllocateIdsResponse 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.datastore.v1.AllocateIdsResponse) { - return mergeFrom((com.google.datastore.v1.AllocateIdsResponse) other); + return mergeFrom((com.google.datastore.v1.AllocateIdsResponse)other); } else { super.mergeFrom(other); return this; @@ -510,10 +473,9 @@ public Builder mergeFrom(com.google.datastore.v1.AllocateIdsResponse other) { keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeysFieldBuilder() - : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeysFieldBuilder() : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -547,27 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List keys_ = java.util.Collections.emptyList(); - + private java.util.List keys_ = + java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> - keysBuilder_; + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keysBuilder_; /** - * - * *
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -583,8 +539,6 @@ public java.util.List getKeysList() {
       }
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -600,8 +554,6 @@ public int getKeysCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -617,8 +569,6 @@ public com.google.datastore.v1.Key getKeys(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -626,7 +576,8 @@ public com.google.datastore.v1.Key getKeys(int index) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder setKeys(int index, com.google.datastore.v1.Key value) {
+    public Builder setKeys(
+        int index, com.google.datastore.v1.Key value) {
       if (keysBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -640,8 +591,6 @@ public Builder setKeys(int index, com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -649,7 +598,8 @@ public Builder setKeys(int index, com.google.datastore.v1.Key value) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setKeys(
+        int index, com.google.datastore.v1.Key.Builder builderForValue) {
       if (keysBuilder_ == null) {
         ensureKeysIsMutable();
         keys_.set(index, builderForValue.build());
@@ -660,8 +610,6 @@ public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -683,8 +631,6 @@ public Builder addKeys(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -692,7 +638,8 @@ public Builder addKeys(com.google.datastore.v1.Key value) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder addKeys(int index, com.google.datastore.v1.Key value) {
+    public Builder addKeys(
+        int index, com.google.datastore.v1.Key value) {
       if (keysBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -706,8 +653,6 @@ public Builder addKeys(int index, com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -715,7 +660,8 @@ public Builder addKeys(int index, com.google.datastore.v1.Key value) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder addKeys(
+        com.google.datastore.v1.Key.Builder builderForValue) {
       if (keysBuilder_ == null) {
         ensureKeysIsMutable();
         keys_.add(builderForValue.build());
@@ -726,8 +672,6 @@ public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -735,7 +679,8 @@ public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder addKeys(
+        int index, com.google.datastore.v1.Key.Builder builderForValue) {
       if (keysBuilder_ == null) {
         ensureKeysIsMutable();
         keys_.add(index, builderForValue.build());
@@ -746,8 +691,6 @@ public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -755,10 +698,12 @@ public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderFor
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder addAllKeys(java.lang.Iterable values) {
+    public Builder addAllKeys(
+        java.lang.Iterable values) {
       if (keysBuilder_ == null) {
         ensureKeysIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, keys_);
         onChanged();
       } else {
         keysBuilder_.addAllMessages(values);
@@ -766,8 +711,6 @@ public Builder addAllKeys(java.lang.Iterable
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -786,8 +729,6 @@ public Builder clearKeys() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -806,8 +747,6 @@ public Builder removeKeys(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -815,12 +754,11 @@ public Builder removeKeys(int index) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) {
+    public com.google.datastore.v1.Key.Builder getKeysBuilder(
+        int index) {
       return getKeysFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -828,16 +766,14 @@ public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) {
+    public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
+        int index) {
       if (keysBuilder_ == null) {
-        return keys_.get(index);
-      } else {
+        return keys_.get(index);  } else {
         return keysBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -845,7 +781,8 @@ public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public java.util.List getKeysOrBuilderList() {
+    public java.util.List 
+         getKeysOrBuilderList() {
       if (keysBuilder_ != null) {
         return keysBuilder_.getMessageOrBuilderList();
       } else {
@@ -853,8 +790,6 @@ public java.util.List getKeysOrB
       }
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -863,11 +798,10 @@ public java.util.List getKeysOrB
      * repeated .google.datastore.v1.Key keys = 1;
      */
     public com.google.datastore.v1.Key.Builder addKeysBuilder() {
-      return getKeysFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance());
+      return getKeysFieldBuilder().addBuilder(
+          com.google.datastore.v1.Key.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -875,13 +809,12 @@ public com.google.datastore.v1.Key.Builder addKeysBuilder() {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) {
-      return getKeysFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance());
+    public com.google.datastore.v1.Key.Builder addKeysBuilder(
+        int index) {
+      return getKeysFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.Key.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -889,29 +822,27 @@ public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public java.util.List getKeysBuilderList() {
+    public java.util.List 
+         getKeysBuilderList() {
       return getKeysFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
         getKeysFieldBuilder() {
       if (keysBuilder_ == null) {
-        keysBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.Key,
-                com.google.datastore.v1.Key.Builder,
-                com.google.datastore.v1.KeyOrBuilder>(
-                keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
+                keys_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         keys_ = null;
       }
       return keysBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -921,12 +852,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.AllocateIdsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.AllocateIdsResponse)
   private static final com.google.datastore.v1.AllocateIdsResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.AllocateIdsResponse();
   }
@@ -935,16 +866,16 @@ public static com.google.datastore.v1.AllocateIdsResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AllocateIdsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AllocateIdsResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AllocateIdsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AllocateIdsResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -959,4 +890,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.AllocateIdsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
similarity index 64%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
index af7bb209e..aaa996485 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
-public interface AllocateIdsResponseOrBuilder
-    extends
+public interface AllocateIdsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.AllocateIdsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -33,10 +15,9 @@ public interface AllocateIdsResponseOrBuilder
    *
    * repeated .google.datastore.v1.Key keys = 1;
    */
-  java.util.List getKeysList();
+  java.util.List 
+      getKeysList();
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -46,8 +27,6 @@ public interface AllocateIdsResponseOrBuilder
    */
   com.google.datastore.v1.Key getKeys(int index);
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -57,8 +36,6 @@ public interface AllocateIdsResponseOrBuilder
    */
   int getKeysCount();
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -66,10 +43,9 @@ public interface AllocateIdsResponseOrBuilder
    *
    * repeated .google.datastore.v1.Key keys = 1;
    */
-  java.util.List getKeysOrBuilderList();
+  java.util.List 
+      getKeysOrBuilderList();
   /**
-   *
-   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -77,5 +53,6 @@ public interface AllocateIdsResponseOrBuilder
    *
    * repeated .google.datastore.v1.Key keys = 1;
    */
-  com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index);
+  com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
similarity index 75%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
index 8485701c2..88d19c1bd 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/entity.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * An array value.
  * 
* * Protobuf type {@code google.datastore.v1.ArrayValue} */ -public final class ArrayValue extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ArrayValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.ArrayValue) ArrayValueOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ArrayValue.newBuilder() to construct. private ArrayValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArrayValue() { values_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArrayValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ArrayValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private ArrayValue( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add( - input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + values_.add( + input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private ArrayValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -104,27 +87,22 @@ private ArrayValue( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.EntityProto - .internal_static_google_datastore_v1_ArrayValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.EntityProto - .internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable + return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ArrayValue.class, - com.google.datastore.v1.ArrayValue.Builder.class); + com.google.datastore.v1.ArrayValue.class, com.google.datastore.v1.ArrayValue.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private java.util.List values_; /** - * - * *
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -138,8 +116,6 @@ public java.util.List getValuesList() {
     return values_;
   }
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -149,12 +125,11 @@ public java.util.List getValuesList() {
    * repeated .google.datastore.v1.Value values = 1;
    */
   @java.lang.Override
-  public java.util.List getValuesOrBuilderList() {
+  public java.util.List 
+      getValuesOrBuilderList() {
     return values_;
   }
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -168,8 +143,6 @@ public int getValuesCount() {
     return values_.size();
   }
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -183,8 +156,6 @@ public com.google.datastore.v1.Value getValues(int index) {
     return values_.get(index);
   }
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -194,12 +165,12 @@ public com.google.datastore.v1.Value getValues(int index) {
    * repeated .google.datastore.v1.Value values = 1;
    */
   @java.lang.Override
-  public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index) {
+  public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
+      int index) {
     return values_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -211,7 +182,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < values_.size(); i++) {
       output.writeMessage(1, values_.get(i));
     }
@@ -225,7 +197,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < values_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, values_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -235,14 +208,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.datastore.v1.ArrayValue)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.ArrayValue other = (com.google.datastore.v1.ArrayValue) obj;
 
-    if (!getValuesList().equals(other.getValuesList())) return false;
+    if (!getValuesList()
+        .equals(other.getValuesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -263,126 +237,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.ArrayValue parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.ArrayValue parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.ArrayValue parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.ArrayValue parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.datastore.v1.ArrayValue parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.ArrayValue parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.ArrayValue parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.ArrayValue parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.ArrayValue parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.ArrayValue parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.ArrayValue parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.ArrayValue parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.ArrayValue parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.ArrayValue parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.ArrayValue prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * An array value.
    * 
* * Protobuf type {@code google.datastore.v1.ArrayValue} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.ArrayValue) com.google.datastore.v1.ArrayValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.EntityProto - .internal_static_google_datastore_v1_ArrayValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.EntityProto - .internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable + return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ArrayValue.class, - com.google.datastore.v1.ArrayValue.Builder.class); + com.google.datastore.v1.ArrayValue.class, com.google.datastore.v1.ArrayValue.Builder.class); } // Construct using com.google.datastore.v1.ArrayValue.newBuilder() @@ -390,17 +356,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getValuesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.EntityProto - .internal_static_google_datastore_v1_ArrayValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_descriptor; } @java.lang.Override @@ -454,39 +420,38 @@ public com.google.datastore.v1.ArrayValue 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.datastore.v1.ArrayValue) { - return mergeFrom((com.google.datastore.v1.ArrayValue) other); + return mergeFrom((com.google.datastore.v1.ArrayValue)other); } else { super.mergeFrom(other); return this; @@ -513,10 +478,9 @@ public Builder mergeFrom(com.google.datastore.v1.ArrayValue other) { valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -550,28 +514,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List values_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Value, - com.google.datastore.v1.Value.Builder, - com.google.datastore.v1.ValueOrBuilder> - valuesBuilder_; + com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> valuesBuilder_; /** - * - * *
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -588,8 +545,6 @@ public java.util.List getValuesList() {
       }
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -606,8 +561,6 @@ public int getValuesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -624,8 +577,6 @@ public com.google.datastore.v1.Value getValues(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -634,7 +585,8 @@ public com.google.datastore.v1.Value getValues(int index) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder setValues(int index, com.google.datastore.v1.Value value) {
+    public Builder setValues(
+        int index, com.google.datastore.v1.Value value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -648,8 +600,6 @@ public Builder setValues(int index, com.google.datastore.v1.Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -658,7 +608,8 @@ public Builder setValues(int index, com.google.datastore.v1.Value value) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder setValues(int index, com.google.datastore.v1.Value.Builder builderForValue) {
+    public Builder setValues(
+        int index, com.google.datastore.v1.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.set(index, builderForValue.build());
@@ -669,8 +620,6 @@ public Builder setValues(int index, com.google.datastore.v1.Value.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -693,8 +642,6 @@ public Builder addValues(com.google.datastore.v1.Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -703,7 +650,8 @@ public Builder addValues(com.google.datastore.v1.Value value) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder addValues(int index, com.google.datastore.v1.Value value) {
+    public Builder addValues(
+        int index, com.google.datastore.v1.Value value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -717,8 +665,6 @@ public Builder addValues(int index, com.google.datastore.v1.Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -727,7 +673,8 @@ public Builder addValues(int index, com.google.datastore.v1.Value value) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder addValues(com.google.datastore.v1.Value.Builder builderForValue) {
+    public Builder addValues(
+        com.google.datastore.v1.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(builderForValue.build());
@@ -738,8 +685,6 @@ public Builder addValues(com.google.datastore.v1.Value.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -748,7 +693,8 @@ public Builder addValues(com.google.datastore.v1.Value.Builder builderForValue)
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder addValues(int index, com.google.datastore.v1.Value.Builder builderForValue) {
+    public Builder addValues(
+        int index, com.google.datastore.v1.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(index, builderForValue.build());
@@ -759,8 +705,6 @@ public Builder addValues(int index, com.google.datastore.v1.Value.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -773,7 +717,8 @@ public Builder addAllValues(
         java.lang.Iterable values) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, values_);
         onChanged();
       } else {
         valuesBuilder_.addAllMessages(values);
@@ -781,8 +726,6 @@ public Builder addAllValues(
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -802,8 +745,6 @@ public Builder clearValues() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -823,8 +764,6 @@ public Builder removeValues(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -833,12 +772,11 @@ public Builder removeValues(int index) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public com.google.datastore.v1.Value.Builder getValuesBuilder(int index) {
+    public com.google.datastore.v1.Value.Builder getValuesBuilder(
+        int index) {
       return getValuesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -847,16 +785,14 @@ public com.google.datastore.v1.Value.Builder getValuesBuilder(int index) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index) {
+    public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
+        int index) {
       if (valuesBuilder_ == null) {
-        return values_.get(index);
-      } else {
+        return values_.get(index);  } else {
         return valuesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -865,8 +801,8 @@ public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public java.util.List
-        getValuesOrBuilderList() {
+    public java.util.List 
+         getValuesOrBuilderList() {
       if (valuesBuilder_ != null) {
         return valuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -874,8 +810,6 @@ public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -885,11 +819,10 @@ public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index) {
      * repeated .google.datastore.v1.Value values = 1;
      */
     public com.google.datastore.v1.Value.Builder addValuesBuilder() {
-      return getValuesFieldBuilder().addBuilder(com.google.datastore.v1.Value.getDefaultInstance());
+      return getValuesFieldBuilder().addBuilder(
+          com.google.datastore.v1.Value.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -898,13 +831,12 @@ public com.google.datastore.v1.Value.Builder addValuesBuilder() {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public com.google.datastore.v1.Value.Builder addValuesBuilder(int index) {
-      return getValuesFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.Value.getDefaultInstance());
+    public com.google.datastore.v1.Value.Builder addValuesBuilder(
+        int index) {
+      return getValuesFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.Value.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -913,29 +845,27 @@ public com.google.datastore.v1.Value.Builder addValuesBuilder(int index) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public java.util.List getValuesBuilderList() {
+    public java.util.List 
+         getValuesBuilderList() {
       return getValuesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Value,
-            com.google.datastore.v1.Value.Builder,
-            com.google.datastore.v1.ValueOrBuilder>
+        com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> 
         getValuesFieldBuilder() {
       if (valuesBuilder_ == null) {
-        valuesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.Value,
-                com.google.datastore.v1.Value.Builder,
-                com.google.datastore.v1.ValueOrBuilder>(
-                values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder>(
+                values_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         values_ = null;
       }
       return valuesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -945,12 +875,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.ArrayValue)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.ArrayValue)
   private static final com.google.datastore.v1.ArrayValue DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.ArrayValue();
   }
@@ -959,16 +889,16 @@ public static com.google.datastore.v1.ArrayValue getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ArrayValue parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ArrayValue(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ArrayValue parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ArrayValue(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -983,4 +913,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.ArrayValue getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
similarity index 66%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
index c9f60605f..94bb48881 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/entity.proto
 
 package com.google.datastore.v1;
 
-public interface ArrayValueOrBuilder
-    extends
+public interface ArrayValueOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.ArrayValue)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -34,10 +16,9 @@ public interface ArrayValueOrBuilder
    *
    * repeated .google.datastore.v1.Value values = 1;
    */
-  java.util.List getValuesList();
+  java.util.List 
+      getValuesList();
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -48,8 +29,6 @@ public interface ArrayValueOrBuilder
    */
   com.google.datastore.v1.Value getValues(int index);
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -60,8 +39,6 @@ public interface ArrayValueOrBuilder
    */
   int getValuesCount();
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -70,10 +47,9 @@ public interface ArrayValueOrBuilder
    *
    * repeated .google.datastore.v1.Value values = 1;
    */
-  java.util.List getValuesOrBuilderList();
+  java.util.List 
+      getValuesOrBuilderList();
   /**
-   *
-   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -82,5 +58,6 @@ public interface ArrayValueOrBuilder
    *
    * repeated .google.datastore.v1.Value values = 1;
    */
-  com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index);
+  com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
similarity index 70%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
index f77301b9d..b1ce420bc 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * The request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
  * 
* * Protobuf type {@code google.datastore.v1.BeginTransactionRequest} */ -public final class BeginTransactionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BeginTransactionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.BeginTransactionRequest) BeginTransactionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BeginTransactionRequest.newBuilder() to construct. private BeginTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BeginTransactionRequest() { projectId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BeginTransactionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BeginTransactionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private BeginTransactionRequest( case 0: done = true; break; - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; + projectId_ = s; + break; + } + case 82: { + com.google.datastore.v1.TransactionOptions.Builder subBuilder = null; + if (transactionOptions_ != null) { + subBuilder = transactionOptions_.toBuilder(); } - case 82: - { - com.google.datastore.v1.TransactionOptions.Builder subBuilder = null; - if (transactionOptions_ != null) { - subBuilder = transactionOptions_.toBuilder(); - } - transactionOptions_ = - input.readMessage( - com.google.datastore.v1.TransactionOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transactionOptions_); - transactionOptions_ = subBuilder.buildPartial(); - } - - break; + transactionOptions_ = input.readMessage(com.google.datastore.v1.TransactionOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transactionOptions_); + transactionOptions_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,39 +86,34 @@ private BeginTransactionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.BeginTransactionRequest.class, - com.google.datastore.v1.BeginTransactionRequest.Builder.class); + com.google.datastore.v1.BeginTransactionRequest.class, com.google.datastore.v1.BeginTransactionRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -148,29 +122,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -181,14 +155,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int TRANSACTION_OPTIONS_FIELD_NUMBER = 10; private com.google.datastore.v1.TransactionOptions transactionOptions_; /** - * - * *
    * Options for a new transaction.
    * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; - * * @return Whether the transactionOptions field is set. */ @java.lang.Override @@ -196,25 +167,18 @@ public boolean hasTransactionOptions() { return transactionOptions_ != null; } /** - * - * *
    * Options for a new transaction.
    * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; - * * @return The transactionOptions. */ @java.lang.Override public com.google.datastore.v1.TransactionOptions getTransactionOptions() { - return transactionOptions_ == null - ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() - : transactionOptions_; + return transactionOptions_ == null ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() : transactionOptions_; } /** - * - * *
    * Options for a new transaction.
    * 
@@ -227,7 +191,6 @@ public com.google.datastore.v1.TransactionOptionsOrBuilder getTransactionOptions } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_); } @@ -259,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); } if (transactionOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getTransactionOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getTransactionOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,18 +234,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.datastore.v1.BeginTransactionRequest)) { return super.equals(obj); } - com.google.datastore.v1.BeginTransactionRequest other = - (com.google.datastore.v1.BeginTransactionRequest) obj; + com.google.datastore.v1.BeginTransactionRequest other = (com.google.datastore.v1.BeginTransactionRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (hasTransactionOptions() != other.hasTransactionOptions()) return false; if (hasTransactionOptions()) { - if (!getTransactionOptions().equals(other.getTransactionOptions())) return false; + if (!getTransactionOptions() + .equals(other.getTransactionOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -304,127 +270,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.BeginTransactionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.BeginTransactionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.BeginTransactionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.BeginTransactionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.BeginTransactionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    * 
* * Protobuf type {@code google.datastore.v1.BeginTransactionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.BeginTransactionRequest) com.google.datastore.v1.BeginTransactionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.BeginTransactionRequest.class, - com.google.datastore.v1.BeginTransactionRequest.Builder.class); + com.google.datastore.v1.BeginTransactionRequest.class, com.google.datastore.v1.BeginTransactionRequest.Builder.class); } // Construct using com.google.datastore.v1.BeginTransactionRequest.newBuilder() @@ -432,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; } @java.lang.Override @@ -477,8 +435,7 @@ public com.google.datastore.v1.BeginTransactionRequest build() { @java.lang.Override public com.google.datastore.v1.BeginTransactionRequest buildPartial() { - com.google.datastore.v1.BeginTransactionRequest result = - new com.google.datastore.v1.BeginTransactionRequest(this); + com.google.datastore.v1.BeginTransactionRequest result = new com.google.datastore.v1.BeginTransactionRequest(this); result.projectId_ = projectId_; if (transactionOptionsBuilder_ == null) { result.transactionOptions_ = transactionOptions_; @@ -493,39 +450,38 @@ public com.google.datastore.v1.BeginTransactionRequest 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.datastore.v1.BeginTransactionRequest) { - return mergeFrom((com.google.datastore.v1.BeginTransactionRequest) other); + return mergeFrom((com.google.datastore.v1.BeginTransactionRequest)other); } else { super.mergeFrom(other); return this; @@ -533,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.v1.BeginTransactionRequest other) { - if (other == com.google.datastore.v1.BeginTransactionRequest.getDefaultInstance()) - return this; + if (other == com.google.datastore.v1.BeginTransactionRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -573,20 +528,18 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -595,21 +548,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -617,61 +569,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -679,47 +624,34 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private com.google.datastore.v1.TransactionOptions transactionOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions, - com.google.datastore.v1.TransactionOptions.Builder, - com.google.datastore.v1.TransactionOptionsOrBuilder> - transactionOptionsBuilder_; + com.google.datastore.v1.TransactionOptions, com.google.datastore.v1.TransactionOptions.Builder, com.google.datastore.v1.TransactionOptionsOrBuilder> transactionOptionsBuilder_; /** - * - * *
      * Options for a new transaction.
      * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; - * * @return Whether the transactionOptions field is set. */ public boolean hasTransactionOptions() { return transactionOptionsBuilder_ != null || transactionOptions_ != null; } /** - * - * *
      * Options for a new transaction.
      * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; - * * @return The transactionOptions. */ public com.google.datastore.v1.TransactionOptions getTransactionOptions() { if (transactionOptionsBuilder_ == null) { - return transactionOptions_ == null - ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() - : transactionOptions_; + return transactionOptions_ == null ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() : transactionOptions_; } else { return transactionOptionsBuilder_.getMessage(); } } /** - * - * *
      * Options for a new transaction.
      * 
@@ -740,8 +672,6 @@ public Builder setTransactionOptions(com.google.datastore.v1.TransactionOptions return this; } /** - * - * *
      * Options for a new transaction.
      * 
@@ -760,8 +690,6 @@ public Builder setTransactionOptions( return this; } /** - * - * *
      * Options for a new transaction.
      * 
@@ -772,9 +700,7 @@ public Builder mergeTransactionOptions(com.google.datastore.v1.TransactionOption if (transactionOptionsBuilder_ == null) { if (transactionOptions_ != null) { transactionOptions_ = - com.google.datastore.v1.TransactionOptions.newBuilder(transactionOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.v1.TransactionOptions.newBuilder(transactionOptions_).mergeFrom(value).buildPartial(); } else { transactionOptions_ = value; } @@ -786,8 +712,6 @@ public Builder mergeTransactionOptions(com.google.datastore.v1.TransactionOption return this; } /** - * - * *
      * Options for a new transaction.
      * 
@@ -806,8 +730,6 @@ public Builder clearTransactionOptions() { return this; } /** - * - * *
      * Options for a new transaction.
      * 
@@ -815,13 +737,11 @@ public Builder clearTransactionOptions() { * .google.datastore.v1.TransactionOptions transaction_options = 10; */ public com.google.datastore.v1.TransactionOptions.Builder getTransactionOptionsBuilder() { - + onChanged(); return getTransactionOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Options for a new transaction.
      * 
@@ -832,14 +752,11 @@ public com.google.datastore.v1.TransactionOptionsOrBuilder getTransactionOptions if (transactionOptionsBuilder_ != null) { return transactionOptionsBuilder_.getMessageOrBuilder(); } else { - return transactionOptions_ == null - ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() - : transactionOptions_; + return transactionOptions_ == null ? + com.google.datastore.v1.TransactionOptions.getDefaultInstance() : transactionOptions_; } } /** - * - * *
      * Options for a new transaction.
      * 
@@ -847,24 +764,21 @@ public com.google.datastore.v1.TransactionOptionsOrBuilder getTransactionOptions * .google.datastore.v1.TransactionOptions transaction_options = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions, - com.google.datastore.v1.TransactionOptions.Builder, - com.google.datastore.v1.TransactionOptionsOrBuilder> + com.google.datastore.v1.TransactionOptions, com.google.datastore.v1.TransactionOptions.Builder, com.google.datastore.v1.TransactionOptionsOrBuilder> getTransactionOptionsFieldBuilder() { if (transactionOptionsBuilder_ == null) { - transactionOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions, - com.google.datastore.v1.TransactionOptions.Builder, - com.google.datastore.v1.TransactionOptionsOrBuilder>( - getTransactionOptions(), getParentForChildren(), isClean()); + transactionOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.TransactionOptions, com.google.datastore.v1.TransactionOptions.Builder, com.google.datastore.v1.TransactionOptionsOrBuilder>( + getTransactionOptions(), + getParentForChildren(), + isClean()); transactionOptions_ = null; } return transactionOptionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -874,12 +788,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.BeginTransactionRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.BeginTransactionRequest) private static final com.google.datastore.v1.BeginTransactionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.BeginTransactionRequest(); } @@ -888,16 +802,16 @@ public static com.google.datastore.v1.BeginTransactionRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BeginTransactionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BeginTransactionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BeginTransactionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BeginTransactionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -912,4 +826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.BeginTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java index 31bd75450..52b9adc0f 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface BeginTransactionRequestOrBuilder - extends +public interface BeginTransactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.BeginTransactionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Options for a new transaction.
    * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; - * * @return Whether the transactionOptions field is set. */ boolean hasTransactionOptions(); /** - * - * *
    * Options for a new transaction.
    * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; - * * @return The transactionOptions. */ com.google.datastore.v1.TransactionOptions getTransactionOptions(); /** - * - * *
    * Options for a new transaction.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java similarity index 69% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java index a63b48ba7..31b91d711 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
  * 
* * Protobuf type {@code google.datastore.v1.BeginTransactionResponse} */ -public final class BeginTransactionResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BeginTransactionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.BeginTransactionResponse) BeginTransactionResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BeginTransactionResponse.newBuilder() to construct. private BeginTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BeginTransactionResponse() { transaction_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BeginTransactionResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BeginTransactionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,18 +53,18 @@ private BeginTransactionResponse( case 0: done = true; break; - case 10: - { - transaction_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + + transaction_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,39 +72,34 @@ private BeginTransactionResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.BeginTransactionResponse.class, - com.google.datastore.v1.BeginTransactionResponse.Builder.class); + com.google.datastore.v1.BeginTransactionResponse.class, com.google.datastore.v1.BeginTransactionResponse.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; private com.google.protobuf.ByteString transaction_; /** - * - * *
    * The transaction identifier (always present).
    * 
* * bytes transaction = 1; - * * @return The transaction. */ @java.lang.Override @@ -130,7 +108,6 @@ public com.google.protobuf.ByteString getTransaction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,7 +119,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!transaction_.isEmpty()) { output.writeBytes(1, transaction_); } @@ -156,7 +134,8 @@ public int getSerializedSize() { size = 0; if (!transaction_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, transaction_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, transaction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -166,15 +145,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.datastore.v1.BeginTransactionResponse)) { return super.equals(obj); } - com.google.datastore.v1.BeginTransactionResponse other = - (com.google.datastore.v1.BeginTransactionResponse) obj; + com.google.datastore.v1.BeginTransactionResponse other = (com.google.datastore.v1.BeginTransactionResponse) obj; - if (!getTransaction().equals(other.getTransaction())) return false; + if (!getTransaction() + .equals(other.getTransaction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -193,127 +172,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.v1.BeginTransactionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.BeginTransactionResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.BeginTransactionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.BeginTransactionResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.BeginTransactionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    * 
* * Protobuf type {@code google.datastore.v1.BeginTransactionResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.BeginTransactionResponse) com.google.datastore.v1.BeginTransactionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.BeginTransactionResponse.class, - com.google.datastore.v1.BeginTransactionResponse.Builder.class); + com.google.datastore.v1.BeginTransactionResponse.class, com.google.datastore.v1.BeginTransactionResponse.Builder.class); } // Construct using com.google.datastore.v1.BeginTransactionResponse.newBuilder() @@ -321,15 +291,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; } @java.lang.Override @@ -360,8 +331,7 @@ public com.google.datastore.v1.BeginTransactionResponse build() { @java.lang.Override public com.google.datastore.v1.BeginTransactionResponse buildPartial() { - com.google.datastore.v1.BeginTransactionResponse result = - new com.google.datastore.v1.BeginTransactionResponse(this); + com.google.datastore.v1.BeginTransactionResponse result = new com.google.datastore.v1.BeginTransactionResponse(this); result.transaction_ = transaction_; onBuilt(); return result; @@ -371,39 +341,38 @@ public com.google.datastore.v1.BeginTransactionResponse 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.datastore.v1.BeginTransactionResponse) { - return mergeFrom((com.google.datastore.v1.BeginTransactionResponse) other); + return mergeFrom((com.google.datastore.v1.BeginTransactionResponse)other); } else { super.mergeFrom(other); return this; @@ -411,8 +380,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.v1.BeginTransactionResponse other) { - if (other == com.google.datastore.v1.BeginTransactionResponse.getDefaultInstance()) - return this; + if (other == com.google.datastore.v1.BeginTransactionResponse.getDefaultInstance()) return this; if (other.getTransaction() != com.google.protobuf.ByteString.EMPTY) { setTransaction(other.getTransaction()); } @@ -447,14 +415,11 @@ public Builder mergeFrom( private com.google.protobuf.ByteString transaction_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The transaction identifier (always present).
      * 
* * bytes transaction = 1; - * * @return The transaction. */ @java.lang.Override @@ -462,46 +427,40 @@ public com.google.protobuf.ByteString getTransaction() { return transaction_; } /** - * - * *
      * The transaction identifier (always present).
      * 
* * bytes transaction = 1; - * * @param value The transaction to set. * @return This builder for chaining. */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transaction_ = value; onChanged(); return this; } /** - * - * *
      * The transaction identifier (always present).
      * 
* * bytes transaction = 1; - * * @return This builder for chaining. */ public Builder clearTransaction() { - + transaction_ = getDefaultInstance().getTransaction(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -511,12 +470,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.BeginTransactionResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.BeginTransactionResponse) private static final com.google.datastore.v1.BeginTransactionResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.BeginTransactionResponse(); } @@ -525,16 +484,16 @@ public static com.google.datastore.v1.BeginTransactionResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BeginTransactionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BeginTransactionResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BeginTransactionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BeginTransactionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -549,4 +508,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.BeginTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java new file mode 100644 index 000000000..67e8a1c86 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/v1/datastore.proto + +package com.google.datastore.v1; + +public interface BeginTransactionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.datastore.v1.BeginTransactionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The transaction identifier (always present).
+   * 
+ * + * bytes transaction = 1; + * @return The transaction. + */ + com.google.protobuf.ByteString getTransaction(); +} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java similarity index 80% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java index 1af1bc6c9..6787946c4 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
  * 
* * Protobuf type {@code google.datastore.v1.CommitRequest} */ -public final class CommitRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommitRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.CommitRequest) CommitRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommitRequest.newBuilder() to construct. private CommitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommitRequest() { projectId_ = ""; mode_ = 0; @@ -45,15 +27,16 @@ private CommitRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommitRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommitRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,43 +56,39 @@ private CommitRequest( case 0: done = true; break; - case 10: - { - transactionSelector_ = input.readBytes(); - transactionSelectorCase_ = 1; - break; - } - case 40: - { - int rawValue = input.readEnum(); + case 10: { + transactionSelector_ = input.readBytes(); + transactionSelectorCase_ = 1; + break; + } + case 40: { + int rawValue = input.readEnum(); - mode_ = rawValue; - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mutations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - mutations_.add( - input.readMessage(com.google.datastore.v1.Mutation.parser(), extensionRegistry)); - break; + mode_ = rawValue; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mutations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + mutations_.add( + input.readMessage(com.google.datastore.v1.Mutation.parser(), extensionRegistry)); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + projectId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,7 +96,8 @@ private CommitRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mutations_ = java.util.Collections.unmodifiableList(mutations_); @@ -126,35 +106,29 @@ private CommitRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CommitRequest.class, - com.google.datastore.v1.CommitRequest.Builder.class); + com.google.datastore.v1.CommitRequest.class, com.google.datastore.v1.CommitRequest.Builder.class); } /** - * - * *
    * The modes available for commits.
    * 
* * Protobuf enum {@code google.datastore.v1.CommitRequest.Mode} */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -163,8 +137,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ MODE_UNSPECIFIED(0), /** - * - * *
      * Transactional: The mutations are either all applied, or none are applied.
      * Learn about transactions
@@ -175,8 +147,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
      */
     TRANSACTIONAL(1),
     /**
-     *
-     *
      * 
      * Non-transactional: The mutations may not apply as all or none.
      * 
@@ -188,8 +158,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -198,8 +166,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Transactional: The mutations are either all applied, or none are applied.
      * Learn about transactions
@@ -210,8 +176,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TRANSACTIONAL_VALUE = 1;
     /**
-     *
-     *
      * 
      * Non-transactional: The mutations may not apply as all or none.
      * 
@@ -220,6 +184,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NON_TRANSACTIONAL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -244,49 +209,49 @@ public static Mode valueOf(int value) { */ public static Mode forNumber(int value) { switch (value) { - case 0: - return MODE_UNSPECIFIED; - case 1: - return TRANSACTIONAL; - case 2: - return NON_TRANSACTIONAL; - default: - return null; + case 0: return MODE_UNSPECIFIED; + case 1: return TRANSACTIONAL; + case 2: return NON_TRANSACTIONAL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.v1.CommitRequest.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -305,15 +270,12 @@ private Mode(int value) { private int transactionSelectorCase_ = 0; private java.lang.Object transactionSelector_; - public enum TransactionSelectorCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSACTION(1), TRANSACTIONSELECTOR_NOT_SET(0); private final int value; - private TransactionSelectorCase(int value) { this.value = value; } @@ -329,35 +291,30 @@ public static TransactionSelectorCase valueOf(int value) { public static TransactionSelectorCase forNumber(int value) { switch (value) { - case 1: - return TRANSACTION; - case 0: - return TRANSACTIONSELECTOR_NOT_SET; - default: - return null; + case 1: return TRANSACTION; + case 0: return TRANSACTIONSELECTOR_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TransactionSelectorCase getTransactionSelectorCase() { - return TransactionSelectorCase.forNumber(transactionSelectorCase_); + public TransactionSelectorCase + getTransactionSelectorCase() { + return TransactionSelectorCase.forNumber( + transactionSelectorCase_); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -366,29 +323,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -399,43 +356,32 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int MODE_FIELD_NUMBER = 5; private int mode_; /** - * - * *
    * The type of commit to perform. Defaults to `TRANSACTIONAL`.
    * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
    * The type of commit to perform. Defaults to `TRANSACTIONAL`.
    * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @return The mode. */ - @java.lang.Override - public com.google.datastore.v1.CommitRequest.Mode getMode() { + @java.lang.Override public com.google.datastore.v1.CommitRequest.Mode getMode() { @SuppressWarnings("deprecation") - com.google.datastore.v1.CommitRequest.Mode result = - com.google.datastore.v1.CommitRequest.Mode.valueOf(mode_); + com.google.datastore.v1.CommitRequest.Mode result = com.google.datastore.v1.CommitRequest.Mode.valueOf(mode_); return result == null ? com.google.datastore.v1.CommitRequest.Mode.UNRECOGNIZED : result; } public static final int TRANSACTION_FIELD_NUMBER = 1; /** - * - * *
    * The identifier of the transaction associated with the commit. A
    * transaction identifier is returned by a call to
@@ -443,7 +389,6 @@ public com.google.datastore.v1.CommitRequest.Mode getMode() {
    * 
* * bytes transaction = 1; - * * @return Whether the transaction field is set. */ @java.lang.Override @@ -451,8 +396,6 @@ public boolean hasTransaction() { return transactionSelectorCase_ == 1; } /** - * - * *
    * The identifier of the transaction associated with the commit. A
    * transaction identifier is returned by a call to
@@ -460,7 +403,6 @@ public boolean hasTransaction() {
    * 
* * bytes transaction = 1; - * * @return The transaction. */ @java.lang.Override @@ -474,8 +416,6 @@ public com.google.protobuf.ByteString getTransaction() { public static final int MUTATIONS_FIELD_NUMBER = 6; private java.util.List mutations_; /** - * - * *
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -496,8 +436,6 @@ public java.util.List getMutationsList() {
     return mutations_;
   }
   /**
-   *
-   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -514,13 +452,11 @@ public java.util.List getMutationsList() {
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getMutationsOrBuilderList() {
     return mutations_;
   }
   /**
-   *
-   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -541,8 +477,6 @@ public int getMutationsCount() {
     return mutations_.size();
   }
   /**
-   *
-   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -563,8 +497,6 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
     return mutations_.get(index);
   }
   /**
-   *
-   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -581,12 +513,12 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
   @java.lang.Override
-  public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index) {
+  public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
+      int index) {
     return mutations_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -598,9 +530,11 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (transactionSelectorCase_ == 1) {
-      output.writeBytes(1, (com.google.protobuf.ByteString) transactionSelector_);
+      output.writeBytes(
+          1, (com.google.protobuf.ByteString) transactionSelector_);
     }
     if (mode_ != com.google.datastore.v1.CommitRequest.Mode.MODE_UNSPECIFIED.getNumber()) {
       output.writeEnum(5, mode_);
@@ -621,15 +555,17 @@ public int getSerializedSize() {
 
     size = 0;
     if (transactionSelectorCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeBytesSize(
-              1, (com.google.protobuf.ByteString) transactionSelector_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(
+            1, (com.google.protobuf.ByteString) transactionSelector_);
     }
     if (mode_ != com.google.datastore.v1.CommitRequest.Mode.MODE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, mode_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(5, mode_);
     }
     for (int i = 0; i < mutations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, mutations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, mutations_.get(i));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_);
@@ -642,20 +578,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.datastore.v1.CommitRequest)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.CommitRequest other = (com.google.datastore.v1.CommitRequest) obj;
 
-    if (!getProjectId().equals(other.getProjectId())) return false;
+    if (!getProjectId()
+        .equals(other.getProjectId())) return false;
     if (mode_ != other.mode_) return false;
-    if (!getMutationsList().equals(other.getMutationsList())) return false;
+    if (!getMutationsList()
+        .equals(other.getMutationsList())) return false;
     if (!getTransactionSelectorCase().equals(other.getTransactionSelectorCase())) return false;
     switch (transactionSelectorCase_) {
       case 1:
-        if (!getTransaction().equals(other.getTransaction())) return false;
+        if (!getTransaction()
+            .equals(other.getTransaction())) return false;
         break;
       case 0:
       default:
@@ -692,126 +631,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.CommitRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.CommitRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.CommitRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.CommitRequest parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.datastore.v1.CommitRequest parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.CommitRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.CommitRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.CommitRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.CommitRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.CommitRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.CommitRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.CommitRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.CommitRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.CommitRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.CommitRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
    * 
* * Protobuf type {@code google.datastore.v1.CommitRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.CommitRequest) com.google.datastore.v1.CommitRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CommitRequest.class, - com.google.datastore.v1.CommitRequest.Builder.class); + com.google.datastore.v1.CommitRequest.class, com.google.datastore.v1.CommitRequest.Builder.class); } // Construct using com.google.datastore.v1.CommitRequest.newBuilder() @@ -819,17 +750,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMutationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -849,9 +780,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_descriptor; } @java.lang.Override @@ -870,8 +801,7 @@ public com.google.datastore.v1.CommitRequest build() { @java.lang.Override public com.google.datastore.v1.CommitRequest buildPartial() { - com.google.datastore.v1.CommitRequest result = - new com.google.datastore.v1.CommitRequest(this); + com.google.datastore.v1.CommitRequest result = new com.google.datastore.v1.CommitRequest(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; result.mode_ = mode_; @@ -896,39 +826,38 @@ public com.google.datastore.v1.CommitRequest 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.datastore.v1.CommitRequest) { - return mergeFrom((com.google.datastore.v1.CommitRequest) other); + return mergeFrom((com.google.datastore.v1.CommitRequest)other); } else { super.mergeFrom(other); return this; @@ -962,25 +891,22 @@ public Builder mergeFrom(com.google.datastore.v1.CommitRequest other) { mutationsBuilder_ = null; mutations_ = other.mutations_; bitField0_ = (bitField0_ & ~0x00000001); - mutationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMutationsFieldBuilder() - : null; + mutationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMutationsFieldBuilder() : null; } else { mutationsBuilder_.addAllMessages(other.mutations_); } } } switch (other.getTransactionSelectorCase()) { - case TRANSACTION: - { - setTransaction(other.getTransaction()); - break; - } - case TRANSACTIONSELECTOR_NOT_SET: - { - break; - } + case TRANSACTION: { + setTransaction(other.getTransaction()); + break; + } + case TRANSACTIONSELECTOR_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1010,12 +936,12 @@ public Builder mergeFrom( } return this; } - private int transactionSelectorCase_ = 0; private java.lang.Object transactionSelector_; - - public TransactionSelectorCase getTransactionSelectorCase() { - return TransactionSelectorCase.forNumber(transactionSelectorCase_); + public TransactionSelectorCase + getTransactionSelectorCase() { + return TransactionSelectorCase.forNumber( + transactionSelectorCase_); } public Builder clearTransactionSelector() { @@ -1029,20 +955,18 @@ public Builder clearTransactionSelector() { private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1051,21 +975,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1073,61 +996,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1135,65 +1051,51 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private int mode_ = 0; /** - * - * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { - + mode_ = value; onChanged(); return this; } /** - * - * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @return The mode. */ @java.lang.Override public com.google.datastore.v1.CommitRequest.Mode getMode() { @SuppressWarnings("deprecation") - com.google.datastore.v1.CommitRequest.Mode result = - com.google.datastore.v1.CommitRequest.Mode.valueOf(mode_); + com.google.datastore.v1.CommitRequest.Mode result = com.google.datastore.v1.CommitRequest.Mode.valueOf(mode_); return result == null ? com.google.datastore.v1.CommitRequest.Mode.UNRECOGNIZED : result; } /** - * - * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @param value The mode to set. * @return This builder for chaining. */ @@ -1201,32 +1103,27 @@ public Builder setMode(com.google.datastore.v1.CommitRequest.Mode value) { if (value == null) { throw new NullPointerException(); } - + mode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = 0; onChanged(); return this; } /** - * - * *
      * The identifier of the transaction associated with the commit. A
      * transaction identifier is returned by a call to
@@ -1234,15 +1131,12 @@ public Builder clearMode() {
      * 
* * bytes transaction = 1; - * * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionSelectorCase_ == 1; } /** - * - * *
      * The identifier of the transaction associated with the commit. A
      * transaction identifier is returned by a call to
@@ -1250,7 +1144,6 @@ public boolean hasTransaction() {
      * 
* * bytes transaction = 1; - * * @return The transaction. */ public com.google.protobuf.ByteString getTransaction() { @@ -1260,8 +1153,6 @@ public com.google.protobuf.ByteString getTransaction() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The identifier of the transaction associated with the commit. A
      * transaction identifier is returned by a call to
@@ -1269,22 +1160,19 @@ public com.google.protobuf.ByteString getTransaction() {
      * 
* * bytes transaction = 1; - * * @param value The transaction to set. * @return This builder for chaining. */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - transactionSelectorCase_ = 1; + throw new NullPointerException(); + } + transactionSelectorCase_ = 1; transactionSelector_ = value; onChanged(); return this; } /** - * - * *
      * The identifier of the transaction associated with the commit. A
      * transaction identifier is returned by a call to
@@ -1292,7 +1180,6 @@ public Builder setTransaction(com.google.protobuf.ByteString value) {
      * 
* * bytes transaction = 1; - * * @return This builder for chaining. */ public Builder clearTransaction() { @@ -1305,24 +1192,18 @@ public Builder clearTransaction() { } private java.util.List mutations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMutationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { mutations_ = new java.util.ArrayList(mutations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Mutation, - com.google.datastore.v1.Mutation.Builder, - com.google.datastore.v1.MutationOrBuilder> - mutationsBuilder_; + com.google.datastore.v1.Mutation, com.google.datastore.v1.Mutation.Builder, com.google.datastore.v1.MutationOrBuilder> mutationsBuilder_; /** - * - * *
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1346,8 +1227,6 @@ public java.util.List getMutationsList() {
       }
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1371,8 +1250,6 @@ public int getMutationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1396,8 +1273,6 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1413,7 +1288,8 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public Builder setMutations(int index, com.google.datastore.v1.Mutation value) {
+    public Builder setMutations(
+        int index, com.google.datastore.v1.Mutation value) {
       if (mutationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1427,8 +1303,6 @@ public Builder setMutations(int index, com.google.datastore.v1.Mutation value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1456,8 +1330,6 @@ public Builder setMutations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1487,8 +1359,6 @@ public Builder addMutations(com.google.datastore.v1.Mutation value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1504,7 +1374,8 @@ public Builder addMutations(com.google.datastore.v1.Mutation value) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public Builder addMutations(int index, com.google.datastore.v1.Mutation value) {
+    public Builder addMutations(
+        int index, com.google.datastore.v1.Mutation value) {
       if (mutationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1518,8 +1389,6 @@ public Builder addMutations(int index, com.google.datastore.v1.Mutation value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1535,7 +1404,8 @@ public Builder addMutations(int index, com.google.datastore.v1.Mutation value) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public Builder addMutations(com.google.datastore.v1.Mutation.Builder builderForValue) {
+    public Builder addMutations(
+        com.google.datastore.v1.Mutation.Builder builderForValue) {
       if (mutationsBuilder_ == null) {
         ensureMutationsIsMutable();
         mutations_.add(builderForValue.build());
@@ -1546,8 +1416,6 @@ public Builder addMutations(com.google.datastore.v1.Mutation.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1575,8 +1443,6 @@ public Builder addMutations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1596,7 +1462,8 @@ public Builder addAllMutations(
         java.lang.Iterable values) {
       if (mutationsBuilder_ == null) {
         ensureMutationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mutations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, mutations_);
         onChanged();
       } else {
         mutationsBuilder_.addAllMessages(values);
@@ -1604,8 +1471,6 @@ public Builder addAllMutations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1632,8 +1497,6 @@ public Builder clearMutations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1660,8 +1523,6 @@ public Builder removeMutations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1677,12 +1538,11 @@ public Builder removeMutations(int index) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public com.google.datastore.v1.Mutation.Builder getMutationsBuilder(int index) {
+    public com.google.datastore.v1.Mutation.Builder getMutationsBuilder(
+        int index) {
       return getMutationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1698,16 +1558,14 @@ public com.google.datastore.v1.Mutation.Builder getMutationsBuilder(int index) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index) {
+    public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
+        int index) {
       if (mutationsBuilder_ == null) {
-        return mutations_.get(index);
-      } else {
+        return mutations_.get(index);  } else {
         return mutationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1723,8 +1581,8 @@ public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public java.util.List
-        getMutationsOrBuilderList() {
+    public java.util.List 
+         getMutationsOrBuilderList() {
       if (mutationsBuilder_ != null) {
         return mutationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1732,8 +1590,6 @@ public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index
       }
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1750,12 +1606,10 @@ public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
     public com.google.datastore.v1.Mutation.Builder addMutationsBuilder() {
-      return getMutationsFieldBuilder()
-          .addBuilder(com.google.datastore.v1.Mutation.getDefaultInstance());
+      return getMutationsFieldBuilder().addBuilder(
+          com.google.datastore.v1.Mutation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1771,13 +1625,12 @@ public com.google.datastore.v1.Mutation.Builder addMutationsBuilder() {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public com.google.datastore.v1.Mutation.Builder addMutationsBuilder(int index) {
-      return getMutationsFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.Mutation.getDefaultInstance());
+    public com.google.datastore.v1.Mutation.Builder addMutationsBuilder(
+        int index) {
+      return getMutationsFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.Mutation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1793,29 +1646,27 @@ public com.google.datastore.v1.Mutation.Builder addMutationsBuilder(int index) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public java.util.List getMutationsBuilderList() {
+    public java.util.List 
+         getMutationsBuilderList() {
       return getMutationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Mutation,
-            com.google.datastore.v1.Mutation.Builder,
-            com.google.datastore.v1.MutationOrBuilder>
+        com.google.datastore.v1.Mutation, com.google.datastore.v1.Mutation.Builder, com.google.datastore.v1.MutationOrBuilder> 
         getMutationsFieldBuilder() {
       if (mutationsBuilder_ == null) {
-        mutationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.Mutation,
-                com.google.datastore.v1.Mutation.Builder,
-                com.google.datastore.v1.MutationOrBuilder>(
-                mutations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.Mutation, com.google.datastore.v1.Mutation.Builder, com.google.datastore.v1.MutationOrBuilder>(
+                mutations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         mutations_ = null;
       }
       return mutationsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1825,12 +1676,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.CommitRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.CommitRequest)
   private static final com.google.datastore.v1.CommitRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.CommitRequest();
   }
@@ -1839,16 +1690,16 @@ public static com.google.datastore.v1.CommitRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CommitRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new CommitRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CommitRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new CommitRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1863,4 +1714,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.CommitRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
similarity index 84%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
index db235efdd..6d072f024 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
@@ -1,81 +1,52 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
-public interface CommitRequestOrBuilder
-    extends
+public interface CommitRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.CommitRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * The type of commit to perform. Defaults to `TRANSACTIONAL`.
    * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** - * - * *
    * The type of commit to perform. Defaults to `TRANSACTIONAL`.
    * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; - * * @return The mode. */ com.google.datastore.v1.CommitRequest.Mode getMode(); /** - * - * *
    * The identifier of the transaction associated with the commit. A
    * transaction identifier is returned by a call to
@@ -83,13 +54,10 @@ public interface CommitRequestOrBuilder
    * 
* * bytes transaction = 1; - * * @return Whether the transaction field is set. */ boolean hasTransaction(); /** - * - * *
    * The identifier of the transaction associated with the commit. A
    * transaction identifier is returned by a call to
@@ -97,14 +65,11 @@ public interface CommitRequestOrBuilder
    * 
* * bytes transaction = 1; - * * @return The transaction. */ com.google.protobuf.ByteString getTransaction(); /** - * - * *
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -120,10 +85,9 @@ public interface CommitRequestOrBuilder
    *
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
-  java.util.List getMutationsList();
+  java.util.List 
+      getMutationsList();
   /**
-   *
-   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -141,8 +105,6 @@ public interface CommitRequestOrBuilder
    */
   com.google.datastore.v1.Mutation getMutations(int index);
   /**
-   *
-   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -160,8 +122,6 @@ public interface CommitRequestOrBuilder
    */
   int getMutationsCount();
   /**
-   *
-   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -177,10 +137,9 @@ public interface CommitRequestOrBuilder
    *
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
-  java.util.List getMutationsOrBuilderList();
+  java.util.List 
+      getMutationsOrBuilderList();
   /**
-   *
-   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -196,7 +155,8 @@ public interface CommitRequestOrBuilder
    *
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
-  com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index);
+  com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
+      int index);
 
   public com.google.datastore.v1.CommitRequest.TransactionSelectorCase getTransactionSelectorCase();
 }
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
similarity index 76%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
index a11c88357..9da1a478b 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * The response for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
  * 
* * Protobuf type {@code google.datastore.v1.CommitResponse} */ -public final class CommitResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommitResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.CommitResponse) CommitResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommitResponse.newBuilder() to construct. private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommitResponse() { mutationResults_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommitResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommitResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,45 +54,40 @@ private CommitResponse( case 0: done = true; break; - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mutationResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - mutationResults_.add( - input.readMessage( - com.google.datastore.v1.MutationResult.parser(), extensionRegistry)); - break; - } - case 32: - { - indexUpdates_ = input.readInt32(); - break; + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mutationResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (commitTime_ != null) { - subBuilder = commitTime_.toBuilder(); - } - commitTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(commitTime_); - commitTime_ = subBuilder.buildPartial(); - } + mutationResults_.add( + input.readMessage(com.google.datastore.v1.MutationResult.parser(), extensionRegistry)); + break; + } + case 32: { - break; + indexUpdates_ = input.readInt32(); + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (commitTime_ != null) { + subBuilder = commitTime_.toBuilder(); + } + commitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(commitTime_); + commitTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,7 +95,8 @@ private CommitResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mutationResults_ = java.util.Collections.unmodifiableList(mutationResults_); @@ -126,27 +105,22 @@ private CommitResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CommitResponse.class, - com.google.datastore.v1.CommitResponse.Builder.class); + com.google.datastore.v1.CommitResponse.class, com.google.datastore.v1.CommitResponse.Builder.class); } public static final int MUTATION_RESULTS_FIELD_NUMBER = 3; private java.util.List mutationResults_; /** - * - * *
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -159,8 +133,6 @@ public java.util.List getMutationResults
     return mutationResults_;
   }
   /**
-   *
-   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -169,13 +141,11 @@ public java.util.List getMutationResults
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getMutationResultsOrBuilderList() {
     return mutationResults_;
   }
   /**
-   *
-   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -188,8 +158,6 @@ public int getMutationResultsCount() {
     return mutationResults_.size();
   }
   /**
-   *
-   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -202,8 +170,6 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
     return mutationResults_.get(index);
   }
   /**
-   *
-   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -212,22 +178,20 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
   @java.lang.Override
-  public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(int index) {
+  public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(
+      int index) {
     return mutationResults_.get(index);
   }
 
   public static final int INDEX_UPDATES_FIELD_NUMBER = 4;
   private int indexUpdates_;
   /**
-   *
-   *
    * 
    * The number of index entries updated during the commit, or zero if none were
    * updated.
    * 
* * int32 index_updates = 4; - * * @return The indexUpdates. */ @java.lang.Override @@ -238,14 +202,11 @@ public int getIndexUpdates() { public static final int COMMIT_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp commitTime_; /** - * - * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
* * .google.protobuf.Timestamp commit_time = 8; - * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -253,14 +214,11 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** - * - * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
* * .google.protobuf.Timestamp commit_time = 8; - * * @return The commitTime. */ @java.lang.Override @@ -268,8 +226,6 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** - * - * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
@@ -282,7 +238,6 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,7 +249,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < mutationResults_.size(); i++) { output.writeMessage(3, mutationResults_.get(i)); } @@ -314,13 +270,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < mutationResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, mutationResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, mutationResults_.get(i)); } if (indexUpdates_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, indexUpdates_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, indexUpdates_); } if (commitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCommitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCommitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -330,18 +289,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.datastore.v1.CommitResponse)) { return super.equals(obj); } com.google.datastore.v1.CommitResponse other = (com.google.datastore.v1.CommitResponse) obj; - if (!getMutationResultsList().equals(other.getMutationResultsList())) return false; - if (getIndexUpdates() != other.getIndexUpdates()) return false; + if (!getMutationResultsList() + .equals(other.getMutationResultsList())) return false; + if (getIndexUpdates() + != other.getIndexUpdates()) return false; if (hasCommitTime() != other.hasCommitTime()) return false; if (hasCommitTime()) { - if (!getCommitTime().equals(other.getCommitTime())) return false; + if (!getCommitTime() + .equals(other.getCommitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -369,127 +331,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.CommitResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.CommitResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.CommitResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.CommitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.CommitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.CommitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.CommitResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.CommitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.CommitResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.CommitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.CommitResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.CommitResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.CommitResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.CommitResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
    * 
* * Protobuf type {@code google.datastore.v1.CommitResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.CommitResponse) com.google.datastore.v1.CommitResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CommitResponse.class, - com.google.datastore.v1.CommitResponse.Builder.class); + com.google.datastore.v1.CommitResponse.class, com.google.datastore.v1.CommitResponse.Builder.class); } // Construct using com.google.datastore.v1.CommitResponse.newBuilder() @@ -497,17 +450,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMutationResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -529,9 +482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_CommitResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_descriptor; } @java.lang.Override @@ -550,8 +503,7 @@ public com.google.datastore.v1.CommitResponse build() { @java.lang.Override public com.google.datastore.v1.CommitResponse buildPartial() { - com.google.datastore.v1.CommitResponse result = - new com.google.datastore.v1.CommitResponse(this); + com.google.datastore.v1.CommitResponse result = new com.google.datastore.v1.CommitResponse(this); int from_bitField0_ = bitField0_; if (mutationResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -576,39 +528,38 @@ public com.google.datastore.v1.CommitResponse 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.datastore.v1.CommitResponse) { - return mergeFrom((com.google.datastore.v1.CommitResponse) other); + return mergeFrom((com.google.datastore.v1.CommitResponse)other); } else { super.mergeFrom(other); return this; @@ -635,10 +586,9 @@ public Builder mergeFrom(com.google.datastore.v1.CommitResponse other) { mutationResultsBuilder_ = null; mutationResults_ = other.mutationResults_; bitField0_ = (bitField0_ & ~0x00000001); - mutationResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMutationResultsFieldBuilder() - : null; + mutationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMutationResultsFieldBuilder() : null; } else { mutationResultsBuilder_.addAllMessages(other.mutationResults_); } @@ -678,29 +628,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List mutationResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMutationResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mutationResults_ = - new java.util.ArrayList(mutationResults_); + mutationResults_ = new java.util.ArrayList(mutationResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.MutationResult, - com.google.datastore.v1.MutationResult.Builder, - com.google.datastore.v1.MutationResultOrBuilder> - mutationResultsBuilder_; + com.google.datastore.v1.MutationResult, com.google.datastore.v1.MutationResult.Builder, com.google.datastore.v1.MutationResultOrBuilder> mutationResultsBuilder_; /** - * - * *
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -716,8 +658,6 @@ public java.util.List getMutationResults
       }
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -733,8 +673,6 @@ public int getMutationResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -750,8 +688,6 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -759,7 +695,8 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public Builder setMutationResults(int index, com.google.datastore.v1.MutationResult value) {
+    public Builder setMutationResults(
+        int index, com.google.datastore.v1.MutationResult value) {
       if (mutationResultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -773,8 +710,6 @@ public Builder setMutationResults(int index, com.google.datastore.v1.MutationRes
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -794,8 +729,6 @@ public Builder setMutationResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -817,8 +750,6 @@ public Builder addMutationResults(com.google.datastore.v1.MutationResult value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -826,7 +757,8 @@ public Builder addMutationResults(com.google.datastore.v1.MutationResult value)
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public Builder addMutationResults(int index, com.google.datastore.v1.MutationResult value) {
+    public Builder addMutationResults(
+        int index, com.google.datastore.v1.MutationResult value) {
       if (mutationResultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -840,8 +772,6 @@ public Builder addMutationResults(int index, com.google.datastore.v1.MutationRes
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -861,8 +791,6 @@ public Builder addMutationResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -882,8 +810,6 @@ public Builder addMutationResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -895,7 +821,8 @@ public Builder addAllMutationResults(
         java.lang.Iterable values) {
       if (mutationResultsBuilder_ == null) {
         ensureMutationResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mutationResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, mutationResults_);
         onChanged();
       } else {
         mutationResultsBuilder_.addAllMessages(values);
@@ -903,8 +830,6 @@ public Builder addAllMutationResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -923,8 +848,6 @@ public Builder clearMutationResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -943,8 +866,6 @@ public Builder removeMutationResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -952,12 +873,11 @@ public Builder removeMutationResults(int index) {
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public com.google.datastore.v1.MutationResult.Builder getMutationResultsBuilder(int index) {
+    public com.google.datastore.v1.MutationResult.Builder getMutationResultsBuilder(
+        int index) {
       return getMutationResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -965,16 +885,14 @@ public com.google.datastore.v1.MutationResult.Builder getMutationResultsBuilder(
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(int index) {
+    public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(
+        int index) {
       if (mutationResultsBuilder_ == null) {
-        return mutationResults_.get(index);
-      } else {
+        return mutationResults_.get(index);  } else {
         return mutationResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -982,8 +900,8 @@ public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuild
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public java.util.List
-        getMutationResultsOrBuilderList() {
+    public java.util.List 
+         getMutationResultsOrBuilderList() {
       if (mutationResultsBuilder_ != null) {
         return mutationResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -991,8 +909,6 @@ public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -1001,12 +917,10 @@ public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuild
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
     public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder() {
-      return getMutationResultsFieldBuilder()
-          .addBuilder(com.google.datastore.v1.MutationResult.getDefaultInstance());
+      return getMutationResultsFieldBuilder().addBuilder(
+          com.google.datastore.v1.MutationResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -1014,13 +928,12 @@ public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(int index) {
-      return getMutationResultsFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.MutationResult.getDefaultInstance());
+    public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
+        int index) {
+      return getMutationResultsFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.MutationResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -1028,22 +941,16 @@ public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public java.util.List
-        getMutationResultsBuilderList() {
+    public java.util.List 
+         getMutationResultsBuilderList() {
       return getMutationResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.MutationResult,
-            com.google.datastore.v1.MutationResult.Builder,
-            com.google.datastore.v1.MutationResultOrBuilder>
+        com.google.datastore.v1.MutationResult, com.google.datastore.v1.MutationResult.Builder, com.google.datastore.v1.MutationResultOrBuilder> 
         getMutationResultsFieldBuilder() {
       if (mutationResultsBuilder_ == null) {
-        mutationResultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.MutationResult,
-                com.google.datastore.v1.MutationResult.Builder,
-                com.google.datastore.v1.MutationResultOrBuilder>(
+        mutationResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.MutationResult, com.google.datastore.v1.MutationResult.Builder, com.google.datastore.v1.MutationResultOrBuilder>(
                 mutationResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1053,17 +960,14 @@ public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
       return mutationResultsBuilder_;
     }
 
-    private int indexUpdates_;
+    private int indexUpdates_ ;
     /**
-     *
-     *
      * 
      * The number of index entries updated during the commit, or zero if none were
      * updated.
      * 
* * int32 index_updates = 4; - * * @return The indexUpdates. */ @java.lang.Override @@ -1071,38 +975,32 @@ public int getIndexUpdates() { return indexUpdates_; } /** - * - * *
      * The number of index entries updated during the commit, or zero if none were
      * updated.
      * 
* * int32 index_updates = 4; - * * @param value The indexUpdates to set. * @return This builder for chaining. */ public Builder setIndexUpdates(int value) { - + indexUpdates_ = value; onChanged(); return this; } /** - * - * *
      * The number of index entries updated during the commit, or zero if none were
      * updated.
      * 
* * int32 index_updates = 4; - * * @return This builder for chaining. */ public Builder clearIndexUpdates() { - + indexUpdates_ = 0; onChanged(); return this; @@ -1110,47 +1008,34 @@ public Builder clearIndexUpdates() { private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - commitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
* * .google.protobuf.Timestamp commit_time = 8; - * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return commitTimeBuilder_ != null || commitTime_ != null; } /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
* * .google.protobuf.Timestamp commit_time = 8; - * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1171,15 +1056,14 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
* * .google.protobuf.Timestamp commit_time = 8; */ - public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCommitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimeBuilder_ == null) { commitTime_ = builderForValue.build(); onChanged(); @@ -1190,8 +1074,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1202,7 +1084,7 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { if (commitTime_ != null) { commitTime_ = - com.google.protobuf.Timestamp.newBuilder(commitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(commitTime_).mergeFrom(value).buildPartial(); } else { commitTime_ = value; } @@ -1214,8 +1096,6 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1234,8 +1114,6 @@ public Builder clearCommitTime() { return this; } /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1243,13 +1121,11 @@ public Builder clearCommitTime() { * .google.protobuf.Timestamp commit_time = 8; */ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { - + onChanged(); return getCommitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1260,14 +1136,11 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { if (commitTimeBuilder_ != null) { return commitTimeBuilder_.getMessageOrBuilder(); } else { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } } /** - * - * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1275,24 +1148,21 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { * .google.protobuf.Timestamp commit_time = 8; */ 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> getCommitTimeFieldBuilder() { if (commitTimeBuilder_ == null) { - commitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCommitTime(), getParentForChildren(), isClean()); + commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCommitTime(), + getParentForChildren(), + isClean()); commitTime_ = null; } return commitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1302,12 +1172,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.CommitResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.CommitResponse) private static final com.google.datastore.v1.CommitResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.CommitResponse(); } @@ -1316,16 +1186,16 @@ public static com.google.datastore.v1.CommitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommitResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommitResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1340,4 +1210,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.CommitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java similarity index 76% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java index 9b1681cfa..a1487efe5 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface CommitResponseOrBuilder - extends +public interface CommitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.CommitResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -33,10 +15,9 @@ public interface CommitResponseOrBuilder
    *
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
-  java.util.List getMutationResultsList();
+  java.util.List 
+      getMutationResultsList();
   /**
-   *
-   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -46,8 +27,6 @@ public interface CommitResponseOrBuilder
    */
   com.google.datastore.v1.MutationResult getMutationResults(int index);
   /**
-   *
-   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -57,8 +36,6 @@ public interface CommitResponseOrBuilder
    */
   int getMutationResultsCount();
   /**
-   *
-   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -66,11 +43,9 @@ public interface CommitResponseOrBuilder
    *
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
-  java.util.List
+  java.util.List 
       getMutationResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -78,49 +53,39 @@ public interface CommitResponseOrBuilder
    *
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
-  com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(int index);
+  com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The number of index entries updated during the commit, or zero if none were
    * updated.
    * 
* * int32 index_updates = 4; - * * @return The indexUpdates. */ int getIndexUpdates(); /** - * - * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
* * .google.protobuf.Timestamp commit_time = 8; - * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** - * - * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
* * .google.protobuf.Timestamp commit_time = 8; - * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** - * - * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java similarity index 74% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java index 72432f944..79bccdda8 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.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/datastore/v1/query.proto package com.google.datastore.v1; /** - * - * *
  * A filter that merges multiple other filters using the given operator.
  * 
* * Protobuf type {@code google.datastore.v1.CompositeFilter} */ -public final class CompositeFilter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CompositeFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.CompositeFilter) CompositeFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CompositeFilter.newBuilder() to construct. private CompositeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CompositeFilter() { op_ = 0; filters_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private CompositeFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CompositeFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CompositeFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private CompositeFilter( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - op_ = rawValue; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - filters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - filters_.add( - input.readMessage(com.google.datastore.v1.Filter.parser(), extensionRegistry)); - break; + op_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + filters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filters_.add( + input.readMessage(com.google.datastore.v1.Filter.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private CompositeFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { filters_ = java.util.Collections.unmodifiableList(filters_); @@ -112,35 +94,29 @@ private CompositeFilter( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_CompositeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CompositeFilter.class, - com.google.datastore.v1.CompositeFilter.Builder.class); + com.google.datastore.v1.CompositeFilter.class, com.google.datastore.v1.CompositeFilter.Builder.class); } /** - * - * *
    * A composite filter operator.
    * 
* * Protobuf enum {@code google.datastore.v1.CompositeFilter.Operator} */ - public enum Operator implements com.google.protobuf.ProtocolMessageEnum { + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -149,8 +125,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { */ OPERATOR_UNSPECIFIED(0), /** - * - * *
      * The results are required to satisfy each of the combined filters.
      * 
@@ -162,8 +136,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -172,8 +144,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATOR_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The results are required to satisfy each of the combined filters.
      * 
@@ -182,6 +152,7 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AND_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -206,47 +177,48 @@ public static Operator valueOf(int value) { */ public static Operator forNumber(int value) { switch (value) { - case 0: - return OPERATOR_UNSPECIFIED; - case 1: - return AND; - default: - return null; + case 0: return OPERATOR_UNSPECIFIED; + case 1: return AND; + 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< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operator findValueByNumber(int number) { - return Operator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.v1.CompositeFilter.getDescriptor().getEnumTypes().get(0); } private static final Operator[] VALUES = values(); - public static Operator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Operator 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,44 +238,33 @@ private Operator(int value) { public static final int OP_FIELD_NUMBER = 1; private int op_; /** - * - * *
    * The operator for combining multiple filters.
    * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @return The enum numeric value on the wire for op. */ - @java.lang.Override - public int getOpValue() { + @java.lang.Override public int getOpValue() { return op_; } /** - * - * *
    * The operator for combining multiple filters.
    * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @return The op. */ - @java.lang.Override - public com.google.datastore.v1.CompositeFilter.Operator getOp() { + @java.lang.Override public com.google.datastore.v1.CompositeFilter.Operator getOp() { @SuppressWarnings("deprecation") - com.google.datastore.v1.CompositeFilter.Operator result = - com.google.datastore.v1.CompositeFilter.Operator.valueOf(op_); + com.google.datastore.v1.CompositeFilter.Operator result = com.google.datastore.v1.CompositeFilter.Operator.valueOf(op_); return result == null ? com.google.datastore.v1.CompositeFilter.Operator.UNRECOGNIZED : result; } public static final int FILTERS_FIELD_NUMBER = 2; private java.util.List filters_; /** - * - * *
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -316,8 +277,6 @@ public java.util.List getFiltersList() {
     return filters_;
   }
   /**
-   *
-   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -326,13 +285,11 @@ public java.util.List getFiltersList() {
    * repeated .google.datastore.v1.Filter filters = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getFiltersOrBuilderList() {
     return filters_;
   }
   /**
-   *
-   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -345,8 +302,6 @@ public int getFiltersCount() {
     return filters_.size();
   }
   /**
-   *
-   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -359,8 +314,6 @@ public com.google.datastore.v1.Filter getFilters(int index) {
     return filters_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -369,12 +322,12 @@ public com.google.datastore.v1.Filter getFilters(int index) {
    * repeated .google.datastore.v1.Filter filters = 2;
    */
   @java.lang.Override
-  public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index) {
+  public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
+      int index) {
     return filters_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -386,7 +339,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (op_ != com.google.datastore.v1.CompositeFilter.Operator.OPERATOR_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, op_);
     }
@@ -403,10 +357,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (op_ != com.google.datastore.v1.CompositeFilter.Operator.OPERATOR_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, op_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, op_);
     }
     for (int i = 0; i < filters_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, filters_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, filters_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -416,7 +372,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.CompositeFilter)) {
       return super.equals(obj);
@@ -424,7 +380,8 @@ public boolean equals(final java.lang.Object obj) {
     com.google.datastore.v1.CompositeFilter other = (com.google.datastore.v1.CompositeFilter) obj;
 
     if (op_ != other.op_) return false;
-    if (!getFiltersList().equals(other.getFiltersList())) return false;
+    if (!getFiltersList()
+        .equals(other.getFiltersList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -447,127 +404,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.CompositeFilter parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.CompositeFilter parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.CompositeFilter parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.datastore.v1.CompositeFilter parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.CompositeFilter parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.CompositeFilter prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A filter that merges multiple other filters using the given operator.
    * 
* * Protobuf type {@code google.datastore.v1.CompositeFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.CompositeFilter) com.google.datastore.v1.CompositeFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_CompositeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CompositeFilter.class, - com.google.datastore.v1.CompositeFilter.Builder.class); + com.google.datastore.v1.CompositeFilter.class, com.google.datastore.v1.CompositeFilter.Builder.class); } // Construct using com.google.datastore.v1.CompositeFilter.newBuilder() @@ -575,17 +523,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFiltersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -601,9 +549,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_CompositeFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_descriptor; } @java.lang.Override @@ -622,8 +570,7 @@ public com.google.datastore.v1.CompositeFilter build() { @java.lang.Override public com.google.datastore.v1.CompositeFilter buildPartial() { - com.google.datastore.v1.CompositeFilter result = - new com.google.datastore.v1.CompositeFilter(this); + com.google.datastore.v1.CompositeFilter result = new com.google.datastore.v1.CompositeFilter(this); int from_bitField0_ = bitField0_; result.op_ = op_; if (filtersBuilder_ == null) { @@ -643,39 +590,38 @@ public com.google.datastore.v1.CompositeFilter 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.datastore.v1.CompositeFilter) { - return mergeFrom((com.google.datastore.v1.CompositeFilter) other); + return mergeFrom((com.google.datastore.v1.CompositeFilter)other); } else { super.mergeFrom(other); return this; @@ -705,10 +651,9 @@ public Builder mergeFrom(com.google.datastore.v1.CompositeFilter other) { filtersBuilder_ = null; filters_ = other.filters_; bitField0_ = (bitField0_ & ~0x00000001); - filtersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFiltersFieldBuilder() - : null; + filtersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFiltersFieldBuilder() : null; } else { filtersBuilder_.addAllMessages(other.filters_); } @@ -742,72 +687,55 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int op_ = 0; /** - * - * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @return The enum numeric value on the wire for op. */ - @java.lang.Override - public int getOpValue() { + @java.lang.Override public int getOpValue() { return op_; } /** - * - * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @param value The enum numeric value on the wire for op to set. * @return This builder for chaining. */ public Builder setOpValue(int value) { - + op_ = value; onChanged(); return this; } /** - * - * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @return The op. */ @java.lang.Override public com.google.datastore.v1.CompositeFilter.Operator getOp() { @SuppressWarnings("deprecation") - com.google.datastore.v1.CompositeFilter.Operator result = - com.google.datastore.v1.CompositeFilter.Operator.valueOf(op_); - return result == null - ? com.google.datastore.v1.CompositeFilter.Operator.UNRECOGNIZED - : result; + com.google.datastore.v1.CompositeFilter.Operator result = com.google.datastore.v1.CompositeFilter.Operator.valueOf(op_); + return result == null ? com.google.datastore.v1.CompositeFilter.Operator.UNRECOGNIZED : result; } /** - * - * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @param value The op to set. * @return This builder for chaining. */ @@ -815,48 +743,39 @@ public Builder setOp(com.google.datastore.v1.CompositeFilter.Operator value) { if (value == null) { throw new NullPointerException(); } - + op_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @return This builder for chaining. */ public Builder clearOp() { - + op_ = 0; onChanged(); return this; } private java.util.List filters_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { filters_ = new java.util.ArrayList(filters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Filter, - com.google.datastore.v1.Filter.Builder, - com.google.datastore.v1.FilterOrBuilder> - filtersBuilder_; + com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder> filtersBuilder_; /** - * - * *
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -872,8 +791,6 @@ public java.util.List getFiltersList() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -889,8 +806,6 @@ public int getFiltersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -906,8 +821,6 @@ public com.google.datastore.v1.Filter getFilters(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -915,7 +828,8 @@ public com.google.datastore.v1.Filter getFilters(int index) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder setFilters(int index, com.google.datastore.v1.Filter value) {
+    public Builder setFilters(
+        int index, com.google.datastore.v1.Filter value) {
       if (filtersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -929,8 +843,6 @@ public Builder setFilters(int index, com.google.datastore.v1.Filter value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -938,7 +850,8 @@ public Builder setFilters(int index, com.google.datastore.v1.Filter value) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder setFilters(int index, com.google.datastore.v1.Filter.Builder builderForValue) {
+    public Builder setFilters(
+        int index, com.google.datastore.v1.Filter.Builder builderForValue) {
       if (filtersBuilder_ == null) {
         ensureFiltersIsMutable();
         filters_.set(index, builderForValue.build());
@@ -949,8 +862,6 @@ public Builder setFilters(int index, com.google.datastore.v1.Filter.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -972,8 +883,6 @@ public Builder addFilters(com.google.datastore.v1.Filter value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -981,7 +890,8 @@ public Builder addFilters(com.google.datastore.v1.Filter value) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder addFilters(int index, com.google.datastore.v1.Filter value) {
+    public Builder addFilters(
+        int index, com.google.datastore.v1.Filter value) {
       if (filtersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -995,8 +905,6 @@ public Builder addFilters(int index, com.google.datastore.v1.Filter value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1004,7 +912,8 @@ public Builder addFilters(int index, com.google.datastore.v1.Filter value) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder addFilters(com.google.datastore.v1.Filter.Builder builderForValue) {
+    public Builder addFilters(
+        com.google.datastore.v1.Filter.Builder builderForValue) {
       if (filtersBuilder_ == null) {
         ensureFiltersIsMutable();
         filters_.add(builderForValue.build());
@@ -1015,8 +924,6 @@ public Builder addFilters(com.google.datastore.v1.Filter.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1024,7 +931,8 @@ public Builder addFilters(com.google.datastore.v1.Filter.Builder builderForValue
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder addFilters(int index, com.google.datastore.v1.Filter.Builder builderForValue) {
+    public Builder addFilters(
+        int index, com.google.datastore.v1.Filter.Builder builderForValue) {
       if (filtersBuilder_ == null) {
         ensureFiltersIsMutable();
         filters_.add(index, builderForValue.build());
@@ -1035,8 +943,6 @@ public Builder addFilters(int index, com.google.datastore.v1.Filter.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1048,7 +954,8 @@ public Builder addAllFilters(
         java.lang.Iterable values) {
       if (filtersBuilder_ == null) {
         ensureFiltersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filters_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, filters_);
         onChanged();
       } else {
         filtersBuilder_.addAllMessages(values);
@@ -1056,8 +963,6 @@ public Builder addAllFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1076,8 +981,6 @@ public Builder clearFilters() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1096,8 +999,6 @@ public Builder removeFilters(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1105,12 +1006,11 @@ public Builder removeFilters(int index) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public com.google.datastore.v1.Filter.Builder getFiltersBuilder(int index) {
+    public com.google.datastore.v1.Filter.Builder getFiltersBuilder(
+        int index) {
       return getFiltersFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1118,16 +1018,14 @@ public com.google.datastore.v1.Filter.Builder getFiltersBuilder(int index) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index) {
+    public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
+        int index) {
       if (filtersBuilder_ == null) {
-        return filters_.get(index);
-      } else {
+        return filters_.get(index);  } else {
         return filtersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1135,8 +1033,8 @@ public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public java.util.List
-        getFiltersOrBuilderList() {
+    public java.util.List 
+         getFiltersOrBuilderList() {
       if (filtersBuilder_ != null) {
         return filtersBuilder_.getMessageOrBuilderList();
       } else {
@@ -1144,8 +1042,6 @@ public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1154,12 +1050,10 @@ public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index) {
      * repeated .google.datastore.v1.Filter filters = 2;
      */
     public com.google.datastore.v1.Filter.Builder addFiltersBuilder() {
-      return getFiltersFieldBuilder()
-          .addBuilder(com.google.datastore.v1.Filter.getDefaultInstance());
+      return getFiltersFieldBuilder().addBuilder(
+          com.google.datastore.v1.Filter.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1167,13 +1061,12 @@ public com.google.datastore.v1.Filter.Builder addFiltersBuilder() {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public com.google.datastore.v1.Filter.Builder addFiltersBuilder(int index) {
-      return getFiltersFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.Filter.getDefaultInstance());
+    public com.google.datastore.v1.Filter.Builder addFiltersBuilder(
+        int index) {
+      return getFiltersFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.Filter.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1181,29 +1074,27 @@ public com.google.datastore.v1.Filter.Builder addFiltersBuilder(int index) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public java.util.List getFiltersBuilderList() {
+    public java.util.List 
+         getFiltersBuilderList() {
       return getFiltersFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Filter,
-            com.google.datastore.v1.Filter.Builder,
-            com.google.datastore.v1.FilterOrBuilder>
+        com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder> 
         getFiltersFieldBuilder() {
       if (filtersBuilder_ == null) {
-        filtersBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.Filter,
-                com.google.datastore.v1.Filter.Builder,
-                com.google.datastore.v1.FilterOrBuilder>(
-                filters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder>(
+                filters_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         filters_ = null;
       }
       return filtersBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1213,12 +1104,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.CompositeFilter)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.CompositeFilter)
   private static final com.google.datastore.v1.CompositeFilter DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.CompositeFilter();
   }
@@ -1227,16 +1118,16 @@ public static com.google.datastore.v1.CompositeFilter getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CompositeFilter parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new CompositeFilter(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CompositeFilter parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new CompositeFilter(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1251,4 +1142,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.CompositeFilter getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
similarity index 66%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
index ad644173e..93d6bde77 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
@@ -1,56 +1,32 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
-public interface CompositeFilterOrBuilder
-    extends
+public interface CompositeFilterOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.CompositeFilter)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The operator for combining multiple filters.
    * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @return The enum numeric value on the wire for op. */ int getOpValue(); /** - * - * *
    * The operator for combining multiple filters.
    * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; - * * @return The op. */ com.google.datastore.v1.CompositeFilter.Operator getOp(); /** - * - * *
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -58,10 +34,9 @@ public interface CompositeFilterOrBuilder
    *
    * repeated .google.datastore.v1.Filter filters = 2;
    */
-  java.util.List getFiltersList();
+  java.util.List 
+      getFiltersList();
   /**
-   *
-   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -71,8 +46,6 @@ public interface CompositeFilterOrBuilder
    */
   com.google.datastore.v1.Filter getFilters(int index);
   /**
-   *
-   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -82,8 +55,6 @@ public interface CompositeFilterOrBuilder
    */
   int getFiltersCount();
   /**
-   *
-   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -91,10 +62,9 @@ public interface CompositeFilterOrBuilder
    *
    * repeated .google.datastore.v1.Filter filters = 2;
    */
-  java.util.List getFiltersOrBuilderList();
+  java.util.List 
+      getFiltersOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -102,5 +72,6 @@ public interface CompositeFilterOrBuilder
    *
    * repeated .google.datastore.v1.Filter filters = 2;
    */
-  com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index);
+  com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java
new file mode 100644
index 000000000..6f0797a49
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java
@@ -0,0 +1,387 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/v1/datastore.proto
+
+package com.google.datastore.v1;
+
+public final class DatastoreProto {
+  private DatastoreProto() {}
+  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_datastore_v1_LookupRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_LookupResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_RunQueryRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_RunQueryResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_BeginTransactionRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_BeginTransactionResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_RollbackRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_RollbackResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_CommitRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_CommitResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_AllocateIdsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_AllocateIdsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_ReserveIdsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_ReserveIdsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Mutation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Mutation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_MutationResult_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_MutationResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_ReadOptions_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_TransactionOptions_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n#google/datastore/v1/datastore.proto\022\023g" +
+      "oogle.datastore.v1\032\034google/api/annotatio" +
+      "ns.proto\032\027google/api/client.proto\032\037googl" +
+      "e/api/field_behavior.proto\032 google/datas" +
+      "tore/v1/entity.proto\032\037google/datastore/v" +
+      "1/query.proto\032\037google/protobuf/timestamp" +
+      ".proto\"\215\001\n\rLookupRequest\022\027\n\nproject_id\030\010" +
+      " \001(\tB\003\340A\002\0226\n\014read_options\030\001 \001(\0132 .google" +
+      ".datastore.v1.ReadOptions\022+\n\004keys\030\003 \003(\0132" +
+      "\030.google.datastore.v1.KeyB\003\340A\002\"\321\001\n\016Looku" +
+      "pResponse\0220\n\005found\030\001 \003(\0132!.google.datast" +
+      "ore.v1.EntityResult\0222\n\007missing\030\002 \003(\0132!.g" +
+      "oogle.datastore.v1.EntityResult\022*\n\010defer" +
+      "red\030\003 \003(\0132\030.google.datastore.v1.Key\022-\n\tr" +
+      "ead_time\030\007 \001(\0132\032.google.protobuf.Timesta" +
+      "mp\"\211\002\n\017RunQueryRequest\022\027\n\nproject_id\030\010 \001" +
+      "(\tB\003\340A\002\0226\n\014partition_id\030\002 \001(\0132 .google.d" +
+      "atastore.v1.PartitionId\0226\n\014read_options\030" +
+      "\001 \001(\0132 .google.datastore.v1.ReadOptions\022" +
+      "+\n\005query\030\003 \001(\0132\032.google.datastore.v1.Que" +
+      "ryH\000\0222\n\tgql_query\030\007 \001(\0132\035.google.datasto" +
+      "re.v1.GqlQueryH\000B\014\n\nquery_type\"s\n\020RunQue" +
+      "ryResponse\0224\n\005batch\030\001 \001(\0132%.google.datas" +
+      "tore.v1.QueryResultBatch\022)\n\005query\030\002 \001(\0132" +
+      "\032.google.datastore.v1.Query\"x\n\027BeginTran" +
+      "sactionRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022" +
+      "D\n\023transaction_options\030\n \001(\0132\'.google.da" +
+      "tastore.v1.TransactionOptions\"/\n\030BeginTr" +
+      "ansactionResponse\022\023\n\013transaction\030\001 \001(\014\"D" +
+      "\n\017RollbackRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340" +
+      "A\002\022\030\n\013transaction\030\001 \001(\014B\003\340A\002\"\022\n\020Rollback" +
+      "Response\"\210\002\n\rCommitRequest\022\027\n\nproject_id" +
+      "\030\010 \001(\tB\003\340A\002\0225\n\004mode\030\005 \001(\0162\'.google.datas" +
+      "tore.v1.CommitRequest.Mode\022\025\n\013transactio" +
+      "n\030\001 \001(\014H\000\0220\n\tmutations\030\006 \003(\0132\035.google.da" +
+      "tastore.v1.Mutation\"F\n\004Mode\022\024\n\020MODE_UNSP" +
+      "ECIFIED\020\000\022\021\n\rTRANSACTIONAL\020\001\022\025\n\021NON_TRAN" +
+      "SACTIONAL\020\002B\026\n\024transaction_selector\"\227\001\n\016" +
+      "CommitResponse\022=\n\020mutation_results\030\003 \003(\013" +
+      "2#.google.datastore.v1.MutationResult\022\025\n" +
+      "\rindex_updates\030\004 \001(\005\022/\n\013commit_time\030\010 \001(" +
+      "\0132\032.google.protobuf.Timestamp\"Z\n\022Allocat" +
+      "eIdsRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022+\n\004" +
+      "keys\030\001 \003(\0132\030.google.datastore.v1.KeyB\003\340A" +
+      "\002\"=\n\023AllocateIdsResponse\022&\n\004keys\030\001 \003(\0132\030" +
+      ".google.datastore.v1.Key\"n\n\021ReserveIdsRe" +
+      "quest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022\023\n\013databa" +
+      "se_id\030\t \001(\t\022+\n\004keys\030\001 \003(\0132\030.google.datas" +
+      "tore.v1.KeyB\003\340A\002\"\024\n\022ReserveIdsResponse\"\272" +
+      "\002\n\010Mutation\022-\n\006insert\030\004 \001(\0132\033.google.dat" +
+      "astore.v1.EntityH\000\022-\n\006update\030\005 \001(\0132\033.goo" +
+      "gle.datastore.v1.EntityH\000\022-\n\006upsert\030\006 \001(" +
+      "\0132\033.google.datastore.v1.EntityH\000\022*\n\006dele" +
+      "te\030\007 \001(\0132\030.google.datastore.v1.KeyH\000\022\026\n\014" +
+      "base_version\030\010 \001(\003H\001\0221\n\013update_time\030\013 \001(" +
+      "\0132\032.google.protobuf.TimestampH\001B\013\n\topera" +
+      "tionB\035\n\033conflict_detection_strategy\"\224\001\n\016" +
+      "MutationResult\022%\n\003key\030\003 \001(\0132\030.google.dat" +
+      "astore.v1.Key\022\017\n\007version\030\004 \001(\003\022/\n\013update" +
+      "_time\030\006 \001(\0132\032.google.protobuf.Timestamp\022" +
+      "\031\n\021conflict_detected\030\005 \001(\010\"\206\002\n\013ReadOptio" +
+      "ns\022L\n\020read_consistency\030\001 \001(\01620.google.da" +
+      "tastore.v1.ReadOptions.ReadConsistencyH\000" +
+      "\022\025\n\013transaction\030\002 \001(\014H\000\022/\n\tread_time\030\004 \001" +
+      "(\0132\032.google.protobuf.TimestampH\000\"M\n\017Read" +
+      "Consistency\022 \n\034READ_CONSISTENCY_UNSPECIF" +
+      "IED\020\000\022\n\n\006STRONG\020\001\022\014\n\010EVENTUAL\020\002B\022\n\020consi" +
+      "stency_type\"\222\002\n\022TransactionOptions\022G\n\nre" +
+      "ad_write\030\001 \001(\01321.google.datastore.v1.Tra" +
+      "nsactionOptions.ReadWriteH\000\022E\n\tread_only" +
+      "\030\002 \001(\01320.google.datastore.v1.Transaction" +
+      "Options.ReadOnlyH\000\032)\n\tReadWrite\022\034\n\024previ" +
+      "ous_transaction\030\001 \001(\014\0329\n\010ReadOnly\022-\n\trea" +
+      "d_time\030\001 \001(\0132\032.google.protobuf.Timestamp" +
+      "B\006\n\004mode2\223\n\n\tDatastore\022\235\001\n\006Lookup\022\".goog" +
+      "le.datastore.v1.LookupRequest\032#.google.d" +
+      "atastore.v1.LookupResponse\"J\202\323\344\223\002%\" /v1/" +
+      "projects/{project_id}:lookup:\001*\332A\034projec" +
+      "t_id,read_options,keys\022\206\001\n\010RunQuery\022$.go" +
+      "ogle.datastore.v1.RunQueryRequest\032%.goog" +
+      "le.datastore.v1.RunQueryResponse\"-\202\323\344\223\002\'" +
+      "\"\"/v1/projects/{project_id}:runQuery:\001*\022" +
+      "\263\001\n\020BeginTransaction\022,.google.datastore." +
+      "v1.BeginTransactionRequest\032-.google.data" +
+      "store.v1.BeginTransactionResponse\"B\202\323\344\223\002" +
+      "/\"*/v1/projects/{project_id}:beginTransa" +
+      "ction:\001*\332A\nproject_id\022\302\001\n\006Commit\022\".googl" +
+      "e.datastore.v1.CommitRequest\032#.google.da" +
+      "tastore.v1.CommitResponse\"o\202\323\344\223\002%\" /v1/p" +
+      "rojects/{project_id}:commit:\001*\332A%project" +
+      "_id,mode,transaction,mutations\332A\031project" +
+      "_id,mode,mutations\022\237\001\n\010Rollback\022$.google" +
+      ".datastore.v1.RollbackRequest\032%.google.d" +
+      "atastore.v1.RollbackResponse\"F\202\323\344\223\002\'\"\"/v" +
+      "1/projects/{project_id}:rollback:\001*\332A\026pr" +
+      "oject_id,transaction\022\244\001\n\013AllocateIds\022\'.g" +
+      "oogle.datastore.v1.AllocateIdsRequest\032(." +
+      "google.datastore.v1.AllocateIdsResponse\"" +
+      "B\202\323\344\223\002*\"%/v1/projects/{project_id}:alloc" +
+      "ateIds:\001*\332A\017project_id,keys\022\240\001\n\nReserveI" +
+      "ds\022&.google.datastore.v1.ReserveIdsReque" +
+      "st\032\'.google.datastore.v1.ReserveIdsRespo" +
+      "nse\"A\202\323\344\223\002)\"$/v1/projects/{project_id}:r" +
+      "eserveIds:\001*\332A\017project_id,keys\032v\312A\030datas" +
+      "tore.googleapis.com\322AXhttps://www.google" +
+      "apis.com/auth/cloud-platform,https://www" +
+      ".googleapis.com/auth/datastoreB\300\001\n\027com.g" +
+      "oogle.datastore.v1B\016DatastoreProtoP\001Z
  * A Datastore data object.
  * An entity is limited to 1 megabyte when stored. That _roughly_
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.datastore.v1.Entity}
  */
-public final class Entity extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Entity extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.Entity)
     EntityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Entity.newBuilder() to construct.
   private Entity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Entity() {}
+  private Entity() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Entity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Entity(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,43 +56,39 @@ private Entity(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.datastore.v1.Key.Builder subBuilder = null;
-              if (key_ != null) {
-                subBuilder = key_.toBuilder();
-              }
-              key_ = input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(key_);
-                key_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.datastore.v1.Key.Builder subBuilder = null;
+            if (key_ != null) {
+              subBuilder = key_.toBuilder();
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                properties_ =
-                    com.google.protobuf.MapField.newMapField(
-                        PropertiesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  properties__ =
-                      input.readMessage(
-                          PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              properties_.getMutableMap().put(properties__.getKey(), properties__.getValue());
-              break;
+            key_ = input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(key_);
+              key_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              properties_ = com.google.protobuf.MapField.newMapField(
+                  PropertiesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
+            com.google.protobuf.MapEntry
+            properties__ = input.readMessage(
+                PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            properties_.getMutableMap().put(
+                properties__.getKey(), properties__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,34 +96,34 @@ private Entity(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.v1.EntityProto
-        .internal_static_google_datastore_v1_Entity_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 3:
         return internalGetProperties();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.EntityProto
-        .internal_static_google_datastore_v1_Entity_fieldAccessorTable
+    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.datastore.v1.Entity.class, com.google.datastore.v1.Entity.Builder.class);
   }
@@ -151,8 +131,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
   public static final int KEY_FIELD_NUMBER = 1;
   private com.google.datastore.v1.Key key_;
   /**
-   *
-   *
    * 
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -162,7 +140,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * .google.datastore.v1.Key key = 1; - * * @return Whether the key field is set. */ @java.lang.Override @@ -170,8 +147,6 @@ public boolean hasKey() { return key_ != null; } /** - * - * *
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -181,7 +156,6 @@ public boolean hasKey() {
    * 
* * .google.datastore.v1.Key key = 1; - * * @return The key. */ @java.lang.Override @@ -189,8 +163,6 @@ public com.google.datastore.v1.Key getKey() { return key_ == null ? com.google.datastore.v1.Key.getDefaultInstance() : key_; } /** - * - * *
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -207,26 +179,24 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 3;
-
   private static final class PropertiesDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry
-        defaultEntry =
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, com.google.datastore.v1.Value> defaultEntry =
             com.google.protobuf.MapEntry
-                .newDefaultInstance(
-                    com.google.datastore.v1.EntityProto
-                        .internal_static_google_datastore_v1_Entity_PropertiesEntry_descriptor,
-                    com.google.protobuf.WireFormat.FieldType.STRING,
-                    "",
-                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                    com.google.datastore.v1.Value.getDefaultInstance());
+            .newDefaultInstance(
+                com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_PropertiesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.datastore.v1.Value.getDefaultInstance());
   }
-
-  private com.google.protobuf.MapField properties_;
-
+  private com.google.protobuf.MapField<
+      java.lang.String, com.google.datastore.v1.Value> properties_;
   private com.google.protobuf.MapField
-      internalGetProperties() {
+  internalGetProperties() {
     if (properties_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          PropertiesDefaultEntryHolder.defaultEntry);
     }
     return properties_;
   }
@@ -235,8 +205,6 @@ public int getPropertiesCount() {
     return internalGetProperties().getMap().size();
   }
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -248,22 +216,22 @@ public int getPropertiesCount() {
    *
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
+
   @java.lang.Override
-  public boolean containsProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getPropertiesMap()} instead. */
+  /**
+   * Use {@link #getPropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getProperties() {
     return getPropertiesMap();
   }
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -276,12 +244,11 @@ public java.util.Map getPropert
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
   @java.lang.Override
+
   public java.util.Map getPropertiesMap() {
     return internalGetProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -294,18 +261,16 @@ public java.util.Map getPropert
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
   @java.lang.Override
+
   public com.google.datastore.v1.Value getPropertiesOrDefault(
-      java.lang.String key, com.google.datastore.v1.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      com.google.datastore.v1.Value defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -318,10 +283,10 @@ public com.google.datastore.v1.Value getPropertiesOrDefault(
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
   @java.lang.Override
-  public com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public com.google.datastore.v1.Value getPropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -331,7 +296,6 @@ public com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key)
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -343,12 +307,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (key_ != null) {
       output.writeMessage(1, getKey());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetProperties(),
+        PropertiesDefaultEntryHolder.defaultEntry,
+        3);
     unknownFields.writeTo(output);
   }
 
@@ -359,17 +328,18 @@ public int getSerializedSize() {
 
     size = 0;
     if (key_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKey());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getKey());
     }
-    for (java.util.Map.Entry entry :
-        internalGetProperties().getMap().entrySet()) {
-      com.google.protobuf.MapEntry properties__ =
-          PropertiesDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, properties__);
+    for (java.util.Map.Entry entry
+         : internalGetProperties().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(3, properties__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -379,7 +349,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.Entity)) {
       return super.equals(obj);
@@ -388,9 +358,11 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasKey() != other.hasKey()) return false;
     if (hasKey()) {
-      if (!getKey().equals(other.getKey())) return false;
+      if (!getKey()
+          .equals(other.getKey())) return false;
     }
-    if (!internalGetProperties().equals(other.internalGetProperties())) return false;
+    if (!internalGetProperties().equals(
+        other.internalGetProperties())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -415,103 +387,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.Entity parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.Entity parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Entity parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.Entity parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.datastore.v1.Entity parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Entity parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Entity parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Entity parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Entity parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Entity parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Entity parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Entity parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.Entity parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.datastore.v1.Entity parseFrom(
+      com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Entity parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.Entity prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A Datastore data object.
    * An entity is limited to 1 megabyte when stored. That _roughly_
@@ -521,40 +487,41 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.v1.Entity}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.Entity)
       com.google.datastore.v1.EntityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Entity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 3:
           return internalGetProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 3:
           return internalGetMutableProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Entity_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.datastore.v1.Entity.class, com.google.datastore.v1.Entity.Builder.class);
     }
@@ -564,15 +531,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -587,9 +555,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Entity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_descriptor;
     }
 
     @java.lang.Override
@@ -625,39 +593,38 @@ public com.google.datastore.v1.Entity 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.datastore.v1.Entity) {
-        return mergeFrom((com.google.datastore.v1.Entity) other);
+        return mergeFrom((com.google.datastore.v1.Entity)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -669,7 +636,8 @@ public Builder mergeFrom(com.google.datastore.v1.Entity other) {
       if (other.hasKey()) {
         mergeKey(other.getKey());
       }
-      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(
+          other.internalGetProperties());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -698,18 +666,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.datastore.v1.Key key_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
-        keyBuilder_;
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keyBuilder_;
     /**
-     *
-     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -719,15 +681,12 @@ public Builder mergeFrom(
      * 
* * .google.datastore.v1.Key key = 1; - * * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** - * - * *
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -737,7 +696,6 @@ public boolean hasKey() {
      * 
* * .google.datastore.v1.Key key = 1; - * * @return The key. */ public com.google.datastore.v1.Key getKey() { @@ -748,8 +706,6 @@ public com.google.datastore.v1.Key getKey() { } } /** - * - * *
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -774,8 +730,6 @@ public Builder setKey(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -786,7 +740,8 @@ public Builder setKey(com.google.datastore.v1.Key value) {
      *
      * .google.datastore.v1.Key key = 1;
      */
-    public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setKey(
+        com.google.datastore.v1.Key.Builder builderForValue) {
       if (keyBuilder_ == null) {
         key_ = builderForValue.build();
         onChanged();
@@ -797,8 +752,6 @@ public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -812,7 +765,8 @@ public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) {
     public Builder mergeKey(com.google.datastore.v1.Key value) {
       if (keyBuilder_ == null) {
         if (key_ != null) {
-          key_ = com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial();
+          key_ =
+            com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial();
         } else {
           key_ = value;
         }
@@ -824,8 +778,6 @@ public Builder mergeKey(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -848,8 +800,6 @@ public Builder clearKey() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -861,13 +811,11 @@ public Builder clearKey() {
      * .google.datastore.v1.Key key = 1;
      */
     public com.google.datastore.v1.Key.Builder getKeyBuilder() {
-
+      
       onChanged();
       return getKeyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -882,12 +830,11 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
       if (keyBuilder_ != null) {
         return keyBuilder_.getMessageOrBuilder();
       } else {
-        return key_ == null ? com.google.datastore.v1.Key.getDefaultInstance() : key_;
+        return key_ == null ?
+            com.google.datastore.v1.Key.getDefaultInstance() : key_;
       }
     }
     /**
-     *
-     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -899,40 +846,35 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
      * .google.datastore.v1.Key key = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
         getKeyFieldBuilder() {
       if (keyBuilder_ == null) {
-        keyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.Key,
-                com.google.datastore.v1.Key.Builder,
-                com.google.datastore.v1.KeyOrBuilder>(getKey(), getParentForChildren(), isClean());
+        keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
+                getKey(),
+                getParentForChildren(),
+                isClean());
         key_ = null;
       }
       return keyBuilder_;
     }
 
+    private com.google.protobuf.MapField<
+        java.lang.String, com.google.datastore.v1.Value> properties_;
     private com.google.protobuf.MapField
-        properties_;
-
-    private com.google.protobuf.MapField
-        internalGetProperties() {
+    internalGetProperties() {
       if (properties_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             PropertiesDefaultEntryHolder.defaultEntry);
       }
       return properties_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableProperties() {
-      onChanged();
-      ;
+    internalGetMutableProperties() {
+      onChanged();;
       if (properties_ == null) {
-        properties_ =
-            com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry);
+        properties_ = com.google.protobuf.MapField.newMapField(
+            PropertiesDefaultEntryHolder.defaultEntry);
       }
       if (!properties_.isMutable()) {
         properties_ = properties_.copy();
@@ -944,8 +886,6 @@ public int getPropertiesCount() {
       return internalGetProperties().getMap().size();
     }
     /**
-     *
-     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -957,22 +897,22 @@ public int getPropertiesCount() {
      *
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
+
     @java.lang.Override
-    public boolean containsProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getPropertiesMap()} instead. */
+    /**
+     * Use {@link #getPropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getProperties() {
       return getPropertiesMap();
     }
     /**
-     *
-     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -985,12 +925,11 @@ public java.util.Map getPropert
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
     @java.lang.Override
+
     public java.util.Map getPropertiesMap() {
       return internalGetProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -1003,18 +942,16 @@ public java.util.Map getPropert
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
     @java.lang.Override
+
     public com.google.datastore.v1.Value getPropertiesOrDefault(
-        java.lang.String key, com.google.datastore.v1.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.datastore.v1.Value defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -1027,10 +964,10 @@ public com.google.datastore.v1.Value getPropertiesOrDefault(
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
     @java.lang.Override
-    public com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public com.google.datastore.v1.Value getPropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1040,12 +977,11 @@ public com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key)
     }
 
     public Builder clearProperties() {
-      internalGetMutableProperties().getMutableMap().clear();
+      internalGetMutableProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -1057,21 +993,23 @@ public Builder clearProperties() {
      *
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
-    public Builder removeProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableProperties().getMutableMap().remove(key);
+
+    public Builder removeProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableProperties() {
+    public java.util.Map
+    getMutableProperties() {
       return internalGetMutableProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -1083,20 +1021,19 @@ public java.util.Map getMutable
      *
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
-    public Builder putProperties(java.lang.String key, com.google.datastore.v1.Value value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putProperties(
+        java.lang.String key,
+        com.google.datastore.v1.Value value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableProperties().getMutableMap().put(key, value);
+      internalGetMutableProperties().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -1108,14 +1045,16 @@ public Builder putProperties(java.lang.String key, com.google.datastore.v1.Value
      *
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
+
     public Builder putAllProperties(
         java.util.Map values) {
-      internalGetMutableProperties().getMutableMap().putAll(values);
+      internalGetMutableProperties().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1125,12 +1064,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.Entity)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.Entity)
   private static final com.google.datastore.v1.Entity DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.Entity();
   }
@@ -1139,16 +1078,16 @@ public static com.google.datastore.v1.Entity getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Entity parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Entity(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Entity parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Entity(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1163,4 +1102,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.Entity getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
similarity index 78%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
index 23abf4c0a..a690fcec2 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/entity.proto
 
 package com.google.datastore.v1;
 
-public interface EntityOrBuilder
-    extends
+public interface EntityOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.Entity)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -35,13 +17,10 @@ public interface EntityOrBuilder
    * 
* * .google.datastore.v1.Key key = 1; - * * @return Whether the key field is set. */ boolean hasKey(); /** - * - * *
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -51,13 +30,10 @@ public interface EntityOrBuilder
    * 
* * .google.datastore.v1.Key key = 1; - * * @return The key. */ com.google.datastore.v1.Key getKey(); /** - * - * *
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -71,8 +47,6 @@ public interface EntityOrBuilder
   com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -86,8 +60,6 @@ public interface EntityOrBuilder
    */
   int getPropertiesCount();
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -99,13 +71,15 @@ public interface EntityOrBuilder
    *
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
-  boolean containsProperties(java.lang.String key);
-  /** Use {@link #getPropertiesMap()} instead. */
+  boolean containsProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getPropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getProperties();
+  java.util.Map
+  getProperties();
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -117,10 +91,9 @@ public interface EntityOrBuilder
    *
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
-  java.util.Map getPropertiesMap();
+  java.util.Map
+  getPropertiesMap();
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -134,13 +107,11 @@ public interface EntityOrBuilder
    */
 
   /* nullable */
-  com.google.datastore.v1.Value getPropertiesOrDefault(
+com.google.datastore.v1.Value getPropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.datastore.v1.Value defaultValue);
+com.google.datastore.v1.Value defaultValue);
   /**
-   *
-   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -152,5 +123,7 @@ com.google.datastore.v1.Value getPropertiesOrDefault(
    *
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
-  com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key);
+
+  com.google.datastore.v1.Value getPropertiesOrThrow(
+      java.lang.String key);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java
new file mode 100644
index 000000000..a33fb7e06
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java
@@ -0,0 +1,151 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/v1/entity.proto
+
+package com.google.datastore.v1;
+
+public final class EntityProto {
+  private EntityProto() {}
+  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_datastore_v1_PartitionId_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_PartitionId_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Key_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Key_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Key_PathElement_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_ArrayValue_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Value_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Value_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Entity_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Entity_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Entity_PropertiesEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Entity_PropertiesEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n google/datastore/v1/entity.proto\022\023goog" +
+      "le.datastore.v1\032\034google/protobuf/struct." +
+      "proto\032\037google/protobuf/timestamp.proto\032\030" +
+      "google/type/latlng.proto\"7\n\013PartitionId\022" +
+      "\022\n\nproject_id\030\002 \001(\t\022\024\n\014namespace_id\030\004 \001(" +
+      "\t\"\267\001\n\003Key\0226\n\014partition_id\030\001 \001(\0132 .google" +
+      ".datastore.v1.PartitionId\0222\n\004path\030\002 \003(\0132" +
+      "$.google.datastore.v1.Key.PathElement\032D\n" +
+      "\013PathElement\022\014\n\004kind\030\001 \001(\t\022\014\n\002id\030\002 \001(\003H\000" +
+      "\022\016\n\004name\030\003 \001(\tH\000B\t\n\007id_type\"8\n\nArrayValu" +
+      "e\022*\n\006values\030\001 \003(\0132\032.google.datastore.v1." +
+      "Value\"\361\003\n\005Value\0220\n\nnull_value\030\013 \001(\0162\032.go" +
+      "ogle.protobuf.NullValueH\000\022\027\n\rboolean_val" +
+      "ue\030\001 \001(\010H\000\022\027\n\rinteger_value\030\002 \001(\003H\000\022\026\n\014d" +
+      "ouble_value\030\003 \001(\001H\000\0225\n\017timestamp_value\030\n" +
+      " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\tke" +
+      "y_value\030\005 \001(\0132\030.google.datastore.v1.KeyH" +
+      "\000\022\026\n\014string_value\030\021 \001(\tH\000\022\024\n\nblob_value\030" +
+      "\022 \001(\014H\000\022.\n\017geo_point_value\030\010 \001(\0132\023.googl" +
+      "e.type.LatLngH\000\0223\n\014entity_value\030\006 \001(\0132\033." +
+      "google.datastore.v1.EntityH\000\0226\n\013array_va" +
+      "lue\030\t \001(\0132\037.google.datastore.v1.ArrayVal" +
+      "ueH\000\022\017\n\007meaning\030\016 \001(\005\022\034\n\024exclude_from_in" +
+      "dexes\030\023 \001(\010B\014\n\nvalue_type\"\277\001\n\006Entity\022%\n\003" +
+      "key\030\001 \001(\0132\030.google.datastore.v1.Key\022?\n\np" +
+      "roperties\030\003 \003(\0132+.google.datastore.v1.En" +
+      "tity.PropertiesEntry\032M\n\017PropertiesEntry\022" +
+      "\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.dat" +
+      "astore.v1.Value:\0028\001B\275\001\n\027com.google.datas" +
+      "tore.v1B\013EntityProtoP\001Z
  * The result of fetching an entity from Datastore.
  * 
* * Protobuf type {@code google.datastore.v1.EntityResult} */ -public final class EntityResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EntityResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.EntityResult) EntityResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EntityResult.newBuilder() to construct. private EntityResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityResult() { cursor_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EntityResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EntityResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,53 +53,49 @@ private EntityResult( case 0: done = true; break; - case 10: - { - com.google.datastore.v1.Entity.Builder subBuilder = null; - if (entity_ != null) { - subBuilder = entity_.toBuilder(); - } - entity_ = - input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.v1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); } - case 26: - { - cursor_ = input.readBytes(); - break; + entity_ = input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); } - case 32: - { - version_ = input.readInt64(); - break; + + break; + } + case 26: { + + cursor_ = input.readBytes(); + break; + } + case 32: { + + version_ = input.readInt64(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -124,31 +103,27 @@ private EntityResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_EntityResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_EntityResult_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.EntityResult.class, - com.google.datastore.v1.EntityResult.Builder.class); + com.google.datastore.v1.EntityResult.class, com.google.datastore.v1.EntityResult.Builder.class); } /** - * - * *
    * Specifies what data the 'entity' field contains.
    * A `ResultType` is either implied (for example, in `LookupResponse.missing`
@@ -159,10 +134,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.datastore.v1.EntityResult.ResultType}
    */
-  public enum ResultType implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ResultType
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified. This value is never used.
      * 
@@ -171,8 +145,6 @@ public enum ResultType implements com.google.protobuf.ProtocolMessageEnum { */ RESULT_TYPE_UNSPECIFIED(0), /** - * - * *
      * The key and properties.
      * 
@@ -181,8 +153,6 @@ public enum ResultType implements com.google.protobuf.ProtocolMessageEnum { */ FULL(1), /** - * - * *
      * A projected subset of properties. The entity may have no key.
      * 
@@ -191,8 +161,6 @@ public enum ResultType implements com.google.protobuf.ProtocolMessageEnum { */ PROJECTION(2), /** - * - * *
      * Only the key.
      * 
@@ -204,8 +172,6 @@ public enum ResultType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified. This value is never used.
      * 
@@ -214,8 +180,6 @@ public enum ResultType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESULT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The key and properties.
      * 
@@ -224,8 +188,6 @@ public enum ResultType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FULL_VALUE = 1; /** - * - * *
      * A projected subset of properties. The entity may have no key.
      * 
@@ -234,8 +196,6 @@ public enum ResultType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROJECTION_VALUE = 2; /** - * - * *
      * Only the key.
      * 
@@ -244,6 +204,7 @@ public enum ResultType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KEY_ONLY_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -268,51 +229,50 @@ public static ResultType valueOf(int value) { */ public static ResultType forNumber(int value) { switch (value) { - case 0: - return RESULT_TYPE_UNSPECIFIED; - case 1: - return FULL; - case 2: - return PROJECTION; - case 3: - return KEY_ONLY; - default: - return null; + case 0: return RESULT_TYPE_UNSPECIFIED; + case 1: return FULL; + case 2: return PROJECTION; + case 3: return KEY_ONLY; + 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< + ResultType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultType findValueByNumber(int number) { + return ResultType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultType findValueByNumber(int number) { - return ResultType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.v1.EntityResult.getDescriptor().getEnumTypes().get(0); } private static final ResultType[] VALUES = values(); - public static ResultType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultType 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; @@ -332,14 +292,11 @@ private ResultType(int value) { public static final int ENTITY_FIELD_NUMBER = 1; private com.google.datastore.v1.Entity entity_; /** - * - * *
    * The resulting entity.
    * 
* * .google.datastore.v1.Entity entity = 1; - * * @return Whether the entity field is set. */ @java.lang.Override @@ -347,14 +304,11 @@ public boolean hasEntity() { return entity_ != null; } /** - * - * *
    * The resulting entity.
    * 
* * .google.datastore.v1.Entity entity = 1; - * * @return The entity. */ @java.lang.Override @@ -362,8 +316,6 @@ public com.google.datastore.v1.Entity getEntity() { return entity_ == null ? com.google.datastore.v1.Entity.getDefaultInstance() : entity_; } /** - * - * *
    * The resulting entity.
    * 
@@ -378,8 +330,6 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() { public static final int VERSION_FIELD_NUMBER = 4; private long version_; /** - * - * *
    * The version of the entity, a strictly positive number that monotonically
    * increases with changes to the entity.
@@ -391,7 +341,6 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() {
    * 
* * int64 version = 4; - * * @return The version. */ @java.lang.Override @@ -402,8 +351,6 @@ public long getVersion() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -412,7 +359,6 @@ public long getVersion() {
    * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -420,8 +366,6 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -430,7 +374,6 @@ public boolean hasUpdateTime() {
    * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return The updateTime. */ @java.lang.Override @@ -438,8 +381,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -457,15 +398,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int CURSOR_FIELD_NUMBER = 3;
   private com.google.protobuf.ByteString cursor_;
   /**
-   *
-   *
    * 
    * A cursor that points to the position after the result entity.
    * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
    * 
* * bytes cursor = 3; - * * @return The cursor. */ @java.lang.Override @@ -474,7 +412,6 @@ public com.google.protobuf.ByteString getCursor() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -486,7 +423,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (entity_ != null) { output.writeMessage(1, getEntity()); } @@ -509,16 +447,20 @@ public int getSerializedSize() { size = 0; if (entity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEntity()); } if (!cursor_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, cursor_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, cursor_); } if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, version_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -528,7 +470,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.EntityResult)) { return super.equals(obj); @@ -537,14 +479,18 @@ public boolean equals(final java.lang.Object obj) { if (hasEntity() != other.hasEntity()) return false; if (hasEntity()) { - if (!getEntity().equals(other.getEntity())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; } - if (getVersion() != other.getVersion()) return false; + if (getVersion() + != other.getVersion()) 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 (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -561,7 +507,8 @@ public int hashCode() { hash = (53 * hash) + getEntity().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersion()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -573,126 +520,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.EntityResult parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.EntityResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.EntityResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.v1.EntityResult parseFrom(com.google.protobuf.ByteString data) + public static com.google.datastore.v1.EntityResult parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.EntityResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.EntityResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.EntityResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.EntityResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.EntityResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.EntityResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.EntityResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.EntityResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.EntityResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.EntityResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 result of fetching an entity from Datastore.
    * 
* * Protobuf type {@code google.datastore.v1.EntityResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.EntityResult) com.google.datastore.v1.EntityResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_EntityResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_EntityResult_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.EntityResult.class, - com.google.datastore.v1.EntityResult.Builder.class); + com.google.datastore.v1.EntityResult.class, com.google.datastore.v1.EntityResult.Builder.class); } // Construct using com.google.datastore.v1.EntityResult.newBuilder() @@ -700,15 +639,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -732,9 +672,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_EntityResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_descriptor; } @java.lang.Override @@ -774,39 +714,38 @@ public com.google.datastore.v1.EntityResult 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.datastore.v1.EntityResult) { - return mergeFrom((com.google.datastore.v1.EntityResult) other); + return mergeFrom((com.google.datastore.v1.EntityResult)other); } else { super.mergeFrom(other); return this; @@ -858,33 +797,24 @@ public Builder mergeFrom( private com.google.datastore.v1.Entity entity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, - com.google.datastore.v1.Entity.Builder, - com.google.datastore.v1.EntityOrBuilder> - entityBuilder_; + com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> entityBuilder_; /** - * - * *
      * The resulting entity.
      * 
* * .google.datastore.v1.Entity entity = 1; - * * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; } /** - * - * *
      * The resulting entity.
      * 
* * .google.datastore.v1.Entity entity = 1; - * * @return The entity. */ public com.google.datastore.v1.Entity getEntity() { @@ -895,8 +825,6 @@ public com.google.datastore.v1.Entity getEntity() { } } /** - * - * *
      * The resulting entity.
      * 
@@ -917,15 +845,14 @@ public Builder setEntity(com.google.datastore.v1.Entity value) { return this; } /** - * - * *
      * The resulting entity.
      * 
* * .google.datastore.v1.Entity entity = 1; */ - public Builder setEntity(com.google.datastore.v1.Entity.Builder builderForValue) { + public Builder setEntity( + com.google.datastore.v1.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); onChanged(); @@ -936,8 +863,6 @@ public Builder setEntity(com.google.datastore.v1.Entity.Builder builderForValue) return this; } /** - * - * *
      * The resulting entity.
      * 
@@ -948,7 +873,7 @@ public Builder mergeEntity(com.google.datastore.v1.Entity value) { if (entityBuilder_ == null) { if (entity_ != null) { entity_ = - com.google.datastore.v1.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); } else { entity_ = value; } @@ -960,8 +885,6 @@ public Builder mergeEntity(com.google.datastore.v1.Entity value) { return this; } /** - * - * *
      * The resulting entity.
      * 
@@ -980,8 +903,6 @@ public Builder clearEntity() { return this; } /** - * - * *
      * The resulting entity.
      * 
@@ -989,13 +910,11 @@ public Builder clearEntity() { * .google.datastore.v1.Entity entity = 1; */ public com.google.datastore.v1.Entity.Builder getEntityBuilder() { - + onChanged(); return getEntityFieldBuilder().getBuilder(); } /** - * - * *
      * The resulting entity.
      * 
@@ -1006,12 +925,11 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() { if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_ == null ? com.google.datastore.v1.Entity.getDefaultInstance() : entity_; + return entity_ == null ? + com.google.datastore.v1.Entity.getDefaultInstance() : entity_; } } /** - * - * *
      * The resulting entity.
      * 
@@ -1019,26 +937,21 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() { * .google.datastore.v1.Entity entity = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, - com.google.datastore.v1.Entity.Builder, - com.google.datastore.v1.EntityOrBuilder> + com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { - entityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, - com.google.datastore.v1.Entity.Builder, - com.google.datastore.v1.EntityOrBuilder>( - getEntity(), getParentForChildren(), isClean()); + entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>( + getEntity(), + getParentForChildren(), + isClean()); entity_ = null; } return entityBuilder_; } - private long version_; + private long version_ ; /** - * - * *
      * The version of the entity, a strictly positive number that monotonically
      * increases with changes to the entity.
@@ -1050,7 +963,6 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() {
      * 
* * int64 version = 4; - * * @return The version. */ @java.lang.Override @@ -1058,8 +970,6 @@ public long getVersion() { return version_; } /** - * - * *
      * The version of the entity, a strictly positive number that monotonically
      * increases with changes to the entity.
@@ -1071,19 +981,16 @@ public long getVersion() {
      * 
* * int64 version = 4; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { - + version_ = value; onChanged(); return this; } /** - * - * *
      * The version of the entity, a strictly positive number that monotonically
      * increases with changes to the entity.
@@ -1095,11 +1002,10 @@ public Builder setVersion(long value) {
      * 
* * int64 version = 4; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0L; onChanged(); return this; @@ -1107,13 +1013,8 @@ public Builder clearVersion() { 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 time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1122,15 +1023,12 @@ public Builder clearVersion() {
      * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1139,21 +1037,16 @@ public boolean hasUpdateTime() {
      * 
* * .google.protobuf.Timestamp update_time = 5; - * * @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 time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1177,8 +1070,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1188,7 +1079,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 5;
      */
-    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();
@@ -1199,8 +1091,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1214,7 +1104,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;
         }
@@ -1226,8 +1116,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1249,8 +1137,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1261,13 +1147,11 @@ public Builder clearUpdateTime() {
      * .google.protobuf.Timestamp update_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-
+      
       onChanged();
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1281,14 +1165,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 time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1299,17 +1180,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 5;
      */
     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_;
@@ -1317,15 +1195,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
 
     private com.google.protobuf.ByteString cursor_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * A cursor that points to the position after the result entity.
      * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
      * 
* * bytes cursor = 3; - * * @return The cursor. */ @java.lang.Override @@ -1333,48 +1208,42 @@ public com.google.protobuf.ByteString getCursor() { return cursor_; } /** - * - * *
      * A cursor that points to the position after the result entity.
      * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
      * 
* * bytes cursor = 3; - * * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cursor_ = value; onChanged(); return this; } /** - * - * *
      * A cursor that points to the position after the result entity.
      * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
      * 
* * bytes cursor = 3; - * * @return This builder for chaining. */ public Builder clearCursor() { - + cursor_ = getDefaultInstance().getCursor(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1384,12 +1253,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.EntityResult) } // @@protoc_insertion_point(class_scope:google.datastore.v1.EntityResult) private static final com.google.datastore.v1.EntityResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.EntityResult(); } @@ -1398,16 +1267,16 @@ public static com.google.datastore.v1.EntityResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntityResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1422,4 +1291,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.EntityResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java similarity index 79% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java index 6be5b8e1a..3520e5562 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface EntityResultOrBuilder - extends +public interface EntityResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.EntityResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resulting entity.
    * 
* * .google.datastore.v1.Entity entity = 1; - * * @return Whether the entity field is set. */ boolean hasEntity(); /** - * - * *
    * The resulting entity.
    * 
* * .google.datastore.v1.Entity entity = 1; - * * @return The entity. */ com.google.datastore.v1.Entity getEntity(); /** - * - * *
    * The resulting entity.
    * 
@@ -59,8 +35,6 @@ public interface EntityResultOrBuilder com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder(); /** - * - * *
    * The version of the entity, a strictly positive number that monotonically
    * increases with changes to the entity.
@@ -72,14 +46,11 @@ public interface EntityResultOrBuilder
    * 
* * int64 version = 4; - * * @return The version. */ long getVersion(); /** - * - * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -88,13 +59,10 @@ public interface EntityResultOrBuilder
    * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -103,13 +71,10 @@ public interface EntityResultOrBuilder
    * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -122,15 +87,12 @@ public interface EntityResultOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * A cursor that points to the position after the result entity.
    * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
    * 
* * bytes cursor = 3; - * * @return The cursor. */ com.google.protobuf.ByteString getCursor(); diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java similarity index 71% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java index 9d6a72de9..f69ef5481 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** - * - * *
  * A holder for any type of filter.
  * 
* * Protobuf type {@code google.datastore.v1.Filter} */ -public final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.Filter) FilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Filter() {} + private Filter() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Filter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Filter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,41 @@ private Filter( case 0: done = true; break; - case 10: - { - com.google.datastore.v1.CompositeFilter.Builder subBuilder = null; - if (filterTypeCase_ == 1) { - subBuilder = ((com.google.datastore.v1.CompositeFilter) filterType_).toBuilder(); - } - filterType_ = - input.readMessage( - com.google.datastore.v1.CompositeFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.CompositeFilter) filterType_); - filterType_ = subBuilder.buildPartial(); - } - filterTypeCase_ = 1; - break; + case 10: { + com.google.datastore.v1.CompositeFilter.Builder subBuilder = null; + if (filterTypeCase_ == 1) { + subBuilder = ((com.google.datastore.v1.CompositeFilter) filterType_).toBuilder(); } - case 18: - { - com.google.datastore.v1.PropertyFilter.Builder subBuilder = null; - if (filterTypeCase_ == 2) { - subBuilder = ((com.google.datastore.v1.PropertyFilter) filterType_).toBuilder(); - } - filterType_ = - input.readMessage( - com.google.datastore.v1.PropertyFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.PropertyFilter) filterType_); - filterType_ = subBuilder.buildPartial(); - } - filterTypeCase_ = 2; - break; + filterType_ = + input.readMessage(com.google.datastore.v1.CompositeFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.CompositeFilter) filterType_); + filterType_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filterTypeCase_ = 1; + break; + } + case 18: { + com.google.datastore.v1.PropertyFilter.Builder subBuilder = null; + if (filterTypeCase_ == 2) { + subBuilder = ((com.google.datastore.v1.PropertyFilter) filterType_).toBuilder(); + } + filterType_ = + input.readMessage(com.google.datastore.v1.PropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.PropertyFilter) filterType_); + filterType_ = subBuilder.buildPartial(); } + filterTypeCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,38 +94,35 @@ private Filter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Filter_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Filter.class, com.google.datastore.v1.Filter.Builder.class); } private int filterTypeCase_ = 0; private java.lang.Object filterType_; - public enum FilterTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { COMPOSITE_FILTER(1), PROPERTY_FILTER(2), FILTERTYPE_NOT_SET(0); private final int value; - private FilterTypeCase(int value) { this.value = value; } @@ -161,36 +138,30 @@ public static FilterTypeCase valueOf(int value) { public static FilterTypeCase forNumber(int value) { switch (value) { - case 1: - return COMPOSITE_FILTER; - case 2: - return PROPERTY_FILTER; - case 0: - return FILTERTYPE_NOT_SET; - default: - return null; + case 1: return COMPOSITE_FILTER; + case 2: return PROPERTY_FILTER; + case 0: return FILTERTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FilterTypeCase getFilterTypeCase() { - return FilterTypeCase.forNumber(filterTypeCase_); + public FilterTypeCase + getFilterTypeCase() { + return FilterTypeCase.forNumber( + filterTypeCase_); } public static final int COMPOSITE_FILTER_FIELD_NUMBER = 1; /** - * - * *
    * A composite filter.
    * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; - * * @return Whether the compositeFilter field is set. */ @java.lang.Override @@ -198,26 +169,21 @@ public boolean hasCompositeFilter() { return filterTypeCase_ == 1; } /** - * - * *
    * A composite filter.
    * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; - * * @return The compositeFilter. */ @java.lang.Override public com.google.datastore.v1.CompositeFilter getCompositeFilter() { if (filterTypeCase_ == 1) { - return (com.google.datastore.v1.CompositeFilter) filterType_; + return (com.google.datastore.v1.CompositeFilter) filterType_; } return com.google.datastore.v1.CompositeFilter.getDefaultInstance(); } /** - * - * *
    * A composite filter.
    * 
@@ -227,21 +193,18 @@ public com.google.datastore.v1.CompositeFilter getCompositeFilter() { @java.lang.Override public com.google.datastore.v1.CompositeFilterOrBuilder getCompositeFilterOrBuilder() { if (filterTypeCase_ == 1) { - return (com.google.datastore.v1.CompositeFilter) filterType_; + return (com.google.datastore.v1.CompositeFilter) filterType_; } return com.google.datastore.v1.CompositeFilter.getDefaultInstance(); } public static final int PROPERTY_FILTER_FIELD_NUMBER = 2; /** - * - * *
    * A filter on a property.
    * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; - * * @return Whether the propertyFilter field is set. */ @java.lang.Override @@ -249,26 +212,21 @@ public boolean hasPropertyFilter() { return filterTypeCase_ == 2; } /** - * - * *
    * A filter on a property.
    * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; - * * @return The propertyFilter. */ @java.lang.Override public com.google.datastore.v1.PropertyFilter getPropertyFilter() { if (filterTypeCase_ == 2) { - return (com.google.datastore.v1.PropertyFilter) filterType_; + return (com.google.datastore.v1.PropertyFilter) filterType_; } return com.google.datastore.v1.PropertyFilter.getDefaultInstance(); } /** - * - * *
    * A filter on a property.
    * 
@@ -278,13 +236,12 @@ public com.google.datastore.v1.PropertyFilter getPropertyFilter() { @java.lang.Override public com.google.datastore.v1.PropertyFilterOrBuilder getPropertyFilterOrBuilder() { if (filterTypeCase_ == 2) { - return (com.google.datastore.v1.PropertyFilter) filterType_; + return (com.google.datastore.v1.PropertyFilter) filterType_; } return com.google.datastore.v1.PropertyFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -296,7 +253,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (filterTypeCase_ == 1) { output.writeMessage(1, (com.google.datastore.v1.CompositeFilter) filterType_); } @@ -313,14 +271,12 @@ public int getSerializedSize() { size = 0; if (filterTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.datastore.v1.CompositeFilter) filterType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.datastore.v1.CompositeFilter) filterType_); } if (filterTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.datastore.v1.PropertyFilter) filterType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.datastore.v1.PropertyFilter) filterType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -330,7 +286,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.Filter)) { return super.equals(obj); @@ -340,10 +296,12 @@ public boolean equals(final java.lang.Object obj) { if (!getFilterTypeCase().equals(other.getFilterTypeCase())) return false; switch (filterTypeCase_) { case 1: - if (!getCompositeFilter().equals(other.getCompositeFilter())) return false; + if (!getCompositeFilter() + .equals(other.getCompositeFilter())) return false; break; case 2: - if (!getPropertyFilter().equals(other.getPropertyFilter())) return false; + if (!getPropertyFilter() + .equals(other.getPropertyFilter())) return false; break; case 0: default: @@ -376,123 +334,116 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.Filter parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Filter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.v1.Filter parseFrom(com.google.protobuf.ByteString data) + public static com.google.datastore.v1.Filter parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Filter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Filter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Filter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.Filter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.Filter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.Filter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.Filter parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.datastore.v1.Filter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.Filter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.Filter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A holder for any type of filter.
    * 
* * Protobuf type {@code google.datastore.v1.Filter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.Filter) com.google.datastore.v1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Filter_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Filter.class, com.google.datastore.v1.Filter.Builder.class); } @@ -502,15 +453,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_descriptor; } @java.lang.Override @@ -565,39 +517,38 @@ public com.google.datastore.v1.Filter 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.datastore.v1.Filter) { - return mergeFrom((com.google.datastore.v1.Filter) other); + return mergeFrom((com.google.datastore.v1.Filter)other); } else { super.mergeFrom(other); return this; @@ -607,20 +558,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.datastore.v1.Filter other) { if (other == com.google.datastore.v1.Filter.getDefaultInstance()) return this; switch (other.getFilterTypeCase()) { - case COMPOSITE_FILTER: - { - mergeCompositeFilter(other.getCompositeFilter()); - break; - } - case PROPERTY_FILTER: - { - mergePropertyFilter(other.getPropertyFilter()); - break; - } - case FILTERTYPE_NOT_SET: - { - break; - } + case COMPOSITE_FILTER: { + mergeCompositeFilter(other.getCompositeFilter()); + break; + } + case PROPERTY_FILTER: { + mergePropertyFilter(other.getPropertyFilter()); + break; + } + case FILTERTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -650,12 +598,12 @@ public Builder mergeFrom( } return this; } - private int filterTypeCase_ = 0; private java.lang.Object filterType_; - - public FilterTypeCase getFilterTypeCase() { - return FilterTypeCase.forNumber(filterTypeCase_); + public FilterTypeCase + getFilterTypeCase() { + return FilterTypeCase.forNumber( + filterTypeCase_); } public Builder clearFilterType() { @@ -665,20 +613,15 @@ public Builder clearFilterType() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.CompositeFilter, - com.google.datastore.v1.CompositeFilter.Builder, - com.google.datastore.v1.CompositeFilterOrBuilder> - compositeFilterBuilder_; + com.google.datastore.v1.CompositeFilter, com.google.datastore.v1.CompositeFilter.Builder, com.google.datastore.v1.CompositeFilterOrBuilder> compositeFilterBuilder_; /** - * - * *
      * A composite filter.
      * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; - * * @return Whether the compositeFilter field is set. */ @java.lang.Override @@ -686,14 +629,11 @@ public boolean hasCompositeFilter() { return filterTypeCase_ == 1; } /** - * - * *
      * A composite filter.
      * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; - * * @return The compositeFilter. */ @java.lang.Override @@ -711,8 +651,6 @@ public com.google.datastore.v1.CompositeFilter getCompositeFilter() { } } /** - * - * *
      * A composite filter.
      * 
@@ -733,8 +671,6 @@ public Builder setCompositeFilter(com.google.datastore.v1.CompositeFilter value) return this; } /** - * - * *
      * A composite filter.
      * 
@@ -753,8 +689,6 @@ public Builder setCompositeFilter( return this; } /** - * - * *
      * A composite filter.
      * 
@@ -763,13 +697,10 @@ public Builder setCompositeFilter( */ public Builder mergeCompositeFilter(com.google.datastore.v1.CompositeFilter value) { if (compositeFilterBuilder_ == null) { - if (filterTypeCase_ == 1 - && filterType_ != com.google.datastore.v1.CompositeFilter.getDefaultInstance()) { - filterType_ = - com.google.datastore.v1.CompositeFilter.newBuilder( - (com.google.datastore.v1.CompositeFilter) filterType_) - .mergeFrom(value) - .buildPartial(); + if (filterTypeCase_ == 1 && + filterType_ != com.google.datastore.v1.CompositeFilter.getDefaultInstance()) { + filterType_ = com.google.datastore.v1.CompositeFilter.newBuilder((com.google.datastore.v1.CompositeFilter) filterType_) + .mergeFrom(value).buildPartial(); } else { filterType_ = value; } @@ -785,8 +716,6 @@ public Builder mergeCompositeFilter(com.google.datastore.v1.CompositeFilter valu return this; } /** - * - * *
      * A composite filter.
      * 
@@ -810,8 +739,6 @@ public Builder clearCompositeFilter() { return this; } /** - * - * *
      * A composite filter.
      * 
@@ -822,8 +749,6 @@ public com.google.datastore.v1.CompositeFilter.Builder getCompositeFilterBuilder return getCompositeFilterFieldBuilder().getBuilder(); } /** - * - * *
      * A composite filter.
      * 
@@ -842,8 +767,6 @@ public com.google.datastore.v1.CompositeFilterOrBuilder getCompositeFilterOrBuil } } /** - * - * *
      * A composite filter.
      * 
@@ -851,44 +774,32 @@ public com.google.datastore.v1.CompositeFilterOrBuilder getCompositeFilterOrBuil * .google.datastore.v1.CompositeFilter composite_filter = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.CompositeFilter, - com.google.datastore.v1.CompositeFilter.Builder, - com.google.datastore.v1.CompositeFilterOrBuilder> + com.google.datastore.v1.CompositeFilter, com.google.datastore.v1.CompositeFilter.Builder, com.google.datastore.v1.CompositeFilterOrBuilder> getCompositeFilterFieldBuilder() { if (compositeFilterBuilder_ == null) { if (!(filterTypeCase_ == 1)) { filterType_ = com.google.datastore.v1.CompositeFilter.getDefaultInstance(); } - compositeFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.CompositeFilter, - com.google.datastore.v1.CompositeFilter.Builder, - com.google.datastore.v1.CompositeFilterOrBuilder>( + compositeFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.CompositeFilter, com.google.datastore.v1.CompositeFilter.Builder, com.google.datastore.v1.CompositeFilterOrBuilder>( (com.google.datastore.v1.CompositeFilter) filterType_, getParentForChildren(), isClean()); filterType_ = null; } filterTypeCase_ = 1; - onChanged(); - ; + onChanged();; return compositeFilterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyFilter, - com.google.datastore.v1.PropertyFilter.Builder, - com.google.datastore.v1.PropertyFilterOrBuilder> - propertyFilterBuilder_; + com.google.datastore.v1.PropertyFilter, com.google.datastore.v1.PropertyFilter.Builder, com.google.datastore.v1.PropertyFilterOrBuilder> propertyFilterBuilder_; /** - * - * *
      * A filter on a property.
      * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; - * * @return Whether the propertyFilter field is set. */ @java.lang.Override @@ -896,14 +807,11 @@ public boolean hasPropertyFilter() { return filterTypeCase_ == 2; } /** - * - * *
      * A filter on a property.
      * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; - * * @return The propertyFilter. */ @java.lang.Override @@ -921,8 +829,6 @@ public com.google.datastore.v1.PropertyFilter getPropertyFilter() { } } /** - * - * *
      * A filter on a property.
      * 
@@ -943,8 +849,6 @@ public Builder setPropertyFilter(com.google.datastore.v1.PropertyFilter value) { return this; } /** - * - * *
      * A filter on a property.
      * 
@@ -963,8 +867,6 @@ public Builder setPropertyFilter( return this; } /** - * - * *
      * A filter on a property.
      * 
@@ -973,13 +875,10 @@ public Builder setPropertyFilter( */ public Builder mergePropertyFilter(com.google.datastore.v1.PropertyFilter value) { if (propertyFilterBuilder_ == null) { - if (filterTypeCase_ == 2 - && filterType_ != com.google.datastore.v1.PropertyFilter.getDefaultInstance()) { - filterType_ = - com.google.datastore.v1.PropertyFilter.newBuilder( - (com.google.datastore.v1.PropertyFilter) filterType_) - .mergeFrom(value) - .buildPartial(); + if (filterTypeCase_ == 2 && + filterType_ != com.google.datastore.v1.PropertyFilter.getDefaultInstance()) { + filterType_ = com.google.datastore.v1.PropertyFilter.newBuilder((com.google.datastore.v1.PropertyFilter) filterType_) + .mergeFrom(value).buildPartial(); } else { filterType_ = value; } @@ -995,8 +894,6 @@ public Builder mergePropertyFilter(com.google.datastore.v1.PropertyFilter value) return this; } /** - * - * *
      * A filter on a property.
      * 
@@ -1020,8 +917,6 @@ public Builder clearPropertyFilter() { return this; } /** - * - * *
      * A filter on a property.
      * 
@@ -1032,8 +927,6 @@ public com.google.datastore.v1.PropertyFilter.Builder getPropertyFilterBuilder() return getPropertyFilterFieldBuilder().getBuilder(); } /** - * - * *
      * A filter on a property.
      * 
@@ -1052,8 +945,6 @@ public com.google.datastore.v1.PropertyFilterOrBuilder getPropertyFilterOrBuilde } } /** - * - * *
      * A filter on a property.
      * 
@@ -1061,32 +952,26 @@ public com.google.datastore.v1.PropertyFilterOrBuilder getPropertyFilterOrBuilde * .google.datastore.v1.PropertyFilter property_filter = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyFilter, - com.google.datastore.v1.PropertyFilter.Builder, - com.google.datastore.v1.PropertyFilterOrBuilder> + com.google.datastore.v1.PropertyFilter, com.google.datastore.v1.PropertyFilter.Builder, com.google.datastore.v1.PropertyFilterOrBuilder> getPropertyFilterFieldBuilder() { if (propertyFilterBuilder_ == null) { if (!(filterTypeCase_ == 2)) { filterType_ = com.google.datastore.v1.PropertyFilter.getDefaultInstance(); } - propertyFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyFilter, - com.google.datastore.v1.PropertyFilter.Builder, - com.google.datastore.v1.PropertyFilterOrBuilder>( + propertyFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.PropertyFilter, com.google.datastore.v1.PropertyFilter.Builder, com.google.datastore.v1.PropertyFilterOrBuilder>( (com.google.datastore.v1.PropertyFilter) filterType_, getParentForChildren(), isClean()); filterType_ = null; } filterTypeCase_ = 2; - onChanged(); - ; + onChanged();; return propertyFilterBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1096,12 +981,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.Filter) } // @@protoc_insertion_point(class_scope:google.datastore.v1.Filter) private static final com.google.datastore.v1.Filter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.Filter(); } @@ -1110,16 +995,16 @@ public static com.google.datastore.v1.Filter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Filter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Filter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1134,4 +1019,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java similarity index 70% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java index 5f51396a7..0f7f0d477 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface FilterOrBuilder - extends +public interface FilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.Filter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A composite filter.
    * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; - * * @return Whether the compositeFilter field is set. */ boolean hasCompositeFilter(); /** - * - * *
    * A composite filter.
    * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; - * * @return The compositeFilter. */ com.google.datastore.v1.CompositeFilter getCompositeFilter(); /** - * - * *
    * A composite filter.
    * 
@@ -59,32 +35,24 @@ public interface FilterOrBuilder com.google.datastore.v1.CompositeFilterOrBuilder getCompositeFilterOrBuilder(); /** - * - * *
    * A filter on a property.
    * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; - * * @return Whether the propertyFilter field is set. */ boolean hasPropertyFilter(); /** - * - * *
    * A filter on a property.
    * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; - * * @return The propertyFilter. */ com.google.datastore.v1.PropertyFilter getPropertyFilter(); /** - * - * *
    * A filter on a property.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java similarity index 75% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java index e2026ea3d..e9d9c8fa2 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** - * - * *
  * A [GQL
  * query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.datastore.v1.GqlQuery}
  */
-public final class GqlQuery extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GqlQuery extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.GqlQuery)
     GqlQueryOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GqlQuery.newBuilder() to construct.
   private GqlQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GqlQuery() {
     queryString_ = "";
     positionalBindings_ = java.util.Collections.emptyList();
@@ -45,15 +27,16 @@ private GqlQuery() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GqlQuery();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GqlQuery(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,56 +56,46 @@ private GqlQuery(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              queryString_ = s;
-              break;
-            }
-          case 16:
-            {
-              allowLiterals_ = input.readBool();
-              break;
-            }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                positionalBindings_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              positionalBindings_.add(
-                  input.readMessage(
-                      com.google.datastore.v1.GqlQueryParameter.parser(), extensionRegistry));
-              break;
+            queryString_ = s;
+            break;
+          }
+          case 16: {
+
+            allowLiterals_ = input.readBool();
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              positionalBindings_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                namedBindings_ =
-                    com.google.protobuf.MapField.newMapField(
-                        NamedBindingsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry<
-                      java.lang.String, com.google.datastore.v1.GqlQueryParameter>
-                  namedBindings__ =
-                      input.readMessage(
-                          NamedBindingsDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              namedBindings_
-                  .getMutableMap()
-                  .put(namedBindings__.getKey(), namedBindings__.getValue());
-              break;
+            positionalBindings_.add(
+                input.readMessage(com.google.datastore.v1.GqlQueryParameter.parser(), extensionRegistry));
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              namedBindings_ = com.google.protobuf.MapField.newMapField(
+                  NamedBindingsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            namedBindings__ = input.readMessage(
+                NamedBindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            namedBindings_.getMutableMap().put(
+                namedBindings__.getKey(), namedBindings__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -130,7 +103,8 @@ private GqlQuery(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         positionalBindings_ = java.util.Collections.unmodifiableList(positionalBindings_);
@@ -139,28 +113,27 @@ private GqlQuery(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.v1.QueryProto
-        .internal_static_google_datastore_v1_GqlQuery_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetNamedBindings();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.QueryProto
-        .internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable
+    return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.datastore.v1.GqlQuery.class, com.google.datastore.v1.GqlQuery.Builder.class);
   }
@@ -168,15 +141,12 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
   public static final int QUERY_STRING_FIELD_NUMBER = 1;
   private volatile java.lang.Object queryString_;
   /**
-   *
-   *
    * 
    * A string of the format described
    * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    * 
* * string query_string = 1; - * * @return The queryString. */ @java.lang.Override @@ -185,30 +155,30 @@ public java.lang.String getQueryString() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryString_ = s; return s; } } /** - * - * *
    * A string of the format described
    * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    * 
* * string query_string = 1; - * * @return The bytes for queryString. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryStringBytes() { + public com.google.protobuf.ByteString + getQueryStringBytes() { java.lang.Object ref = queryString_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); queryString_ = b; return b; } else { @@ -219,8 +189,6 @@ public com.google.protobuf.ByteString getQueryStringBytes() { public static final int ALLOW_LITERALS_FIELD_NUMBER = 2; private boolean allowLiterals_; /** - * - * *
    * When false, the query string must not contain any literals and instead must
    * bind all values. For example,
@@ -229,7 +197,6 @@ public com.google.protobuf.ByteString getQueryStringBytes() {
    * 
* * bool allow_literals = 2; - * * @return The allowLiterals. */ @java.lang.Override @@ -238,26 +205,21 @@ public boolean getAllowLiterals() { } public static final int NAMED_BINDINGS_FIELD_NUMBER = 5; - private static final class NamedBindingsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.datastore.v1.GqlQueryParameter> - defaultEntry = + java.lang.String, com.google.datastore.v1.GqlQueryParameter> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()); + .newDefaultInstance( + com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()); } - - private com.google.protobuf.MapField - namedBindings_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.datastore.v1.GqlQueryParameter> namedBindings_; private com.google.protobuf.MapField - internalGetNamedBindings() { + internalGetNamedBindings() { if (namedBindings_ == null) { return com.google.protobuf.MapField.emptyMapField( NamedBindingsDefaultEntryHolder.defaultEntry); @@ -269,8 +231,6 @@ public int getNamedBindingsCount() { return internalGetNamedBindings().getMap().size(); } /** - * - * *
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -280,23 +240,22 @@ public int getNamedBindingsCount() {
    *
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
+
   @java.lang.Override
-  public boolean containsNamedBindings(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsNamedBindings(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetNamedBindings().getMap().containsKey(key);
   }
-  /** Use {@link #getNamedBindingsMap()} instead. */
+  /**
+   * Use {@link #getNamedBindingsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map
-      getNamedBindings() {
+  public java.util.Map getNamedBindings() {
     return getNamedBindingsMap();
   }
   /**
-   *
-   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -307,13 +266,11 @@ public boolean containsNamedBindings(java.lang.String key) {
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
   @java.lang.Override
-  public java.util.Map
-      getNamedBindingsMap() {
+
+  public java.util.Map getNamedBindingsMap() {
     return internalGetNamedBindings().getMap();
   }
   /**
-   *
-   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -324,18 +281,16 @@ public boolean containsNamedBindings(java.lang.String key) {
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
   @java.lang.Override
+
   public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
-      java.lang.String key, com.google.datastore.v1.GqlQueryParameter defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      com.google.datastore.v1.GqlQueryParameter defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetNamedBindings().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -346,10 +301,10 @@ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
   @java.lang.Override
-  public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetNamedBindings().getMap();
     if (!map.containsKey(key)) {
@@ -361,8 +316,6 @@ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.la
   public static final int POSITIONAL_BINDINGS_FIELD_NUMBER = 4;
   private java.util.List positionalBindings_;
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -377,8 +330,6 @@ public java.util.List getPositionalBi
     return positionalBindings_;
   }
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -389,13 +340,11 @@ public java.util.List getPositionalBi
    * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPositionalBindingsOrBuilderList() {
     return positionalBindings_;
   }
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -410,8 +359,6 @@ public int getPositionalBindingsCount() {
     return positionalBindings_.size();
   }
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -426,8 +373,6 @@ public com.google.datastore.v1.GqlQueryParameter getPositionalBindings(int index
     return positionalBindings_.get(index);
   }
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -444,7 +389,6 @@ public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsO
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -456,7 +400,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryString_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryString_);
     }
@@ -466,8 +411,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < positionalBindings_.size(); i++) {
       output.writeMessage(4, positionalBindings_.get(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetNamedBindings(), NamedBindingsDefaultEntryHolder.defaultEntry, 5);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetNamedBindings(),
+        NamedBindingsDefaultEntryHolder.defaultEntry,
+        5);
     unknownFields.writeTo(output);
   }
 
@@ -481,22 +430,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryString_);
     }
     if (allowLiterals_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowLiterals_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(2, allowLiterals_);
     }
     for (int i = 0; i < positionalBindings_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(4, positionalBindings_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, positionalBindings_.get(i));
     }
-    for (java.util.Map.Entry entry :
-        internalGetNamedBindings().getMap().entrySet()) {
+    for (java.util.Map.Entry entry
+         : internalGetNamedBindings().getMap().entrySet()) {
       com.google.protobuf.MapEntry
-          namedBindings__ =
-              NamedBindingsDefaultEntryHolder.defaultEntry
-                  .newBuilderForType()
-                  .setKey(entry.getKey())
-                  .setValue(entry.getValue())
-                  .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, namedBindings__);
+      namedBindings__ = NamedBindingsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, namedBindings__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -506,17 +455,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.datastore.v1.GqlQuery)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.GqlQuery other = (com.google.datastore.v1.GqlQuery) obj;
 
-    if (!getQueryString().equals(other.getQueryString())) return false;
-    if (getAllowLiterals() != other.getAllowLiterals()) return false;
-    if (!internalGetNamedBindings().equals(other.internalGetNamedBindings())) return false;
-    if (!getPositionalBindingsList().equals(other.getPositionalBindingsList())) return false;
+    if (!getQueryString()
+        .equals(other.getQueryString())) return false;
+    if (getAllowLiterals()
+        != other.getAllowLiterals()) return false;
+    if (!internalGetNamedBindings().equals(
+        other.internalGetNamedBindings())) return false;
+    if (!getPositionalBindingsList()
+        .equals(other.getPositionalBindingsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -531,7 +484,8 @@ public int hashCode() {
     hash = (37 * hash) + QUERY_STRING_FIELD_NUMBER;
     hash = (53 * hash) + getQueryString().hashCode();
     hash = (37 * hash) + ALLOW_LITERALS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowLiterals());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getAllowLiterals());
     if (!internalGetNamedBindings().getMap().isEmpty()) {
       hash = (37 * hash) + NAMED_BINDINGS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetNamedBindings().hashCode();
@@ -545,103 +499,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.GqlQuery parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.GqlQuery parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.GqlQuery parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.GqlQuery parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.datastore.v1.GqlQuery parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.GqlQuery parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.GqlQuery parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.GqlQuery parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.GqlQuery parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.GqlQuery parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.GqlQuery parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.GqlQuery parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.GqlQuery parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.GqlQuery parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.GqlQuery prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A [GQL
    * query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
@@ -649,43 +597,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.v1.GqlQuery}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.GqlQuery)
       com.google.datastore.v1.GqlQueryOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.v1.QueryProto
-          .internal_static_google_datastore_v1_GqlQuery_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetNamedBindings();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableNamedBindings();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.QueryProto
-          .internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable
+      return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.GqlQuery.class,
-              com.google.datastore.v1.GqlQuery.Builder.class);
+              com.google.datastore.v1.GqlQuery.class, com.google.datastore.v1.GqlQuery.Builder.class);
     }
 
     // Construct using com.google.datastore.v1.GqlQuery.newBuilder()
@@ -693,17 +641,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPositionalBindingsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -722,9 +670,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.v1.QueryProto
-          .internal_static_google_datastore_v1_GqlQuery_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_descriptor;
     }
 
     @java.lang.Override
@@ -766,39 +714,38 @@ public com.google.datastore.v1.GqlQuery 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.datastore.v1.GqlQuery) {
-        return mergeFrom((com.google.datastore.v1.GqlQuery) other);
+        return mergeFrom((com.google.datastore.v1.GqlQuery)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -814,7 +761,8 @@ public Builder mergeFrom(com.google.datastore.v1.GqlQuery other) {
       if (other.getAllowLiterals() != false) {
         setAllowLiterals(other.getAllowLiterals());
       }
-      internalGetMutableNamedBindings().mergeFrom(other.internalGetNamedBindings());
+      internalGetMutableNamedBindings().mergeFrom(
+          other.internalGetNamedBindings());
       if (positionalBindingsBuilder_ == null) {
         if (!other.positionalBindings_.isEmpty()) {
           if (positionalBindings_.isEmpty()) {
@@ -833,10 +781,9 @@ public Builder mergeFrom(com.google.datastore.v1.GqlQuery other) {
             positionalBindingsBuilder_ = null;
             positionalBindings_ = other.positionalBindings_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            positionalBindingsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPositionalBindingsFieldBuilder()
-                    : null;
+            positionalBindingsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPositionalBindingsFieldBuilder() : null;
           } else {
             positionalBindingsBuilder_.addAllMessages(other.positionalBindings_);
           }
@@ -870,26 +817,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object queryString_ = "";
     /**
-     *
-     *
      * 
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; - * * @return The queryString. */ public java.lang.String getQueryString() { java.lang.Object ref = queryString_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryString_ = s; return s; @@ -898,22 +842,21 @@ public java.lang.String getQueryString() { } } /** - * - * *
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; - * * @return The bytes for queryString. */ - public com.google.protobuf.ByteString getQueryStringBytes() { + public com.google.protobuf.ByteString + getQueryStringBytes() { java.lang.Object ref = queryString_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); queryString_ = b; return b; } else { @@ -921,73 +864,64 @@ public com.google.protobuf.ByteString getQueryStringBytes() { } } /** - * - * *
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; - * * @param value The queryString to set. * @return This builder for chaining. */ - public Builder setQueryString(java.lang.String value) { + public Builder setQueryString( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queryString_ = value; onChanged(); return this; } /** - * - * *
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; - * * @return This builder for chaining. */ public Builder clearQueryString() { - + queryString_ = getDefaultInstance().getQueryString(); onChanged(); return this; } /** - * - * *
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; - * * @param value The bytes for queryString to set. * @return This builder for chaining. */ - public Builder setQueryStringBytes(com.google.protobuf.ByteString value) { + public Builder setQueryStringBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryString_ = value; onChanged(); return this; } - private boolean allowLiterals_; + private boolean allowLiterals_ ; /** - * - * *
      * When false, the query string must not contain any literals and instead must
      * bind all values. For example,
@@ -996,7 +930,6 @@ public Builder setQueryStringBytes(com.google.protobuf.ByteString value) {
      * 
* * bool allow_literals = 2; - * * @return The allowLiterals. */ @java.lang.Override @@ -1004,8 +937,6 @@ public boolean getAllowLiterals() { return allowLiterals_; } /** - * - * *
      * When false, the query string must not contain any literals and instead must
      * bind all values. For example,
@@ -1014,19 +945,16 @@ public boolean getAllowLiterals() {
      * 
* * bool allow_literals = 2; - * * @param value The allowLiterals to set. * @return This builder for chaining. */ public Builder setAllowLiterals(boolean value) { - + allowLiterals_ = value; onChanged(); return this; } /** - * - * *
      * When false, the query string must not contain any literals and instead must
      * bind all values. For example,
@@ -1035,38 +963,31 @@ public Builder setAllowLiterals(boolean value) {
      * 
* * bool allow_literals = 2; - * * @return This builder for chaining. */ public Builder clearAllowLiterals() { - + allowLiterals_ = false; onChanged(); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.datastore.v1.GqlQueryParameter> - namedBindings_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.datastore.v1.GqlQueryParameter> - internalGetNamedBindings() { + java.lang.String, com.google.datastore.v1.GqlQueryParameter> namedBindings_; + private com.google.protobuf.MapField + internalGetNamedBindings() { if (namedBindings_ == null) { return com.google.protobuf.MapField.emptyMapField( NamedBindingsDefaultEntryHolder.defaultEntry); } return namedBindings_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.datastore.v1.GqlQueryParameter> - internalGetMutableNamedBindings() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableNamedBindings() { + onChanged();; if (namedBindings_ == null) { - namedBindings_ = - com.google.protobuf.MapField.newMapField(NamedBindingsDefaultEntryHolder.defaultEntry); + namedBindings_ = com.google.protobuf.MapField.newMapField( + NamedBindingsDefaultEntryHolder.defaultEntry); } if (!namedBindings_.isMutable()) { namedBindings_ = namedBindings_.copy(); @@ -1078,8 +999,6 @@ public int getNamedBindingsCount() { return internalGetNamedBindings().getMap().size(); } /** - * - * *
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1089,23 +1008,22 @@ public int getNamedBindingsCount() {
      *
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
+
     @java.lang.Override
-    public boolean containsNamedBindings(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsNamedBindings(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetNamedBindings().getMap().containsKey(key);
     }
-    /** Use {@link #getNamedBindingsMap()} instead. */
+    /**
+     * Use {@link #getNamedBindingsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
-    public java.util.Map
-        getNamedBindings() {
+    public java.util.Map getNamedBindings() {
       return getNamedBindingsMap();
     }
     /**
-     *
-     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1116,13 +1034,11 @@ public boolean containsNamedBindings(java.lang.String key) {
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
     @java.lang.Override
-    public java.util.Map
-        getNamedBindingsMap() {
+
+    public java.util.Map getNamedBindingsMap() {
       return internalGetNamedBindings().getMap();
     }
     /**
-     *
-     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1133,18 +1049,16 @@ public boolean containsNamedBindings(java.lang.String key) {
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
     @java.lang.Override
+
     public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
-        java.lang.String key, com.google.datastore.v1.GqlQueryParameter defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.datastore.v1.GqlQueryParameter defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetNamedBindings().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1155,10 +1069,10 @@ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
     @java.lang.Override
-    public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetNamedBindings().getMap();
       if (!map.containsKey(key)) {
@@ -1168,12 +1082,11 @@ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.la
     }
 
     public Builder clearNamedBindings() {
-      internalGetMutableNamedBindings().getMutableMap().clear();
+      internalGetMutableNamedBindings().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1183,22 +1096,23 @@ public Builder clearNamedBindings() {
      *
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
-    public Builder removeNamedBindings(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableNamedBindings().getMutableMap().remove(key);
+
+    public Builder removeNamedBindings(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableNamedBindings().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
     public java.util.Map
-        getMutableNamedBindings() {
+    getMutableNamedBindings() {
       return internalGetMutableNamedBindings().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1209,20 +1123,18 @@ public Builder removeNamedBindings(java.lang.String key) {
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
     public Builder putNamedBindings(
-        java.lang.String key, com.google.datastore.v1.GqlQueryParameter value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.datastore.v1.GqlQueryParameter value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableNamedBindings().getMutableMap().put(key, value);
+      internalGetMutableNamedBindings().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1232,32 +1144,27 @@ public Builder putNamedBindings(
      *
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
+
     public Builder putAllNamedBindings(
         java.util.Map values) {
-      internalGetMutableNamedBindings().getMutableMap().putAll(values);
+      internalGetMutableNamedBindings().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.util.List positionalBindings_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePositionalBindingsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        positionalBindings_ =
-            new java.util.ArrayList(positionalBindings_);
+        positionalBindings_ = new java.util.ArrayList(positionalBindings_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.GqlQueryParameter,
-            com.google.datastore.v1.GqlQueryParameter.Builder,
-            com.google.datastore.v1.GqlQueryParameterOrBuilder>
-        positionalBindingsBuilder_;
+        com.google.datastore.v1.GqlQueryParameter, com.google.datastore.v1.GqlQueryParameter.Builder, com.google.datastore.v1.GqlQueryParameterOrBuilder> positionalBindingsBuilder_;
 
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1275,8 +1182,6 @@ public java.util.List getPositionalBi
       }
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1294,8 +1199,6 @@ public int getPositionalBindingsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1313,8 +1216,6 @@ public com.google.datastore.v1.GqlQueryParameter getPositionalBindings(int index
       }
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1339,8 +1240,6 @@ public Builder setPositionalBindings(
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1362,8 +1261,6 @@ public Builder setPositionalBindings(
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1387,8 +1284,6 @@ public Builder addPositionalBindings(com.google.datastore.v1.GqlQueryParameter v
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1413,8 +1308,6 @@ public Builder addPositionalBindings(
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1436,8 +1329,6 @@ public Builder addPositionalBindings(
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1459,8 +1350,6 @@ public Builder addPositionalBindings(
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1474,7 +1363,8 @@ public Builder addAllPositionalBindings(
         java.lang.Iterable values) {
       if (positionalBindingsBuilder_ == null) {
         ensurePositionalBindingsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, positionalBindings_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, positionalBindings_);
         onChanged();
       } else {
         positionalBindingsBuilder_.addAllMessages(values);
@@ -1482,8 +1372,6 @@ public Builder addAllPositionalBindings(
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1504,8 +1392,6 @@ public Builder clearPositionalBindings() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1526,8 +1412,6 @@ public Builder removePositionalBindings(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1542,8 +1426,6 @@ public com.google.datastore.v1.GqlQueryParameter.Builder getPositionalBindingsBu
       return getPositionalBindingsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1556,14 +1438,11 @@ public com.google.datastore.v1.GqlQueryParameter.Builder getPositionalBindingsBu
     public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsOrBuilder(
         int index) {
       if (positionalBindingsBuilder_ == null) {
-        return positionalBindings_.get(index);
-      } else {
+        return positionalBindings_.get(index);  } else {
         return positionalBindingsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1573,8 +1452,8 @@ public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsO
      *
      * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
      */
-    public java.util.List
-        getPositionalBindingsOrBuilderList() {
+    public java.util.List 
+         getPositionalBindingsOrBuilderList() {
       if (positionalBindingsBuilder_ != null) {
         return positionalBindingsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1582,8 +1461,6 @@ public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsO
       }
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1594,12 +1471,10 @@ public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsO
      * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
      */
     public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBuilder() {
-      return getPositionalBindingsFieldBuilder()
-          .addBuilder(com.google.datastore.v1.GqlQueryParameter.getDefaultInstance());
+      return getPositionalBindingsFieldBuilder().addBuilder(
+          com.google.datastore.v1.GqlQueryParameter.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1611,12 +1486,10 @@ public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBu
      */
     public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBuilder(
         int index) {
-      return getPositionalBindingsFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.GqlQueryParameter.getDefaultInstance());
+      return getPositionalBindingsFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.GqlQueryParameter.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1626,22 +1499,16 @@ public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBu
      *
      * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
      */
-    public java.util.List
-        getPositionalBindingsBuilderList() {
+    public java.util.List 
+         getPositionalBindingsBuilderList() {
       return getPositionalBindingsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.GqlQueryParameter,
-            com.google.datastore.v1.GqlQueryParameter.Builder,
-            com.google.datastore.v1.GqlQueryParameterOrBuilder>
+        com.google.datastore.v1.GqlQueryParameter, com.google.datastore.v1.GqlQueryParameter.Builder, com.google.datastore.v1.GqlQueryParameterOrBuilder> 
         getPositionalBindingsFieldBuilder() {
       if (positionalBindingsBuilder_ == null) {
-        positionalBindingsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.GqlQueryParameter,
-                com.google.datastore.v1.GqlQueryParameter.Builder,
-                com.google.datastore.v1.GqlQueryParameterOrBuilder>(
+        positionalBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.GqlQueryParameter, com.google.datastore.v1.GqlQueryParameter.Builder, com.google.datastore.v1.GqlQueryParameterOrBuilder>(
                 positionalBindings_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1650,9 +1517,9 @@ public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBu
       }
       return positionalBindingsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1662,12 +1529,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.GqlQuery)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQuery)
   private static final com.google.datastore.v1.GqlQuery DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.GqlQuery();
   }
@@ -1676,16 +1543,16 @@ public static com.google.datastore.v1.GqlQuery getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GqlQuery parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new GqlQuery(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GqlQuery parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new GqlQuery(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1700,4 +1567,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.GqlQuery getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
similarity index 81%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
index c53417b8c..6444ceaa1 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
@@ -1,58 +1,35 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
-public interface GqlQueryOrBuilder
-    extends
+public interface GqlQueryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.GqlQuery)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A string of the format described
    * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    * 
* * string query_string = 1; - * * @return The queryString. */ java.lang.String getQueryString(); /** - * - * *
    * A string of the format described
    * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    * 
* * string query_string = 1; - * * @return The bytes for queryString. */ - com.google.protobuf.ByteString getQueryStringBytes(); + com.google.protobuf.ByteString + getQueryStringBytes(); /** - * - * *
    * When false, the query string must not contain any literals and instead must
    * bind all values. For example,
@@ -61,14 +38,11 @@ public interface GqlQueryOrBuilder
    * 
* * bool allow_literals = 2; - * * @return The allowLiterals. */ boolean getAllowLiterals(); /** - * - * *
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -80,8 +54,6 @@ public interface GqlQueryOrBuilder
    */
   int getNamedBindingsCount();
   /**
-   *
-   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -91,13 +63,15 @@ public interface GqlQueryOrBuilder
    *
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
-  boolean containsNamedBindings(java.lang.String key);
-  /** Use {@link #getNamedBindingsMap()} instead. */
+  boolean containsNamedBindings(
+      java.lang.String key);
+  /**
+   * Use {@link #getNamedBindingsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getNamedBindings();
+  java.util.Map
+  getNamedBindings();
   /**
-   *
-   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -107,10 +81,9 @@ public interface GqlQueryOrBuilder
    *
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
-  java.util.Map getNamedBindingsMap();
+  java.util.Map
+  getNamedBindingsMap();
   /**
-   *
-   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -122,13 +95,11 @@ public interface GqlQueryOrBuilder
    */
 
   /* nullable */
-  com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
+com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.datastore.v1.GqlQueryParameter defaultValue);
+com.google.datastore.v1.GqlQueryParameter defaultValue);
   /**
-   *
-   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -138,11 +109,11 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    *
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
-  com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key);
+
+  com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -152,10 +123,9 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    *
    * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
    */
-  java.util.List getPositionalBindingsList();
+  java.util.List 
+      getPositionalBindingsList();
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -167,8 +137,6 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    */
   com.google.datastore.v1.GqlQueryParameter getPositionalBindings(int index);
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -180,8 +148,6 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    */
   int getPositionalBindingsCount();
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -191,11 +157,9 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    *
    * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
    */
-  java.util.List
+  java.util.List 
       getPositionalBindingsOrBuilderList();
   /**
-   *
-   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -205,5 +169,6 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    *
    * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
    */
-  com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsOrBuilder(int index);
+  com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
similarity index 69%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
index 77f69f37e..f223bafdc 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * A binding parameter for a GQL query.
  * 
* * Protobuf type {@code google.datastore.v1.GqlQueryParameter} */ -public final class GqlQueryParameter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GqlQueryParameter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.GqlQueryParameter) GqlQueryParameterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GqlQueryParameter.newBuilder() to construct. private GqlQueryParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GqlQueryParameter() {} + private GqlQueryParameter() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GqlQueryParameter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GqlQueryParameter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,32 @@ private GqlQueryParameter( case 0: done = true; break; - case 18: - { - com.google.datastore.v1.Value.Builder subBuilder = null; - if (parameterTypeCase_ == 2) { - subBuilder = ((com.google.datastore.v1.Value) parameterType_).toBuilder(); - } - parameterType_ = - input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Value) parameterType_); - parameterType_ = subBuilder.buildPartial(); - } - parameterTypeCase_ = 2; - break; + case 18: { + com.google.datastore.v1.Value.Builder subBuilder = null; + if (parameterTypeCase_ == 2) { + subBuilder = ((com.google.datastore.v1.Value) parameterType_).toBuilder(); } - case 26: - { - parameterType_ = input.readBytes(); - parameterTypeCase_ = 3; - break; + parameterType_ = + input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Value) parameterType_); + parameterType_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameterTypeCase_ = 2; + break; + } + case 26: { + parameterType_ = input.readBytes(); + parameterTypeCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,40 +85,35 @@ private GqlQueryParameter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_GqlQueryParameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.GqlQueryParameter.class, - com.google.datastore.v1.GqlQueryParameter.Builder.class); + com.google.datastore.v1.GqlQueryParameter.class, com.google.datastore.v1.GqlQueryParameter.Builder.class); } private int parameterTypeCase_ = 0; private java.lang.Object parameterType_; - public enum ParameterTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALUE(2), CURSOR(3), PARAMETERTYPE_NOT_SET(0); private final int value; - private ParameterTypeCase(int value) { this.value = value; } @@ -152,36 +129,30 @@ public static ParameterTypeCase valueOf(int value) { public static ParameterTypeCase forNumber(int value) { switch (value) { - case 2: - return VALUE; - case 3: - return CURSOR; - case 0: - return PARAMETERTYPE_NOT_SET; - default: - return null; + case 2: return VALUE; + case 3: return CURSOR; + case 0: return PARAMETERTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ParameterTypeCase getParameterTypeCase() { - return ParameterTypeCase.forNumber(parameterTypeCase_); + public ParameterTypeCase + getParameterTypeCase() { + return ParameterTypeCase.forNumber( + parameterTypeCase_); } public static final int VALUE_FIELD_NUMBER = 2; /** - * - * *
    * A value parameter.
    * 
* * .google.datastore.v1.Value value = 2; - * * @return Whether the value field is set. */ @java.lang.Override @@ -189,26 +160,21 @@ public boolean hasValue() { return parameterTypeCase_ == 2; } /** - * - * *
    * A value parameter.
    * 
* * .google.datastore.v1.Value value = 2; - * * @return The value. */ @java.lang.Override public com.google.datastore.v1.Value getValue() { if (parameterTypeCase_ == 2) { - return (com.google.datastore.v1.Value) parameterType_; + return (com.google.datastore.v1.Value) parameterType_; } return com.google.datastore.v1.Value.getDefaultInstance(); } /** - * - * *
    * A value parameter.
    * 
@@ -218,22 +184,19 @@ public com.google.datastore.v1.Value getValue() { @java.lang.Override public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { if (parameterTypeCase_ == 2) { - return (com.google.datastore.v1.Value) parameterType_; + return (com.google.datastore.v1.Value) parameterType_; } return com.google.datastore.v1.Value.getDefaultInstance(); } public static final int CURSOR_FIELD_NUMBER = 3; /** - * - * *
    * A query cursor. Query cursors are returned in query
    * result batches.
    * 
* * bytes cursor = 3; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -241,15 +204,12 @@ public boolean hasCursor() { return parameterTypeCase_ == 3; } /** - * - * *
    * A query cursor. Query cursors are returned in query
    * result batches.
    * 
* * bytes cursor = 3; - * * @return The cursor. */ @java.lang.Override @@ -261,7 +221,6 @@ public com.google.protobuf.ByteString getCursor() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,12 +232,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (parameterTypeCase_ == 2) { output.writeMessage(2, (com.google.datastore.v1.Value) parameterType_); } if (parameterTypeCase_ == 3) { - output.writeBytes(3, (com.google.protobuf.ByteString) parameterType_); + output.writeBytes( + 3, (com.google.protobuf.ByteString) parameterType_); } unknownFields.writeTo(output); } @@ -290,14 +251,13 @@ public int getSerializedSize() { size = 0; if (parameterTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.datastore.v1.Value) parameterType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.datastore.v1.Value) parameterType_); } if (parameterTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 3, (com.google.protobuf.ByteString) parameterType_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 3, (com.google.protobuf.ByteString) parameterType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -307,21 +267,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.datastore.v1.GqlQueryParameter)) { return super.equals(obj); } - com.google.datastore.v1.GqlQueryParameter other = - (com.google.datastore.v1.GqlQueryParameter) obj; + com.google.datastore.v1.GqlQueryParameter other = (com.google.datastore.v1.GqlQueryParameter) obj; if (!getParameterTypeCase().equals(other.getParameterTypeCase())) return false; switch (parameterTypeCase_) { case 2: - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; break; case 3: - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; break; case 0: default: @@ -354,127 +315,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.GqlQueryParameter parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.GqlQueryParameter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.GqlQueryParameter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.GqlQueryParameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.GqlQueryParameter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.GqlQueryParameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.GqlQueryParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A binding parameter for a GQL query.
    * 
* * Protobuf type {@code google.datastore.v1.GqlQueryParameter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.GqlQueryParameter) com.google.datastore.v1.GqlQueryParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_GqlQueryParameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.GqlQueryParameter.class, - com.google.datastore.v1.GqlQueryParameter.Builder.class); + com.google.datastore.v1.GqlQueryParameter.class, com.google.datastore.v1.GqlQueryParameter.Builder.class); } // Construct using com.google.datastore.v1.GqlQueryParameter.newBuilder() @@ -482,15 +434,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -500,9 +453,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_GqlQueryParameter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_descriptor; } @java.lang.Override @@ -521,8 +474,7 @@ public com.google.datastore.v1.GqlQueryParameter build() { @java.lang.Override public com.google.datastore.v1.GqlQueryParameter buildPartial() { - com.google.datastore.v1.GqlQueryParameter result = - new com.google.datastore.v1.GqlQueryParameter(this); + com.google.datastore.v1.GqlQueryParameter result = new com.google.datastore.v1.GqlQueryParameter(this); if (parameterTypeCase_ == 2) { if (valueBuilder_ == null) { result.parameterType_ = parameterType_; @@ -542,39 +494,38 @@ public com.google.datastore.v1.GqlQueryParameter 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.datastore.v1.GqlQueryParameter) { - return mergeFrom((com.google.datastore.v1.GqlQueryParameter) other); + return mergeFrom((com.google.datastore.v1.GqlQueryParameter)other); } else { super.mergeFrom(other); return this; @@ -584,20 +535,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.datastore.v1.GqlQueryParameter other) { if (other == com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()) return this; switch (other.getParameterTypeCase()) { - case VALUE: - { - mergeValue(other.getValue()); - break; - } - case CURSOR: - { - setCursor(other.getCursor()); - break; - } - case PARAMETERTYPE_NOT_SET: - { - break; - } + case VALUE: { + mergeValue(other.getValue()); + break; + } + case CURSOR: { + setCursor(other.getCursor()); + break; + } + case PARAMETERTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -627,12 +575,12 @@ public Builder mergeFrom( } return this; } - private int parameterTypeCase_ = 0; private java.lang.Object parameterType_; - - public ParameterTypeCase getParameterTypeCase() { - return ParameterTypeCase.forNumber(parameterTypeCase_); + public ParameterTypeCase + getParameterTypeCase() { + return ParameterTypeCase.forNumber( + parameterTypeCase_); } public Builder clearParameterType() { @@ -642,20 +590,15 @@ public Builder clearParameterType() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, - com.google.datastore.v1.Value.Builder, - com.google.datastore.v1.ValueOrBuilder> - valueBuilder_; + com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> valueBuilder_; /** - * - * *
      * A value parameter.
      * 
* * .google.datastore.v1.Value value = 2; - * * @return Whether the value field is set. */ @java.lang.Override @@ -663,14 +606,11 @@ public boolean hasValue() { return parameterTypeCase_ == 2; } /** - * - * *
      * A value parameter.
      * 
* * .google.datastore.v1.Value value = 2; - * * @return The value. */ @java.lang.Override @@ -688,8 +628,6 @@ public com.google.datastore.v1.Value getValue() { } } /** - * - * *
      * A value parameter.
      * 
@@ -710,15 +648,14 @@ public Builder setValue(com.google.datastore.v1.Value value) { return this; } /** - * - * *
      * A value parameter.
      * 
* * .google.datastore.v1.Value value = 2; */ - public Builder setValue(com.google.datastore.v1.Value.Builder builderForValue) { + public Builder setValue( + com.google.datastore.v1.Value.Builder builderForValue) { if (valueBuilder_ == null) { parameterType_ = builderForValue.build(); onChanged(); @@ -729,8 +666,6 @@ public Builder setValue(com.google.datastore.v1.Value.Builder builderForValue) { return this; } /** - * - * *
      * A value parameter.
      * 
@@ -739,13 +674,10 @@ public Builder setValue(com.google.datastore.v1.Value.Builder builderForValue) { */ public Builder mergeValue(com.google.datastore.v1.Value value) { if (valueBuilder_ == null) { - if (parameterTypeCase_ == 2 - && parameterType_ != com.google.datastore.v1.Value.getDefaultInstance()) { - parameterType_ = - com.google.datastore.v1.Value.newBuilder( - (com.google.datastore.v1.Value) parameterType_) - .mergeFrom(value) - .buildPartial(); + if (parameterTypeCase_ == 2 && + parameterType_ != com.google.datastore.v1.Value.getDefaultInstance()) { + parameterType_ = com.google.datastore.v1.Value.newBuilder((com.google.datastore.v1.Value) parameterType_) + .mergeFrom(value).buildPartial(); } else { parameterType_ = value; } @@ -761,8 +693,6 @@ public Builder mergeValue(com.google.datastore.v1.Value value) { return this; } /** - * - * *
      * A value parameter.
      * 
@@ -786,8 +716,6 @@ public Builder clearValue() { return this; } /** - * - * *
      * A value parameter.
      * 
@@ -798,8 +726,6 @@ public com.google.datastore.v1.Value.Builder getValueBuilder() { return getValueFieldBuilder().getBuilder(); } /** - * - * *
      * A value parameter.
      * 
@@ -818,8 +744,6 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { } } /** - * - * *
      * A value parameter.
      * 
@@ -827,53 +751,43 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { * .google.datastore.v1.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, - com.google.datastore.v1.Value.Builder, - com.google.datastore.v1.ValueOrBuilder> + com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { if (!(parameterTypeCase_ == 2)) { parameterType_ = com.google.datastore.v1.Value.getDefaultInstance(); } - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, - com.google.datastore.v1.Value.Builder, - com.google.datastore.v1.ValueOrBuilder>( - (com.google.datastore.v1.Value) parameterType_, getParentForChildren(), isClean()); + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder>( + (com.google.datastore.v1.Value) parameterType_, + getParentForChildren(), + isClean()); parameterType_ = null; } parameterTypeCase_ = 2; - onChanged(); - ; + onChanged();; return valueBuilder_; } /** - * - * *
      * A query cursor. Query cursors are returned in query
      * result batches.
      * 
* * bytes cursor = 3; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return parameterTypeCase_ == 3; } /** - * - * *
      * A query cursor. Query cursors are returned in query
      * result batches.
      * 
* * bytes cursor = 3; - * * @return The cursor. */ public com.google.protobuf.ByteString getCursor() { @@ -883,37 +797,31 @@ public com.google.protobuf.ByteString getCursor() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * A query cursor. Query cursors are returned in query
      * result batches.
      * 
* * bytes cursor = 3; - * * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - parameterTypeCase_ = 3; + throw new NullPointerException(); + } + parameterTypeCase_ = 3; parameterType_ = value; onChanged(); return this; } /** - * - * *
      * A query cursor. Query cursors are returned in query
      * result batches.
      * 
* * bytes cursor = 3; - * * @return This builder for chaining. */ public Builder clearCursor() { @@ -924,9 +832,9 @@ public Builder clearCursor() { } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,12 +844,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.GqlQueryParameter) } // @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQueryParameter) private static final com.google.datastore.v1.GqlQueryParameter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.GqlQueryParameter(); } @@ -950,16 +858,16 @@ public static com.google.datastore.v1.GqlQueryParameter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GqlQueryParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GqlQueryParameter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GqlQueryParameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GqlQueryParameter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,4 +882,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.GqlQueryParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java similarity index 65% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java index 6539bf245..8aa3f789a 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface GqlQueryParameterOrBuilder - extends +public interface GqlQueryParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.GqlQueryParameter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A value parameter.
    * 
* * .google.datastore.v1.Value value = 2; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
    * A value parameter.
    * 
* * .google.datastore.v1.Value value = 2; - * * @return The value. */ com.google.datastore.v1.Value getValue(); /** - * - * *
    * A value parameter.
    * 
@@ -59,28 +35,22 @@ public interface GqlQueryParameterOrBuilder com.google.datastore.v1.ValueOrBuilder getValueOrBuilder(); /** - * - * *
    * A query cursor. Query cursors are returned in query
    * result batches.
    * 
* * bytes cursor = 3; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * A query cursor. Query cursors are returned in query
    * result batches.
    * 
* * bytes cursor = 3; - * * @return The cursor. */ com.google.protobuf.ByteString getCursor(); diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java similarity index 82% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java index 54a39945f..e0ab7365c 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/entity.proto package com.google.datastore.v1; /** - * - * *
  * A unique identifier for an entity.
  * If a key's partition ID or any of its path kinds or names are
@@ -30,31 +13,31 @@
  *
  * Protobuf type {@code google.datastore.v1.Key}
  */
-public final class Key extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Key extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.Key)
     KeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Key.newBuilder() to construct.
   private Key(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Key() {
     path_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Key();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Key(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,40 +57,35 @@ private Key(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.datastore.v1.PartitionId.Builder subBuilder = null;
-              if (partitionId_ != null) {
-                subBuilder = partitionId_.toBuilder();
-              }
-              partitionId_ =
-                  input.readMessage(
-                      com.google.datastore.v1.PartitionId.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(partitionId_);
-                partitionId_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.datastore.v1.PartitionId.Builder subBuilder = null;
+            if (partitionId_ != null) {
+              subBuilder = partitionId_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                path_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              path_.add(
-                  input.readMessage(
-                      com.google.datastore.v1.Key.PathElement.parser(), extensionRegistry));
-              break;
+            partitionId_ = input.readMessage(com.google.datastore.v1.PartitionId.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(partitionId_);
+              partitionId_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              path_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            path_.add(
+                input.readMessage(com.google.datastore.v1.Key.PathElement.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -115,7 +93,8 @@ private Key(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         path_ = java.util.Collections.unmodifiableList(path_);
@@ -124,28 +103,24 @@ private Key(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.EntityProto
-        .internal_static_google_datastore_v1_Key_fieldAccessorTable
+    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.datastore.v1.Key.class, com.google.datastore.v1.Key.Builder.class);
   }
 
-  public interface PathElementOrBuilder
-      extends
+  public interface PathElementOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.datastore.v1.Key.PathElement)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The kind of the entity.
      * A kind matching regex `__.*__` is reserved/read-only.
@@ -157,13 +132,10 @@ public interface PathElementOrBuilder
      * 
* * string kind = 1; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
      * The kind of the entity.
      * A kind matching regex `__.*__` is reserved/read-only.
@@ -175,14 +147,12 @@ public interface PathElementOrBuilder
      * 
* * string kind = 1; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); /** - * - * *
      * The auto-allocated ID of the entity.
      * Never equal to zero. Values less than zero are discouraged and may not
@@ -190,13 +160,10 @@ public interface PathElementOrBuilder
      * 
* * int64 id = 2; - * * @return Whether the id field is set. */ boolean hasId(); /** - * - * *
      * The auto-allocated ID of the entity.
      * Never equal to zero. Values less than zero are discouraged and may not
@@ -204,14 +171,11 @@ public interface PathElementOrBuilder
      * 
* * int64 id = 2; - * * @return The id. */ long getId(); /** - * - * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -223,13 +187,10 @@ public interface PathElementOrBuilder
      * 
* * string name = 3; - * * @return Whether the name field is set. */ boolean hasName(); /** - * - * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -241,13 +202,10 @@ public interface PathElementOrBuilder
      * 
* * string name = 3; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -259,16 +217,14 @@ public interface PathElementOrBuilder
      * 
* * string name = 3; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); public com.google.datastore.v1.Key.PathElement.IdTypeCase getIdTypeCase(); } /** - * - * *
    * A (kind, ID/name) pair used to construct a key path.
    * If either name or ID is set, the element is complete.
@@ -277,31 +233,31 @@ public interface PathElementOrBuilder
    *
    * Protobuf type {@code google.datastore.v1.Key.PathElement}
    */
-  public static final class PathElement extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class PathElement extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.datastore.v1.Key.PathElement)
       PathElementOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use PathElement.newBuilder() to construct.
     private PathElement(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private PathElement() {
       kind_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new PathElement();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private PathElement(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -320,33 +276,30 @@ private PathElement(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                kind_ = s;
-                break;
-              }
-            case 16:
-              {
-                idType_ = input.readInt64();
-                idTypeCase_ = 2;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                idTypeCase_ = 3;
-                idType_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              kind_ = s;
+              break;
+            }
+            case 16: {
+              idType_ = input.readInt64();
+              idTypeCase_ = 2;
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              idTypeCase_ = 3;
+              idType_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -354,40 +307,35 @@ private PathElement(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Key_PathElement_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.Key.PathElement.class,
-              com.google.datastore.v1.Key.PathElement.Builder.class);
+              com.google.datastore.v1.Key.PathElement.class, com.google.datastore.v1.Key.PathElement.Builder.class);
     }
 
     private int idTypeCase_ = 0;
     private java.lang.Object idType_;
-
     public enum IdTypeCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ID(2),
       NAME(3),
       IDTYPE_NOT_SET(0);
       private final int value;
-
       private IdTypeCase(int value) {
         this.value = value;
       }
@@ -403,31 +351,26 @@ public static IdTypeCase valueOf(int value) {
 
       public static IdTypeCase forNumber(int value) {
         switch (value) {
-          case 2:
-            return ID;
-          case 3:
-            return NAME;
-          case 0:
-            return IDTYPE_NOT_SET;
-          default:
-            return null;
+          case 2: return ID;
+          case 3: return NAME;
+          case 0: return IDTYPE_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public IdTypeCase getIdTypeCase() {
-      return IdTypeCase.forNumber(idTypeCase_);
+    public IdTypeCase
+    getIdTypeCase() {
+      return IdTypeCase.forNumber(
+          idTypeCase_);
     }
 
     public static final int KIND_FIELD_NUMBER = 1;
     private volatile java.lang.Object kind_;
     /**
-     *
-     *
      * 
      * The kind of the entity.
      * A kind matching regex `__.*__` is reserved/read-only.
@@ -439,7 +382,6 @@ public IdTypeCase getIdTypeCase() {
      * 
* * string kind = 1; - * * @return The kind. */ @java.lang.Override @@ -448,15 +390,14 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
      * The kind of the entity.
      * A kind matching regex `__.*__` is reserved/read-only.
@@ -468,15 +409,16 @@ public java.lang.String getKind() {
      * 
* * string kind = 1; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -486,8 +428,6 @@ public com.google.protobuf.ByteString getKindBytes() { public static final int ID_FIELD_NUMBER = 2; /** - * - * *
      * The auto-allocated ID of the entity.
      * Never equal to zero. Values less than zero are discouraged and may not
@@ -495,7 +435,6 @@ public com.google.protobuf.ByteString getKindBytes() {
      * 
* * int64 id = 2; - * * @return Whether the id field is set. */ @java.lang.Override @@ -503,8 +442,6 @@ public boolean hasId() { return idTypeCase_ == 2; } /** - * - * *
      * The auto-allocated ID of the entity.
      * Never equal to zero. Values less than zero are discouraged and may not
@@ -512,7 +449,6 @@ public boolean hasId() {
      * 
* * int64 id = 2; - * * @return The id. */ @java.lang.Override @@ -525,8 +461,6 @@ public long getId() { public static final int NAME_FIELD_NUMBER = 3; /** - * - * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -538,15 +472,12 @@ public long getId() {
      * 
* * string name = 3; - * * @return Whether the name field is set. */ public boolean hasName() { return idTypeCase_ == 3; } /** - * - * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -558,7 +489,6 @@ public boolean hasName() {
      * 
* * string name = 3; - * * @return The name. */ public java.lang.String getName() { @@ -569,7 +499,8 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idTypeCase_ == 3) { idType_ = s; @@ -578,8 +509,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -591,17 +520,18 @@ public java.lang.String getName() {
      * 
* * string name = 3; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = ""; if (idTypeCase_ == 3) { ref = idType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (idTypeCase_ == 3) { idType_ = b; } @@ -612,7 +542,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -624,12 +553,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } if (idTypeCase_ == 2) { - output.writeInt64(2, (long) ((java.lang.Long) idType_)); + output.writeInt64( + 2, (long)((java.lang.Long) idType_)); } if (idTypeCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, idType_); @@ -647,9 +578,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_); } if (idTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size( - 2, (long) ((java.lang.Long) idType_)); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) idType_)); } if (idTypeCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, idType_); @@ -662,21 +593,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.Key.PathElement)) { return super.equals(obj); } com.google.datastore.v1.Key.PathElement other = (com.google.datastore.v1.Key.PathElement) obj; - if (!getKind().equals(other.getKind())) return false; + if (!getKind() + .equals(other.getKind())) return false; if (!getIdTypeCase().equals(other.getIdTypeCase())) return false; switch (idTypeCase_) { case 2: - if (getId() != other.getId()) return false; + if (getId() + != other.getId()) return false; break; case 3: - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; break; case 0: default: @@ -697,7 +631,8 @@ public int hashCode() { switch (idTypeCase_) { case 2: hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); break; case 3: hash = (37 * hash) + NAME_FIELD_NUMBER; @@ -711,94 +646,88 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.Key.PathElement parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.Key.PathElement parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Key.PathElement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Key.PathElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Key.PathElement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Key.PathElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Key.PathElement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Key.PathElement parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.Key.PathElement parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.Key.PathElement parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.Key.PathElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.Key.PathElement parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.Key.PathElement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.Key.PathElement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.Key.PathElement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -808,8 +737,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A (kind, ID/name) pair used to construct a key path.
      * If either name or ID is set, the element is complete.
@@ -818,24 +745,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.datastore.v1.Key.PathElement}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.datastore.v1.Key.PathElement)
         com.google.datastore.v1.Key.PathElementOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.datastore.v1.EntityProto
-            .internal_static_google_datastore_v1_Key_PathElement_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.datastore.v1.EntityProto
-            .internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable
+        return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.datastore.v1.Key.PathElement.class,
-                com.google.datastore.v1.Key.PathElement.Builder.class);
+                com.google.datastore.v1.Key.PathElement.class, com.google.datastore.v1.Key.PathElement.Builder.class);
       }
 
       // Construct using com.google.datastore.v1.Key.PathElement.newBuilder()
@@ -843,15 +767,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -863,9 +788,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.datastore.v1.EntityProto
-            .internal_static_google_datastore_v1_Key_PathElement_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_descriptor;
       }
 
       @java.lang.Override
@@ -884,8 +809,7 @@ public com.google.datastore.v1.Key.PathElement build() {
 
       @java.lang.Override
       public com.google.datastore.v1.Key.PathElement buildPartial() {
-        com.google.datastore.v1.Key.PathElement result =
-            new com.google.datastore.v1.Key.PathElement(this);
+        com.google.datastore.v1.Key.PathElement result = new com.google.datastore.v1.Key.PathElement(this);
         result.kind_ = kind_;
         if (idTypeCase_ == 2) {
           result.idType_ = idType_;
@@ -902,41 +826,38 @@ public com.google.datastore.v1.Key.PathElement buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.datastore.v1.Key.PathElement) {
-          return mergeFrom((com.google.datastore.v1.Key.PathElement) other);
+          return mergeFrom((com.google.datastore.v1.Key.PathElement)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -950,22 +871,19 @@ public Builder mergeFrom(com.google.datastore.v1.Key.PathElement other) {
           onChanged();
         }
         switch (other.getIdTypeCase()) {
-          case ID:
-            {
-              setId(other.getId());
-              break;
-            }
-          case NAME:
-            {
-              idTypeCase_ = 3;
-              idType_ = other.idType_;
-              onChanged();
-              break;
-            }
-          case IDTYPE_NOT_SET:
-            {
-              break;
-            }
+          case ID: {
+            setId(other.getId());
+            break;
+          }
+          case NAME: {
+            idTypeCase_ = 3;
+            idType_ = other.idType_;
+            onChanged();
+            break;
+          }
+          case IDTYPE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -995,12 +913,12 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int idTypeCase_ = 0;
       private java.lang.Object idType_;
-
-      public IdTypeCase getIdTypeCase() {
-        return IdTypeCase.forNumber(idTypeCase_);
+      public IdTypeCase
+          getIdTypeCase() {
+        return IdTypeCase.forNumber(
+            idTypeCase_);
       }
 
       public Builder clearIdType() {
@@ -1010,10 +928,9 @@ public Builder clearIdType() {
         return this;
       }
 
+
       private java.lang.Object kind_ = "";
       /**
-       *
-       *
        * 
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -1025,13 +942,13 @@ public Builder clearIdType() {
        * 
* * string kind = 1; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -1040,8 +957,6 @@ public java.lang.String getKind() { } } /** - * - * *
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -1053,14 +968,15 @@ public java.lang.String getKind() {
        * 
* * string kind = 1; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -1068,8 +984,6 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -1081,22 +995,20 @@ public com.google.protobuf.ByteString getKindBytes() {
        * 
* * string kind = 1; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { + public Builder setKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** - * - * *
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -1108,18 +1020,15 @@ public Builder setKind(java.lang.String value) {
        * 
* * string kind = 1; - * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** - * - * *
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -1131,24 +1040,22 @@ public Builder clearKind() {
        * 
* * string kind = 1; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { + public Builder setKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } /** - * - * *
        * The auto-allocated ID of the entity.
        * Never equal to zero. Values less than zero are discouraged and may not
@@ -1156,15 +1063,12 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) {
        * 
* * int64 id = 2; - * * @return Whether the id field is set. */ public boolean hasId() { return idTypeCase_ == 2; } /** - * - * *
        * The auto-allocated ID of the entity.
        * Never equal to zero. Values less than zero are discouraged and may not
@@ -1172,7 +1076,6 @@ public boolean hasId() {
        * 
* * int64 id = 2; - * * @return The id. */ public long getId() { @@ -1182,8 +1085,6 @@ public long getId() { return 0L; } /** - * - * *
        * The auto-allocated ID of the entity.
        * Never equal to zero. Values less than zero are discouraged and may not
@@ -1191,7 +1092,6 @@ public long getId() {
        * 
* * int64 id = 2; - * * @param value The id to set. * @return This builder for chaining. */ @@ -1202,8 +1102,6 @@ public Builder setId(long value) { return this; } /** - * - * *
        * The auto-allocated ID of the entity.
        * Never equal to zero. Values less than zero are discouraged and may not
@@ -1211,7 +1109,6 @@ public Builder setId(long value) {
        * 
* * int64 id = 2; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1224,8 +1121,6 @@ public Builder clearId() { } /** - * - * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1237,7 +1132,6 @@ public Builder clearId() {
        * 
* * string name = 3; - * * @return Whether the name field is set. */ @java.lang.Override @@ -1245,8 +1139,6 @@ public boolean hasName() { return idTypeCase_ == 3; } /** - * - * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1258,7 +1150,6 @@ public boolean hasName() {
        * 
* * string name = 3; - * * @return The name. */ @java.lang.Override @@ -1268,7 +1159,8 @@ public java.lang.String getName() { ref = idType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idTypeCase_ == 3) { idType_ = s; @@ -1279,8 +1171,6 @@ public java.lang.String getName() { } } /** - * - * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1292,18 +1182,19 @@ public java.lang.String getName() {
        * 
* * string name = 3; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = ""; if (idTypeCase_ == 3) { ref = idType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (idTypeCase_ == 3) { idType_ = b; } @@ -1313,8 +1204,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1326,22 +1215,20 @@ public com.google.protobuf.ByteString getNameBytes() {
        * 
* * string name = 3; - * * @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(); - } - idTypeCase_ = 3; + throw new NullPointerException(); + } + idTypeCase_ = 3; idType_ = value; onChanged(); return this; } /** - * - * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1353,7 +1240,6 @@ public Builder setName(java.lang.String value) {
        * 
* * string name = 3; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1365,8 +1251,6 @@ public Builder clearName() { return this; } /** - * - * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1378,21 +1262,20 @@ public Builder clearName() {
        * 
* * string name = 3; - * * @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); idTypeCase_ = 3; idType_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1405,12 +1288,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.Key.PathElement) } // @@protoc_insertion_point(class_scope:google.datastore.v1.Key.PathElement) private static final com.google.datastore.v1.Key.PathElement DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.Key.PathElement(); } @@ -1419,16 +1302,16 @@ public static com.google.datastore.v1.Key.PathElement getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PathElement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PathElement(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PathElement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PathElement(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1443,13 +1326,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.Key.PathElement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PARTITION_ID_FIELD_NUMBER = 1; private com.google.datastore.v1.PartitionId partitionId_; /** - * - * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -1457,7 +1339,6 @@ public com.google.datastore.v1.Key.PathElement getDefaultInstanceForType() {
    * 
* * .google.datastore.v1.PartitionId partition_id = 1; - * * @return Whether the partitionId field is set. */ @java.lang.Override @@ -1465,8 +1346,6 @@ public boolean hasPartitionId() { return partitionId_ != null; } /** - * - * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -1474,18 +1353,13 @@ public boolean hasPartitionId() {
    * 
* * .google.datastore.v1.PartitionId partition_id = 1; - * * @return The partitionId. */ @java.lang.Override public com.google.datastore.v1.PartitionId getPartitionId() { - return partitionId_ == null - ? com.google.datastore.v1.PartitionId.getDefaultInstance() - : partitionId_; + return partitionId_ == null ? com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_; } /** - * - * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -1502,8 +1376,6 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
   public static final int PATH_FIELD_NUMBER = 2;
   private java.util.List path_;
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1528,8 +1400,6 @@ public java.util.List getPathList() {
     return path_;
   }
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1550,13 +1420,11 @@ public java.util.List getPathList() {
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPathOrBuilderList() {
     return path_;
   }
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1581,8 +1449,6 @@ public int getPathCount() {
     return path_.size();
   }
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1607,8 +1473,6 @@ public com.google.datastore.v1.Key.PathElement getPath(int index) {
     return path_.get(index);
   }
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1629,12 +1493,12 @@ public com.google.datastore.v1.Key.PathElement getPath(int index) {
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
   @java.lang.Override
-  public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int index) {
+  public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
+      int index) {
     return path_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1646,7 +1510,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (partitionId_ != null) {
       output.writeMessage(1, getPartitionId());
     }
@@ -1663,10 +1528,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (partitionId_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPartitionId());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getPartitionId());
     }
     for (int i = 0; i < path_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, path_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, path_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1676,7 +1543,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.Key)) {
       return super.equals(obj);
@@ -1685,9 +1552,11 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasPartitionId() != other.hasPartitionId()) return false;
     if (hasPartitionId()) {
-      if (!getPartitionId().equals(other.getPartitionId())) return false;
+      if (!getPartitionId()
+          .equals(other.getPartitionId())) return false;
     }
-    if (!getPathList().equals(other.getPathList())) return false;
+    if (!getPathList()
+        .equals(other.getPathList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1712,103 +1581,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.Key parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.Key parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Key parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.Key parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.datastore.v1.Key parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Key parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Key parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Key parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Key parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Key parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Key parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Key parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.Key parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.datastore.v1.Key parseFrom(
+      com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Key parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.Key prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A unique identifier for an entity.
    * If a key's partition ID or any of its path kinds or names are
@@ -1818,19 +1681,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.v1.Key}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.Key)
       com.google.datastore.v1.KeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
       return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Key_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.datastore.v1.Key.class, com.google.datastore.v1.Key.Builder.class);
     }
@@ -1840,17 +1703,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPathFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1870,7 +1733,8 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
       return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_descriptor;
     }
 
@@ -1914,39 +1778,38 @@ public com.google.datastore.v1.Key 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.datastore.v1.Key) {
-        return mergeFrom((com.google.datastore.v1.Key) other);
+        return mergeFrom((com.google.datastore.v1.Key)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1976,10 +1839,9 @@ public Builder mergeFrom(com.google.datastore.v1.Key other) {
             pathBuilder_ = null;
             path_ = other.path_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pathBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPathFieldBuilder()
-                    : null;
+            pathBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPathFieldBuilder() : null;
           } else {
             pathBuilder_.addAllMessages(other.path_);
           }
@@ -2013,18 +1875,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.datastore.v1.PartitionId partitionId_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.PartitionId,
-            com.google.datastore.v1.PartitionId.Builder,
-            com.google.datastore.v1.PartitionIdOrBuilder>
-        partitionIdBuilder_;
+        com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder> partitionIdBuilder_;
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2032,15 +1888,12 @@ public Builder mergeFrom(
      * 
* * .google.datastore.v1.PartitionId partition_id = 1; - * * @return Whether the partitionId field is set. */ public boolean hasPartitionId() { return partitionIdBuilder_ != null || partitionId_ != null; } /** - * - * *
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2048,21 +1901,16 @@ public boolean hasPartitionId() {
      * 
* * .google.datastore.v1.PartitionId partition_id = 1; - * * @return The partitionId. */ public com.google.datastore.v1.PartitionId getPartitionId() { if (partitionIdBuilder_ == null) { - return partitionId_ == null - ? com.google.datastore.v1.PartitionId.getDefaultInstance() - : partitionId_; + return partitionId_ == null ? com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_; } else { return partitionIdBuilder_.getMessage(); } } /** - * - * *
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2085,8 +1933,6 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2095,7 +1941,8 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId value) {
      *
      * .google.datastore.v1.PartitionId partition_id = 1;
      */
-    public Builder setPartitionId(com.google.datastore.v1.PartitionId.Builder builderForValue) {
+    public Builder setPartitionId(
+        com.google.datastore.v1.PartitionId.Builder builderForValue) {
       if (partitionIdBuilder_ == null) {
         partitionId_ = builderForValue.build();
         onChanged();
@@ -2106,8 +1953,6 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2120,9 +1965,7 @@ public Builder mergePartitionId(com.google.datastore.v1.PartitionId value) {
       if (partitionIdBuilder_ == null) {
         if (partitionId_ != null) {
           partitionId_ =
-              com.google.datastore.v1.PartitionId.newBuilder(partitionId_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.datastore.v1.PartitionId.newBuilder(partitionId_).mergeFrom(value).buildPartial();
         } else {
           partitionId_ = value;
         }
@@ -2134,8 +1977,6 @@ public Builder mergePartitionId(com.google.datastore.v1.PartitionId value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2156,8 +1997,6 @@ public Builder clearPartitionId() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2167,13 +2006,11 @@ public Builder clearPartitionId() {
      * .google.datastore.v1.PartitionId partition_id = 1;
      */
     public com.google.datastore.v1.PartitionId.Builder getPartitionIdBuilder() {
-
+      
       onChanged();
       return getPartitionIdFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2186,14 +2023,11 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
       if (partitionIdBuilder_ != null) {
         return partitionIdBuilder_.getMessageOrBuilder();
       } else {
-        return partitionId_ == null
-            ? com.google.datastore.v1.PartitionId.getDefaultInstance()
-            : partitionId_;
+        return partitionId_ == null ?
+            com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_;
       }
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2203,41 +2037,32 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
      * .google.datastore.v1.PartitionId partition_id = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.PartitionId,
-            com.google.datastore.v1.PartitionId.Builder,
-            com.google.datastore.v1.PartitionIdOrBuilder>
+        com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder> 
         getPartitionIdFieldBuilder() {
       if (partitionIdBuilder_ == null) {
-        partitionIdBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.PartitionId,
-                com.google.datastore.v1.PartitionId.Builder,
-                com.google.datastore.v1.PartitionIdOrBuilder>(
-                getPartitionId(), getParentForChildren(), isClean());
+        partitionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder>(
+                getPartitionId(),
+                getParentForChildren(),
+                isClean());
         partitionId_ = null;
       }
       return partitionIdBuilder_;
     }
 
     private java.util.List path_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePathIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         path_ = new java.util.ArrayList(path_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Key.PathElement,
-            com.google.datastore.v1.Key.PathElement.Builder,
-            com.google.datastore.v1.Key.PathElementOrBuilder>
-        pathBuilder_;
+        com.google.datastore.v1.Key.PathElement, com.google.datastore.v1.Key.PathElement.Builder, com.google.datastore.v1.Key.PathElementOrBuilder> pathBuilder_;
 
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2265,8 +2090,6 @@ public java.util.List getPathList() {
       }
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2294,8 +2117,6 @@ public int getPathCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2323,8 +2144,6 @@ public com.google.datastore.v1.Key.PathElement getPath(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2344,7 +2163,8 @@ public com.google.datastore.v1.Key.PathElement getPath(int index) {
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public Builder setPath(int index, com.google.datastore.v1.Key.PathElement value) {
+    public Builder setPath(
+        int index, com.google.datastore.v1.Key.PathElement value) {
       if (pathBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2358,8 +2178,6 @@ public Builder setPath(int index, com.google.datastore.v1.Key.PathElement value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2391,8 +2209,6 @@ public Builder setPath(
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2426,8 +2242,6 @@ public Builder addPath(com.google.datastore.v1.Key.PathElement value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2447,7 +2261,8 @@ public Builder addPath(com.google.datastore.v1.Key.PathElement value) {
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public Builder addPath(int index, com.google.datastore.v1.Key.PathElement value) {
+    public Builder addPath(
+        int index, com.google.datastore.v1.Key.PathElement value) {
       if (pathBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2461,8 +2276,6 @@ public Builder addPath(int index, com.google.datastore.v1.Key.PathElement value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2482,7 +2295,8 @@ public Builder addPath(int index, com.google.datastore.v1.Key.PathElement value)
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public Builder addPath(com.google.datastore.v1.Key.PathElement.Builder builderForValue) {
+    public Builder addPath(
+        com.google.datastore.v1.Key.PathElement.Builder builderForValue) {
       if (pathBuilder_ == null) {
         ensurePathIsMutable();
         path_.add(builderForValue.build());
@@ -2493,8 +2307,6 @@ public Builder addPath(com.google.datastore.v1.Key.PathElement.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2526,8 +2338,6 @@ public Builder addPath(
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2551,7 +2361,8 @@ public Builder addAllPath(
         java.lang.Iterable values) {
       if (pathBuilder_ == null) {
         ensurePathIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, path_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, path_);
         onChanged();
       } else {
         pathBuilder_.addAllMessages(values);
@@ -2559,8 +2370,6 @@ public Builder addAllPath(
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2591,8 +2400,6 @@ public Builder clearPath() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2623,8 +2430,6 @@ public Builder removePath(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2644,12 +2449,11 @@ public Builder removePath(int index) {
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public com.google.datastore.v1.Key.PathElement.Builder getPathBuilder(int index) {
+    public com.google.datastore.v1.Key.PathElement.Builder getPathBuilder(
+        int index) {
       return getPathFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2669,16 +2473,14 @@ public com.google.datastore.v1.Key.PathElement.Builder getPathBuilder(int index)
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int index) {
+    public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
+        int index) {
       if (pathBuilder_ == null) {
-        return path_.get(index);
-      } else {
+        return path_.get(index);  } else {
         return pathBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2698,8 +2500,8 @@ public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int ind
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public java.util.List
-        getPathOrBuilderList() {
+    public java.util.List 
+         getPathOrBuilderList() {
       if (pathBuilder_ != null) {
         return pathBuilder_.getMessageOrBuilderList();
       } else {
@@ -2707,8 +2509,6 @@ public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2729,12 +2529,10 @@ public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int ind
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
     public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder() {
-      return getPathFieldBuilder()
-          .addBuilder(com.google.datastore.v1.Key.PathElement.getDefaultInstance());
+      return getPathFieldBuilder().addBuilder(
+          com.google.datastore.v1.Key.PathElement.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2754,13 +2552,12 @@ public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder() {
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder(int index) {
-      return getPathFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.Key.PathElement.getDefaultInstance());
+    public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder(
+        int index) {
+      return getPathFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.Key.PathElement.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2780,29 +2577,27 @@ public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder(int index)
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public java.util.List getPathBuilderList() {
+    public java.util.List 
+         getPathBuilderList() {
       return getPathFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Key.PathElement,
-            com.google.datastore.v1.Key.PathElement.Builder,
-            com.google.datastore.v1.Key.PathElementOrBuilder>
+        com.google.datastore.v1.Key.PathElement, com.google.datastore.v1.Key.PathElement.Builder, com.google.datastore.v1.Key.PathElementOrBuilder> 
         getPathFieldBuilder() {
       if (pathBuilder_ == null) {
-        pathBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.Key.PathElement,
-                com.google.datastore.v1.Key.PathElement.Builder,
-                com.google.datastore.v1.Key.PathElementOrBuilder>(
-                path_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        pathBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.Key.PathElement, com.google.datastore.v1.Key.PathElement.Builder, com.google.datastore.v1.Key.PathElementOrBuilder>(
+                path_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         path_ = null;
       }
       return pathBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2812,12 +2607,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.Key)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.Key)
   private static final com.google.datastore.v1.Key DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.Key();
   }
@@ -2826,16 +2621,16 @@ public static com.google.datastore.v1.Key getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Key parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Key(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Key parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Key(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2850,4 +2645,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.Key getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
similarity index 88%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
index 37543f602..97e5ae5fa 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/entity.proto
 
 package com.google.datastore.v1;
 
-public interface KeyOrBuilder
-    extends
+public interface KeyOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.Key)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -33,13 +15,10 @@ public interface KeyOrBuilder
    * 
* * .google.datastore.v1.PartitionId partition_id = 1; - * * @return Whether the partitionId field is set. */ boolean hasPartitionId(); /** - * - * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -47,13 +26,10 @@ public interface KeyOrBuilder
    * 
* * .google.datastore.v1.PartitionId partition_id = 1; - * * @return The partitionId. */ com.google.datastore.v1.PartitionId getPartitionId(); /** - * - * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -65,8 +41,6 @@ public interface KeyOrBuilder
   com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder();
 
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -86,10 +60,9 @@ public interface KeyOrBuilder
    *
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
-  java.util.List getPathList();
+  java.util.List 
+      getPathList();
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -111,8 +84,6 @@ public interface KeyOrBuilder
    */
   com.google.datastore.v1.Key.PathElement getPath(int index);
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -134,8 +105,6 @@ public interface KeyOrBuilder
    */
   int getPathCount();
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -155,10 +124,9 @@ public interface KeyOrBuilder
    *
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
-  java.util.List getPathOrBuilderList();
+  java.util.List 
+      getPathOrBuilderList();
   /**
-   *
-   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -178,5 +146,6 @@ public interface KeyOrBuilder
    *
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
-  com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int index);
+  com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
similarity index 69%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
index 2c1af7333..b16ac71da 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * A representation of a kind.
  * 
* * Protobuf type {@code google.datastore.v1.KindExpression} */ -public final class KindExpression extends com.google.protobuf.GeneratedMessageV3 - implements +public final class KindExpression extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.KindExpression) KindExpressionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use KindExpression.newBuilder() to construct. private KindExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KindExpression() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KindExpression(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KindExpression( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private KindExpression( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private KindExpression( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_KindExpression_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_KindExpression_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.KindExpression.class, - com.google.datastore.v1.KindExpression.Builder.class); + com.google.datastore.v1.KindExpression.class, com.google.datastore.v1.KindExpression.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the kind.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the kind.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -199,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.KindExpression)) { return super.equals(obj); } com.google.datastore.v1.KindExpression other = (com.google.datastore.v1.KindExpression) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.KindExpression parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.KindExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.KindExpression parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.KindExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.KindExpression parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.KindExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.KindExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.KindExpression parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.KindExpression parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.KindExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.KindExpression parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.KindExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.KindExpression parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.KindExpression prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A representation of a kind.
    * 
* * Protobuf type {@code google.datastore.v1.KindExpression} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.KindExpression) com.google.datastore.v1.KindExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_KindExpression_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_KindExpression_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.KindExpression.class, - com.google.datastore.v1.KindExpression.Builder.class); + com.google.datastore.v1.KindExpression.class, com.google.datastore.v1.KindExpression.Builder.class); } // Construct using com.google.datastore.v1.KindExpression.newBuilder() @@ -353,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_KindExpression_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_descriptor; } @java.lang.Override @@ -392,8 +362,7 @@ public com.google.datastore.v1.KindExpression build() { @java.lang.Override public com.google.datastore.v1.KindExpression buildPartial() { - com.google.datastore.v1.KindExpression result = - new com.google.datastore.v1.KindExpression(this); + com.google.datastore.v1.KindExpression result = new com.google.datastore.v1.KindExpression(this); result.name_ = name_; onBuilt(); return result; @@ -403,39 +372,38 @@ public com.google.datastore.v1.KindExpression 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.datastore.v1.KindExpression) { - return mergeFrom((com.google.datastore.v1.KindExpression) other); + return mergeFrom((com.google.datastore.v1.KindExpression)other); } else { super.mergeFrom(other); return this; @@ -479,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The name of the kind.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -501,21 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the kind.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -523,68 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the kind.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the kind.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the kind.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.KindExpression) } // @@protoc_insertion_point(class_scope:google.datastore.v1.KindExpression) private static final com.google.datastore.v1.KindExpression DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.KindExpression(); } @@ -608,16 +566,16 @@ public static com.google.datastore.v1.KindExpression getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KindExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KindExpression(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KindExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KindExpression(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.KindExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java new file mode 100644 index 000000000..38b1ee3e7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/v1/query.proto + +package com.google.datastore.v1; + +public interface KindExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.datastore.v1.KindExpression) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the kind.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the kind.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java similarity index 70% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java index aa6053927..d6684697c 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The request for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
  * 
* * Protobuf type {@code google.datastore.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.datastore.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() { projectId_ = ""; keys_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ 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; } - private LookupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,45 +55,41 @@ private LookupRequest( case 0: done = true; break; - case 10: - { - com.google.datastore.v1.ReadOptions.Builder subBuilder = null; - if (readOptions_ != null) { - subBuilder = readOptions_.toBuilder(); - } - readOptions_ = - input.readMessage( - com.google.datastore.v1.ReadOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readOptions_); - readOptions_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.v1.ReadOptions.Builder subBuilder = null; + if (readOptions_ != null) { + subBuilder = readOptions_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keys_.add(input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; + readOptions_ = input.readMessage(com.google.datastore.v1.ReadOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readOptions_); + readOptions_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + keys_.add( + input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,7 +97,8 @@ private LookupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -127,33 +107,27 @@ private LookupRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.LookupRequest.class, - com.google.datastore.v1.LookupRequest.Builder.class); + com.google.datastore.v1.LookupRequest.class, com.google.datastore.v1.LookupRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -162,29 +136,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -195,14 +169,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int READ_OPTIONS_FIELD_NUMBER = 1; private com.google.datastore.v1.ReadOptions readOptions_; /** - * - * *
    * The options for this lookup request.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return Whether the readOptions field is set. */ @java.lang.Override @@ -210,25 +181,18 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** - * - * *
    * The options for this lookup request.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return The readOptions. */ @java.lang.Override public com.google.datastore.v1.ReadOptions getReadOptions() { - return readOptions_ == null - ? com.google.datastore.v1.ReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; } /** - * - * *
    * The options for this lookup request.
    * 
@@ -243,78 +207,64 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { public static final int KEYS_FIELD_NUMBER = 3; private java.util.List keys_; /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getKeysList() { return keys_; } /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List getKeysOrBuilderList() { + public java.util.List + getKeysOrBuilderList() { return keys_; } /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getKeysCount() { return keys_.size(); } /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.datastore.v1.Key getKeys(int index) { return keys_.get(index); } /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,7 +276,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (readOptions_ != null) { output.writeMessage(1, getReadOptions()); } @@ -346,10 +297,12 @@ public int getSerializedSize() { size = 0; if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReadOptions()); } for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, keys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, keys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -362,19 +315,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.datastore.v1.LookupRequest)) { return super.equals(obj); } com.google.datastore.v1.LookupRequest other = (com.google.datastore.v1.LookupRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions().equals(other.getReadOptions())) return false; + if (!getReadOptions() + .equals(other.getReadOptions())) return false; } - if (!getKeysList().equals(other.getKeysList())) return false; + if (!getKeysList() + .equals(other.getKeysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -401,126 +357,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.LookupRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.LookupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.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.datastore.v1.LookupRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.datastore.v1.LookupRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.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.datastore.v1.LookupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.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.datastore.v1.LookupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.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.datastore.v1.LookupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.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.datastore.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.datastore.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.datastore.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; } /** - * - * *
    * The request for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
    * 
* * Protobuf type {@code google.datastore.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.datastore.v1.LookupRequest) com.google.datastore.v1.LookupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.LookupRequest.class, - com.google.datastore.v1.LookupRequest.Builder.class); + com.google.datastore.v1.LookupRequest.class, com.google.datastore.v1.LookupRequest.Builder.class); } // Construct using com.google.datastore.v1.LookupRequest.newBuilder() @@ -528,17 +476,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getKeysFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -560,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_descriptor; } @java.lang.Override @@ -581,8 +529,7 @@ public com.google.datastore.v1.LookupRequest build() { @java.lang.Override public com.google.datastore.v1.LookupRequest buildPartial() { - com.google.datastore.v1.LookupRequest result = - new com.google.datastore.v1.LookupRequest(this); + com.google.datastore.v1.LookupRequest result = new com.google.datastore.v1.LookupRequest(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; if (readOptionsBuilder_ == null) { @@ -607,39 +554,38 @@ public com.google.datastore.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.datastore.v1.LookupRequest) { - return mergeFrom((com.google.datastore.v1.LookupRequest) other); + return mergeFrom((com.google.datastore.v1.LookupRequest)other); } else { super.mergeFrom(other); return this; @@ -673,10 +619,9 @@ public Builder mergeFrom(com.google.datastore.v1.LookupRequest other) { keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeysFieldBuilder() - : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeysFieldBuilder() : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -710,25 +655,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -737,21 +679,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -759,61 +700,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -821,47 +755,34 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private com.google.datastore.v1.ReadOptions readOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, - com.google.datastore.v1.ReadOptions.Builder, - com.google.datastore.v1.ReadOptionsOrBuilder> - readOptionsBuilder_; + com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder> readOptionsBuilder_; /** - * - * *
      * The options for this lookup request.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return readOptionsBuilder_ != null || readOptions_ != null; } /** - * - * *
      * The options for this lookup request.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return The readOptions. */ public com.google.datastore.v1.ReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null - ? com.google.datastore.v1.ReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** - * - * *
      * The options for this lookup request.
      * 
@@ -882,15 +803,14 @@ public Builder setReadOptions(com.google.datastore.v1.ReadOptions value) { return this; } /** - * - * *
      * The options for this lookup request.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; */ - public Builder setReadOptions(com.google.datastore.v1.ReadOptions.Builder builderForValue) { + public Builder setReadOptions( + com.google.datastore.v1.ReadOptions.Builder builderForValue) { if (readOptionsBuilder_ == null) { readOptions_ = builderForValue.build(); onChanged(); @@ -901,8 +821,6 @@ public Builder setReadOptions(com.google.datastore.v1.ReadOptions.Builder builde return this; } /** - * - * *
      * The options for this lookup request.
      * 
@@ -913,9 +831,7 @@ public Builder mergeReadOptions(com.google.datastore.v1.ReadOptions value) { if (readOptionsBuilder_ == null) { if (readOptions_ != null) { readOptions_ = - com.google.datastore.v1.ReadOptions.newBuilder(readOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.v1.ReadOptions.newBuilder(readOptions_).mergeFrom(value).buildPartial(); } else { readOptions_ = value; } @@ -927,8 +843,6 @@ public Builder mergeReadOptions(com.google.datastore.v1.ReadOptions value) { return this; } /** - * - * *
      * The options for this lookup request.
      * 
@@ -947,8 +861,6 @@ public Builder clearReadOptions() { return this; } /** - * - * *
      * The options for this lookup request.
      * 
@@ -956,13 +868,11 @@ public Builder clearReadOptions() { * .google.datastore.v1.ReadOptions read_options = 1; */ public com.google.datastore.v1.ReadOptions.Builder getReadOptionsBuilder() { - + onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * The options for this lookup request.
      * 
@@ -973,14 +883,11 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null - ? com.google.datastore.v1.ReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? + com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; } } /** - * - * *
      * The options for this lookup request.
      * 
@@ -988,46 +895,37 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { * .google.datastore.v1.ReadOptions read_options = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, - com.google.datastore.v1.ReadOptions.Builder, - com.google.datastore.v1.ReadOptionsOrBuilder> + com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, - com.google.datastore.v1.ReadOptions.Builder, - com.google.datastore.v1.ReadOptionsOrBuilder>( - getReadOptions(), getParentForChildren(), isClean()); + readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder>( + getReadOptions(), + getParentForChildren(), + isClean()); readOptions_ = null; } return readOptionsBuilder_; } - private java.util.List keys_ = java.util.Collections.emptyList(); - + private java.util.List keys_ = + java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> - keysBuilder_; + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keysBuilder_; /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getKeysList() { if (keysBuilder_ == null) { @@ -1037,14 +935,11 @@ public java.util.List getKeysList() { } } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ public int getKeysCount() { if (keysBuilder_ == null) { @@ -1054,14 +949,11 @@ public int getKeysCount() { } } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.v1.Key getKeys(int index) { if (keysBuilder_ == null) { @@ -1071,16 +963,14 @@ public com.google.datastore.v1.Key getKeys(int index) { } } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKeys(int index, com.google.datastore.v1.Key value) { + public Builder setKeys( + int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1094,16 +984,14 @@ public Builder setKeys(int index, com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder setKeys( + int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.set(index, builderForValue.build()); @@ -1114,14 +1002,11 @@ public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderFor return this; } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addKeys(com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { @@ -1137,16 +1022,14 @@ public Builder addKeys(com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(int index, com.google.datastore.v1.Key value) { + public Builder addKeys( + int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1160,16 +1043,14 @@ public Builder addKeys(int index, com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys( + com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); @@ -1180,16 +1061,14 @@ public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { return this; } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys( + int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(index, builderForValue.build()); @@ -1200,19 +1079,18 @@ public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderFor return this; } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addAllKeys(java.lang.Iterable values) { + public Builder addAllKeys( + java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); @@ -1220,14 +1098,11 @@ public Builder addAllKeys(java.lang.Iterable * Required. Keys of entities to look up. *
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearKeys() { if (keysBuilder_ == null) { @@ -1240,14 +1115,11 @@ public Builder clearKeys() { return this; } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeKeys(int index) { if (keysBuilder_ == null) { @@ -1260,46 +1132,39 @@ public Builder removeKeys(int index) { return this; } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) { + public com.google.datastore.v1.Key.Builder getKeysBuilder( + int index) { return getKeysFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index) { if (keysBuilder_ == null) { - return keys_.get(index); - } else { + return keys_.get(index); } else { return keysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getKeysOrBuilderList() { + public java.util.List + getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { @@ -1307,65 +1172,56 @@ public java.util.List getKeysOrB } } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.v1.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance()); + return getKeysFieldBuilder().addBuilder( + com.google.datastore.v1.Key.getDefaultInstance()); } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) { - return getKeysFieldBuilder() - .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance()); + public com.google.datastore.v1.Key.Builder addKeysBuilder( + int index) { + return getKeysFieldBuilder().addBuilder( + index, com.google.datastore.v1.Key.getDefaultInstance()); } /** - * - * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getKeysBuilderList() { + public java.util.List + getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder>( - keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>( + keys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); keys_ = null; } return keysBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1375,12 +1231,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.LookupRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.LookupRequest) private static final com.google.datastore.v1.LookupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.LookupRequest(); } @@ -1389,16 +1245,16 @@ public static com.google.datastore.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 { - return new LookupRequest(input, extensionRegistry); - } - }; + 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 { + return new LookupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1413,4 +1269,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.LookupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java index eb369b37e..ddb71fc87 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface LookupRequestOrBuilder - extends +public interface LookupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.LookupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * The options for this lookup request.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** - * - * *
    * The options for this lookup request.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return The readOptions. */ com.google.datastore.v1.ReadOptions getReadOptions(); /** - * - * *
    * The options for this lookup request.
    * 
@@ -84,58 +55,46 @@ public interface LookupRequestOrBuilder com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder(); /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getKeysList(); + java.util.List + getKeysList(); /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.datastore.v1.Key getKeys(int index); /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ int getKeysCount(); /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getKeysOrBuilderList(); + java.util.List + getKeysOrBuilderList(); /** - * - * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index); + com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index); } diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java similarity index 80% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java index f28afaa40..c8ee3ac95 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The response for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
  * 
* * Protobuf type {@code google.datastore.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.datastore.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() { found_ = java.util.Collections.emptyList(); missing_ = java.util.Collections.emptyList(); @@ -45,15 +27,16 @@ 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; } - private LookupResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,60 +56,53 @@ private LookupResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - found_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - found_.add( - input.readMessage( - com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + found_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missing_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - missing_.add( - input.readMessage( - com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); - break; + found_.add( + input.readMessage(com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missing_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + missing_.add( + input.readMessage(com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + deferred_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - deferred_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - deferred_.add( - input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; + deferred_.add( + input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -134,7 +110,8 @@ private LookupResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { found_ = java.util.Collections.unmodifiableList(found_); @@ -149,27 +126,22 @@ private LookupResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.LookupResponse.class, - com.google.datastore.v1.LookupResponse.Builder.class); + com.google.datastore.v1.LookupResponse.class, com.google.datastore.v1.LookupResponse.Builder.class); } public static final int FOUND_FIELD_NUMBER = 1; private java.util.List found_; /** - * - * *
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -183,8 +155,6 @@ public java.util.List getFoundList() {
     return found_;
   }
   /**
-   *
-   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -194,13 +164,11 @@ public java.util.List getFoundList() {
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getFoundOrBuilderList() {
     return found_;
   }
   /**
-   *
-   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -214,8 +182,6 @@ public int getFoundCount() {
     return found_.size();
   }
   /**
-   *
-   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -229,8 +195,6 @@ public com.google.datastore.v1.EntityResult getFound(int index) {
     return found_.get(index);
   }
   /**
-   *
-   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -240,15 +204,14 @@ public com.google.datastore.v1.EntityResult getFound(int index) {
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
   @java.lang.Override
-  public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index) {
+  public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
+      int index) {
     return found_.get(index);
   }
 
   public static final int MISSING_FIELD_NUMBER = 2;
   private java.util.List missing_;
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -262,8 +225,6 @@ public java.util.List getMissingList() {
     return missing_;
   }
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -273,13 +234,11 @@ public java.util.List getMissingList() {
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getMissingOrBuilderList() {
     return missing_;
   }
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -293,8 +252,6 @@ public int getMissingCount() {
     return missing_.size();
   }
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -308,8 +265,6 @@ public com.google.datastore.v1.EntityResult getMissing(int index) {
     return missing_.get(index);
   }
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -319,15 +274,14 @@ public com.google.datastore.v1.EntityResult getMissing(int index) {
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
   @java.lang.Override
-  public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int index) {
+  public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
+      int index) {
     return missing_.get(index);
   }
 
   public static final int DEFERRED_FIELD_NUMBER = 3;
   private java.util.List deferred_;
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -341,8 +295,6 @@ public java.util.List getDeferredList() {
     return deferred_;
   }
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -352,12 +304,11 @@ public java.util.List getDeferredList() {
    * repeated .google.datastore.v1.Key deferred = 3;
    */
   @java.lang.Override
-  public java.util.List getDeferredOrBuilderList() {
+  public java.util.List 
+      getDeferredOrBuilderList() {
     return deferred_;
   }
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -371,8 +322,6 @@ public int getDeferredCount() {
     return deferred_.size();
   }
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -386,8 +335,6 @@ public com.google.datastore.v1.Key getDeferred(int index) {
     return deferred_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -397,21 +344,19 @@ public com.google.datastore.v1.Key getDeferred(int index) {
    * repeated .google.datastore.v1.Key deferred = 3;
    */
   @java.lang.Override
-  public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index) {
+  public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
+      int index) {
     return deferred_.get(index);
   }
 
   public static final int READ_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * The time at which these entities were read or found missing.
    * 
* * .google.protobuf.Timestamp read_time = 7; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -419,14 +364,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * The time at which these entities were read or found missing.
    * 
* * .google.protobuf.Timestamp read_time = 7; - * * @return The readTime. */ @java.lang.Override @@ -434,8 +376,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * The time at which these entities were read or found missing.
    * 
@@ -448,7 +388,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -460,7 +399,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < found_.size(); i++) { output.writeMessage(1, found_.get(i)); } @@ -483,16 +423,20 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < found_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, found_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, found_.get(i)); } for (int i = 0; i < missing_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missing_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, missing_.get(i)); } for (int i = 0; i < deferred_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, deferred_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, deferred_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getReadTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -502,19 +446,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.datastore.v1.LookupResponse)) { return super.equals(obj); } com.google.datastore.v1.LookupResponse other = (com.google.datastore.v1.LookupResponse) obj; - if (!getFoundList().equals(other.getFoundList())) return false; - if (!getMissingList().equals(other.getMissingList())) return false; - if (!getDeferredList().equals(other.getDeferredList())) return false; + if (!getFoundList() + .equals(other.getFoundList())) return false; + if (!getMissingList() + .equals(other.getMissingList())) return false; + if (!getDeferredList() + .equals(other.getDeferredList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -548,127 +496,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.LookupResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.LookupResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.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.datastore.v1.LookupResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.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.datastore.v1.LookupResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.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.datastore.v1.LookupResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.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.datastore.v1.LookupResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.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.datastore.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.datastore.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.datastore.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; } /** - * - * *
    * The response for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
    * 
* * Protobuf type {@code google.datastore.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.datastore.v1.LookupResponse) com.google.datastore.v1.LookupResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.LookupResponse.class, - com.google.datastore.v1.LookupResponse.Builder.class); + com.google.datastore.v1.LookupResponse.class, com.google.datastore.v1.LookupResponse.Builder.class); } // Construct using com.google.datastore.v1.LookupResponse.newBuilder() @@ -676,19 +615,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFoundFieldBuilder(); getMissingFieldBuilder(); getDeferredFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -720,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_LookupResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_descriptor; } @java.lang.Override @@ -741,8 +680,7 @@ public com.google.datastore.v1.LookupResponse build() { @java.lang.Override public com.google.datastore.v1.LookupResponse buildPartial() { - com.google.datastore.v1.LookupResponse result = - new com.google.datastore.v1.LookupResponse(this); + com.google.datastore.v1.LookupResponse result = new com.google.datastore.v1.LookupResponse(this); int from_bitField0_ = bitField0_; if (foundBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -784,39 +722,38 @@ public com.google.datastore.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.datastore.v1.LookupResponse) { - return mergeFrom((com.google.datastore.v1.LookupResponse) other); + return mergeFrom((com.google.datastore.v1.LookupResponse)other); } else { super.mergeFrom(other); return this; @@ -843,10 +780,9 @@ public Builder mergeFrom(com.google.datastore.v1.LookupResponse other) { foundBuilder_ = null; found_ = other.found_; bitField0_ = (bitField0_ & ~0x00000001); - foundBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFoundFieldBuilder() - : null; + foundBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFoundFieldBuilder() : null; } else { foundBuilder_.addAllMessages(other.found_); } @@ -870,10 +806,9 @@ public Builder mergeFrom(com.google.datastore.v1.LookupResponse other) { missingBuilder_ = null; missing_ = other.missing_; bitField0_ = (bitField0_ & ~0x00000002); - missingBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMissingFieldBuilder() - : null; + missingBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMissingFieldBuilder() : null; } else { missingBuilder_.addAllMessages(other.missing_); } @@ -897,10 +832,9 @@ public Builder mergeFrom(com.google.datastore.v1.LookupResponse other) { deferredBuilder_ = null; deferred_ = other.deferred_; bitField0_ = (bitField0_ & ~0x00000004); - deferredBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDeferredFieldBuilder() - : null; + deferredBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDeferredFieldBuilder() : null; } else { deferredBuilder_.addAllMessages(other.deferred_); } @@ -937,28 +871,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List found_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoundIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { found_ = new java.util.ArrayList(found_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.EntityResult, - com.google.datastore.v1.EntityResult.Builder, - com.google.datastore.v1.EntityResultOrBuilder> - foundBuilder_; + com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> foundBuilder_; /** - * - * *
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -975,8 +902,6 @@ public java.util.List getFoundList() {
       }
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -993,8 +918,6 @@ public int getFoundCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1011,8 +934,6 @@ public com.google.datastore.v1.EntityResult getFound(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1021,7 +942,8 @@ public com.google.datastore.v1.EntityResult getFound(int index) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public Builder setFound(int index, com.google.datastore.v1.EntityResult value) {
+    public Builder setFound(
+        int index, com.google.datastore.v1.EntityResult value) {
       if (foundBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1035,8 +957,6 @@ public Builder setFound(int index, com.google.datastore.v1.EntityResult value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1057,8 +977,6 @@ public Builder setFound(
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1081,8 +999,6 @@ public Builder addFound(com.google.datastore.v1.EntityResult value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1091,7 +1007,8 @@ public Builder addFound(com.google.datastore.v1.EntityResult value) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public Builder addFound(int index, com.google.datastore.v1.EntityResult value) {
+    public Builder addFound(
+        int index, com.google.datastore.v1.EntityResult value) {
       if (foundBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1105,8 +1022,6 @@ public Builder addFound(int index, com.google.datastore.v1.EntityResult value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1115,7 +1030,8 @@ public Builder addFound(int index, com.google.datastore.v1.EntityResult value) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public Builder addFound(com.google.datastore.v1.EntityResult.Builder builderForValue) {
+    public Builder addFound(
+        com.google.datastore.v1.EntityResult.Builder builderForValue) {
       if (foundBuilder_ == null) {
         ensureFoundIsMutable();
         found_.add(builderForValue.build());
@@ -1126,8 +1042,6 @@ public Builder addFound(com.google.datastore.v1.EntityResult.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1148,8 +1062,6 @@ public Builder addFound(
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1162,7 +1074,8 @@ public Builder addAllFound(
         java.lang.Iterable values) {
       if (foundBuilder_ == null) {
         ensureFoundIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, found_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, found_);
         onChanged();
       } else {
         foundBuilder_.addAllMessages(values);
@@ -1170,8 +1083,6 @@ public Builder addAllFound(
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1191,8 +1102,6 @@ public Builder clearFound() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1212,8 +1121,6 @@ public Builder removeFound(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1222,12 +1129,11 @@ public Builder removeFound(int index) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public com.google.datastore.v1.EntityResult.Builder getFoundBuilder(int index) {
+    public com.google.datastore.v1.EntityResult.Builder getFoundBuilder(
+        int index) {
       return getFoundFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1236,16 +1142,14 @@ public com.google.datastore.v1.EntityResult.Builder getFoundBuilder(int index) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index) {
+    public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
+        int index) {
       if (foundBuilder_ == null) {
-        return found_.get(index);
-      } else {
+        return found_.get(index);  } else {
         return foundBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1254,8 +1158,8 @@ public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public java.util.List
-        getFoundOrBuilderList() {
+    public java.util.List 
+         getFoundOrBuilderList() {
       if (foundBuilder_ != null) {
         return foundBuilder_.getMessageOrBuilderList();
       } else {
@@ -1263,8 +1167,6 @@ public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index
       }
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1274,12 +1176,10 @@ public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
     public com.google.datastore.v1.EntityResult.Builder addFoundBuilder() {
-      return getFoundFieldBuilder()
-          .addBuilder(com.google.datastore.v1.EntityResult.getDefaultInstance());
+      return getFoundFieldBuilder().addBuilder(
+          com.google.datastore.v1.EntityResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1288,13 +1188,12 @@ public com.google.datastore.v1.EntityResult.Builder addFoundBuilder() {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public com.google.datastore.v1.EntityResult.Builder addFoundBuilder(int index) {
-      return getFoundFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.EntityResult.getDefaultInstance());
+    public com.google.datastore.v1.EntityResult.Builder addFoundBuilder(
+        int index) {
+      return getFoundFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.EntityResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1303,46 +1202,38 @@ public com.google.datastore.v1.EntityResult.Builder addFoundBuilder(int index) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public java.util.List getFoundBuilderList() {
+    public java.util.List 
+         getFoundBuilderList() {
       return getFoundFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.EntityResult,
-            com.google.datastore.v1.EntityResult.Builder,
-            com.google.datastore.v1.EntityResultOrBuilder>
+        com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> 
         getFoundFieldBuilder() {
       if (foundBuilder_ == null) {
-        foundBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.EntityResult,
-                com.google.datastore.v1.EntityResult.Builder,
-                com.google.datastore.v1.EntityResultOrBuilder>(
-                found_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        foundBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder>(
+                found_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         found_ = null;
       }
       return foundBuilder_;
     }
 
     private java.util.List missing_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureMissingIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         missing_ = new java.util.ArrayList(missing_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.EntityResult,
-            com.google.datastore.v1.EntityResult.Builder,
-            com.google.datastore.v1.EntityResultOrBuilder>
-        missingBuilder_;
+        com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> missingBuilder_;
 
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1359,8 +1250,6 @@ public java.util.List getMissingList() {
       }
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1377,8 +1266,6 @@ public int getMissingCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1395,8 +1282,6 @@ public com.google.datastore.v1.EntityResult getMissing(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1405,7 +1290,8 @@ public com.google.datastore.v1.EntityResult getMissing(int index) {
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public Builder setMissing(int index, com.google.datastore.v1.EntityResult value) {
+    public Builder setMissing(
+        int index, com.google.datastore.v1.EntityResult value) {
       if (missingBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1419,8 +1305,6 @@ public Builder setMissing(int index, com.google.datastore.v1.EntityResult value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1441,8 +1325,6 @@ public Builder setMissing(
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1465,8 +1347,6 @@ public Builder addMissing(com.google.datastore.v1.EntityResult value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1475,7 +1355,8 @@ public Builder addMissing(com.google.datastore.v1.EntityResult value) {
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public Builder addMissing(int index, com.google.datastore.v1.EntityResult value) {
+    public Builder addMissing(
+        int index, com.google.datastore.v1.EntityResult value) {
       if (missingBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1489,8 +1370,6 @@ public Builder addMissing(int index, com.google.datastore.v1.EntityResult value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1499,7 +1378,8 @@ public Builder addMissing(int index, com.google.datastore.v1.EntityResult value)
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public Builder addMissing(com.google.datastore.v1.EntityResult.Builder builderForValue) {
+    public Builder addMissing(
+        com.google.datastore.v1.EntityResult.Builder builderForValue) {
       if (missingBuilder_ == null) {
         ensureMissingIsMutable();
         missing_.add(builderForValue.build());
@@ -1510,8 +1390,6 @@ public Builder addMissing(com.google.datastore.v1.EntityResult.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1532,8 +1410,6 @@ public Builder addMissing(
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1546,7 +1422,8 @@ public Builder addAllMissing(
         java.lang.Iterable values) {
       if (missingBuilder_ == null) {
         ensureMissingIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missing_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, missing_);
         onChanged();
       } else {
         missingBuilder_.addAllMessages(values);
@@ -1554,8 +1431,6 @@ public Builder addAllMissing(
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1575,8 +1450,6 @@ public Builder clearMissing() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1596,8 +1469,6 @@ public Builder removeMissing(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1606,12 +1477,11 @@ public Builder removeMissing(int index) {
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public com.google.datastore.v1.EntityResult.Builder getMissingBuilder(int index) {
+    public com.google.datastore.v1.EntityResult.Builder getMissingBuilder(
+        int index) {
       return getMissingFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1620,16 +1490,14 @@ public com.google.datastore.v1.EntityResult.Builder getMissingBuilder(int index)
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int index) {
+    public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
+        int index) {
       if (missingBuilder_ == null) {
-        return missing_.get(index);
-      } else {
+        return missing_.get(index);  } else {
         return missingBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1638,8 +1506,8 @@ public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int ind
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public java.util.List
-        getMissingOrBuilderList() {
+    public java.util.List 
+         getMissingOrBuilderList() {
       if (missingBuilder_ != null) {
         return missingBuilder_.getMessageOrBuilderList();
       } else {
@@ -1647,8 +1515,6 @@ public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1658,12 +1524,10 @@ public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int ind
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
     public com.google.datastore.v1.EntityResult.Builder addMissingBuilder() {
-      return getMissingFieldBuilder()
-          .addBuilder(com.google.datastore.v1.EntityResult.getDefaultInstance());
+      return getMissingFieldBuilder().addBuilder(
+          com.google.datastore.v1.EntityResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1672,13 +1536,12 @@ public com.google.datastore.v1.EntityResult.Builder addMissingBuilder() {
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public com.google.datastore.v1.EntityResult.Builder addMissingBuilder(int index) {
-      return getMissingFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.EntityResult.getDefaultInstance());
+    public com.google.datastore.v1.EntityResult.Builder addMissingBuilder(
+        int index) {
+      return getMissingFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.EntityResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1687,46 +1550,38 @@ public com.google.datastore.v1.EntityResult.Builder addMissingBuilder(int index)
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public java.util.List getMissingBuilderList() {
+    public java.util.List 
+         getMissingBuilderList() {
       return getMissingFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.EntityResult,
-            com.google.datastore.v1.EntityResult.Builder,
-            com.google.datastore.v1.EntityResultOrBuilder>
+        com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> 
         getMissingFieldBuilder() {
       if (missingBuilder_ == null) {
-        missingBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.EntityResult,
-                com.google.datastore.v1.EntityResult.Builder,
-                com.google.datastore.v1.EntityResultOrBuilder>(
-                missing_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        missingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder>(
+                missing_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         missing_ = null;
       }
       return missingBuilder_;
     }
 
     private java.util.List deferred_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureDeferredIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
         deferred_ = new java.util.ArrayList(deferred_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
-        deferredBuilder_;
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> deferredBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1743,8 +1598,6 @@ public java.util.List getDeferredList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1761,8 +1614,6 @@ public int getDeferredCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1779,8 +1630,6 @@ public com.google.datastore.v1.Key getDeferred(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1789,7 +1638,8 @@ public com.google.datastore.v1.Key getDeferred(int index) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder setDeferred(int index, com.google.datastore.v1.Key value) {
+    public Builder setDeferred(
+        int index, com.google.datastore.v1.Key value) {
       if (deferredBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1803,8 +1653,6 @@ public Builder setDeferred(int index, com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1813,7 +1661,8 @@ public Builder setDeferred(int index, com.google.datastore.v1.Key value) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder setDeferred(int index, com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setDeferred(
+        int index, com.google.datastore.v1.Key.Builder builderForValue) {
       if (deferredBuilder_ == null) {
         ensureDeferredIsMutable();
         deferred_.set(index, builderForValue.build());
@@ -1824,8 +1673,6 @@ public Builder setDeferred(int index, com.google.datastore.v1.Key.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1848,8 +1695,6 @@ public Builder addDeferred(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1858,7 +1703,8 @@ public Builder addDeferred(com.google.datastore.v1.Key value) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder addDeferred(int index, com.google.datastore.v1.Key value) {
+    public Builder addDeferred(
+        int index, com.google.datastore.v1.Key value) {
       if (deferredBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1872,8 +1718,6 @@ public Builder addDeferred(int index, com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1882,7 +1726,8 @@ public Builder addDeferred(int index, com.google.datastore.v1.Key value) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder addDeferred(com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder addDeferred(
+        com.google.datastore.v1.Key.Builder builderForValue) {
       if (deferredBuilder_ == null) {
         ensureDeferredIsMutable();
         deferred_.add(builderForValue.build());
@@ -1893,8 +1738,6 @@ public Builder addDeferred(com.google.datastore.v1.Key.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1903,7 +1746,8 @@ public Builder addDeferred(com.google.datastore.v1.Key.Builder builderForValue)
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder addDeferred(int index, com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder addDeferred(
+        int index, com.google.datastore.v1.Key.Builder builderForValue) {
       if (deferredBuilder_ == null) {
         ensureDeferredIsMutable();
         deferred_.add(index, builderForValue.build());
@@ -1914,8 +1758,6 @@ public Builder addDeferred(int index, com.google.datastore.v1.Key.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1928,7 +1770,8 @@ public Builder addAllDeferred(
         java.lang.Iterable values) {
       if (deferredBuilder_ == null) {
         ensureDeferredIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deferred_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, deferred_);
         onChanged();
       } else {
         deferredBuilder_.addAllMessages(values);
@@ -1936,8 +1779,6 @@ public Builder addAllDeferred(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1957,8 +1798,6 @@ public Builder clearDeferred() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1978,8 +1817,6 @@ public Builder removeDeferred(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1988,12 +1825,11 @@ public Builder removeDeferred(int index) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public com.google.datastore.v1.Key.Builder getDeferredBuilder(int index) {
+    public com.google.datastore.v1.Key.Builder getDeferredBuilder(
+        int index) {
       return getDeferredFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -2002,16 +1838,14 @@ public com.google.datastore.v1.Key.Builder getDeferredBuilder(int index) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index) {
+    public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
+        int index) {
       if (deferredBuilder_ == null) {
-        return deferred_.get(index);
-      } else {
+        return deferred_.get(index);  } else {
         return deferredBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -2020,8 +1854,8 @@ public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public java.util.List
-        getDeferredOrBuilderList() {
+    public java.util.List 
+         getDeferredOrBuilderList() {
       if (deferredBuilder_ != null) {
         return deferredBuilder_.getMessageOrBuilderList();
       } else {
@@ -2029,8 +1863,6 @@ public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -2040,11 +1872,10 @@ public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index) {
      * repeated .google.datastore.v1.Key deferred = 3;
      */
     public com.google.datastore.v1.Key.Builder addDeferredBuilder() {
-      return getDeferredFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance());
+      return getDeferredFieldBuilder().addBuilder(
+          com.google.datastore.v1.Key.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -2053,13 +1884,12 @@ public com.google.datastore.v1.Key.Builder addDeferredBuilder() {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public com.google.datastore.v1.Key.Builder addDeferredBuilder(int index) {
-      return getDeferredFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance());
+    public com.google.datastore.v1.Key.Builder addDeferredBuilder(
+        int index) {
+      return getDeferredFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.Key.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -2068,22 +1898,20 @@ public com.google.datastore.v1.Key.Builder addDeferredBuilder(int index) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public java.util.List getDeferredBuilderList() {
+    public java.util.List 
+         getDeferredBuilderList() {
       return getDeferredFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
         getDeferredFieldBuilder() {
       if (deferredBuilder_ == null) {
-        deferredBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.Key,
-                com.google.datastore.v1.Key.Builder,
-                com.google.datastore.v1.KeyOrBuilder>(
-                deferred_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        deferredBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
+                deferred_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         deferred_ = null;
       }
       return deferredBuilder_;
@@ -2091,33 +1919,24 @@ public java.util.List getDeferredBuilderLis
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        readTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which these entities were read or found missing.
      * 
* * .google.protobuf.Timestamp read_time = 7; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * The time at which these entities were read or found missing.
      * 
* * .google.protobuf.Timestamp read_time = 7; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2128,8 +1947,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * The time at which these entities were read or found missing.
      * 
@@ -2150,15 +1967,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which these entities were read or found missing.
      * 
* * .google.protobuf.Timestamp read_time = 7; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -2169,8 +1985,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * The time at which these entities were read or found missing.
      * 
@@ -2181,7 +1995,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -2193,8 +2007,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which these entities were read or found missing.
      * 
@@ -2213,8 +2025,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * The time at which these entities were read or found missing.
      * 
@@ -2222,13 +2032,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 7; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which these entities were read or found missing.
      * 
@@ -2239,12 +2047,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * The time at which these entities were read or found missing.
      * 
@@ -2252,24 +2059,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 7; */ 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> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2279,12 +2083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.LookupResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.LookupResponse) private static final com.google.datastore.v1.LookupResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.LookupResponse(); } @@ -2293,16 +2097,16 @@ public static com.google.datastore.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 { - return new LookupResponse(input, extensionRegistry); - } - }; + 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 { + return new LookupResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2317,4 +2121,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.LookupResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java similarity index 82% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java index 5d89e1b33..4b7111ea0 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface LookupResponseOrBuilder - extends +public interface LookupResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.LookupResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -34,10 +16,9 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
-  java.util.List getFoundList();
+  java.util.List 
+      getFoundList();
   /**
-   *
-   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -48,8 +29,6 @@ public interface LookupResponseOrBuilder
    */
   com.google.datastore.v1.EntityResult getFound(int index);
   /**
-   *
-   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -60,8 +39,6 @@ public interface LookupResponseOrBuilder
    */
   int getFoundCount();
   /**
-   *
-   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -70,10 +47,9 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
-  java.util.List getFoundOrBuilderList();
+  java.util.List 
+      getFoundOrBuilderList();
   /**
-   *
-   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -82,11 +58,10 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
-  com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index);
+  com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -95,10 +70,9 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
-  java.util.List getMissingList();
+  java.util.List 
+      getMissingList();
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -109,8 +83,6 @@ public interface LookupResponseOrBuilder
    */
   com.google.datastore.v1.EntityResult getMissing(int index);
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -121,8 +93,6 @@ public interface LookupResponseOrBuilder
    */
   int getMissingCount();
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -131,10 +101,9 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
-  java.util.List getMissingOrBuilderList();
+  java.util.List 
+      getMissingOrBuilderList();
   /**
-   *
-   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -143,11 +112,10 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
-  com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int index);
+  com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -156,10 +124,9 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.Key deferred = 3;
    */
-  java.util.List getDeferredList();
+  java.util.List 
+      getDeferredList();
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -170,8 +137,6 @@ public interface LookupResponseOrBuilder
    */
   com.google.datastore.v1.Key getDeferred(int index);
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -182,8 +147,6 @@ public interface LookupResponseOrBuilder
    */
   int getDeferredCount();
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -192,10 +155,9 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.Key deferred = 3;
    */
-  java.util.List getDeferredOrBuilderList();
+  java.util.List 
+      getDeferredOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -204,35 +166,28 @@ public interface LookupResponseOrBuilder
    *
    * repeated .google.datastore.v1.Key deferred = 3;
    */
-  com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index);
+  com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The time at which these entities were read or found missing.
    * 
* * .google.protobuf.Timestamp read_time = 7; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * The time at which these entities were read or found missing.
    * 
* * .google.protobuf.Timestamp read_time = 7; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * The time at which these entities were read or found missing.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java similarity index 74% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java index aea812247..0786e58f4 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * A mutation to apply to an entity.
  * 
* * Protobuf type {@code google.datastore.v1.Mutation} */ -public final class Mutation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Mutation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.Mutation) MutationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Mutation.newBuilder() to construct. private Mutation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Mutation() {} + private Mutation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Mutation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Mutation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,95 +52,88 @@ private Mutation( case 0: done = true; break; - case 34: - { - com.google.datastore.v1.Entity.Builder subBuilder = null; - if (operationCase_ == 4) { - subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); - } - operation_ = - input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); - operation_ = subBuilder.buildPartial(); - } - operationCase_ = 4; - break; + case 34: { + com.google.datastore.v1.Entity.Builder subBuilder = null; + if (operationCase_ == 4) { + subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); } - case 42: - { - com.google.datastore.v1.Entity.Builder subBuilder = null; - if (operationCase_ == 5) { - subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); - } - operation_ = - input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); - operation_ = subBuilder.buildPartial(); - } - operationCase_ = 5; - break; + operation_ = + input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); + operation_ = subBuilder.buildPartial(); } - case 50: - { - com.google.datastore.v1.Entity.Builder subBuilder = null; - if (operationCase_ == 6) { - subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); - } - operation_ = - input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); - operation_ = subBuilder.buildPartial(); - } - operationCase_ = 6; - break; + operationCase_ = 4; + break; + } + case 42: { + com.google.datastore.v1.Entity.Builder subBuilder = null; + if (operationCase_ == 5) { + subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); } - case 58: - { - com.google.datastore.v1.Key.Builder subBuilder = null; - if (operationCase_ == 7) { - subBuilder = ((com.google.datastore.v1.Key) operation_).toBuilder(); - } - operation_ = - input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Key) operation_); - operation_ = subBuilder.buildPartial(); - } - operationCase_ = 7; - break; + operation_ = + input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); + operation_ = subBuilder.buildPartial(); } - case 64: - { - conflictDetectionStrategy_ = input.readInt64(); - conflictDetectionStrategyCase_ = 8; - break; + operationCase_ = 5; + break; + } + case 50: { + com.google.datastore.v1.Entity.Builder subBuilder = null; + if (operationCase_ == 6) { + subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (conflictDetectionStrategyCase_ == 11) { - subBuilder = - ((com.google.protobuf.Timestamp) conflictDetectionStrategy_).toBuilder(); - } - conflictDetectionStrategy_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) conflictDetectionStrategy_); - conflictDetectionStrategy_ = subBuilder.buildPartial(); - } - conflictDetectionStrategyCase_ = 11; - break; + operation_ = + input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); + operation_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + operationCase_ = 6; + break; + } + case 58: { + com.google.datastore.v1.Key.Builder subBuilder = null; + if (operationCase_ == 7) { + subBuilder = ((com.google.datastore.v1.Key) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Key) operation_); + operation_ = subBuilder.buildPartial(); } + operationCase_ = 7; + break; + } + case 64: { + conflictDetectionStrategy_ = input.readInt64(); + conflictDetectionStrategyCase_ = 8; + break; + } + case 90: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (conflictDetectionStrategyCase_ == 11) { + subBuilder = ((com.google.protobuf.Timestamp) conflictDetectionStrategy_).toBuilder(); + } + conflictDetectionStrategy_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) conflictDetectionStrategy_); + conflictDetectionStrategy_ = subBuilder.buildPartial(); + } + conflictDetectionStrategyCase_ = 11; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -164,33 +141,30 @@ private Mutation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_Mutation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_Mutation_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Mutation.class, com.google.datastore.v1.Mutation.Builder.class); } private int operationCase_ = 0; private java.lang.Object operation_; - public enum OperationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INSERT(4), UPDATE(5), @@ -198,7 +172,6 @@ public enum OperationCase DELETE(7), OPERATION_NOT_SET(0); private final int value; - private OperationCase(int value) { this.value = value; } @@ -214,42 +187,34 @@ public static OperationCase valueOf(int value) { public static OperationCase forNumber(int value) { switch (value) { - case 4: - return INSERT; - case 5: - return UPDATE; - case 6: - return UPSERT; - case 7: - return DELETE; - case 0: - return OPERATION_NOT_SET; - default: - return null; + case 4: return INSERT; + case 5: return UPDATE; + case 6: return UPSERT; + case 7: return DELETE; + case 0: return OPERATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public OperationCase getOperationCase() { - return OperationCase.forNumber(operationCase_); + public OperationCase + getOperationCase() { + return OperationCase.forNumber( + operationCase_); } private int conflictDetectionStrategyCase_ = 0; private java.lang.Object conflictDetectionStrategy_; - public enum ConflictDetectionStrategyCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BASE_VERSION(8), UPDATE_TIME(11), CONFLICTDETECTIONSTRATEGY_NOT_SET(0); private final int value; - private ConflictDetectionStrategyCase(int value) { this.value = value; } @@ -265,37 +230,31 @@ public static ConflictDetectionStrategyCase valueOf(int value) { public static ConflictDetectionStrategyCase forNumber(int value) { switch (value) { - case 8: - return BASE_VERSION; - case 11: - return UPDATE_TIME; - case 0: - return CONFLICTDETECTIONSTRATEGY_NOT_SET; - default: - return null; + case 8: return BASE_VERSION; + case 11: return UPDATE_TIME; + case 0: return CONFLICTDETECTIONSTRATEGY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConflictDetectionStrategyCase getConflictDetectionStrategyCase() { - return ConflictDetectionStrategyCase.forNumber(conflictDetectionStrategyCase_); + public ConflictDetectionStrategyCase + getConflictDetectionStrategyCase() { + return ConflictDetectionStrategyCase.forNumber( + conflictDetectionStrategyCase_); } public static final int INSERT_FIELD_NUMBER = 4; /** - * - * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity insert = 4; - * * @return Whether the insert field is set. */ @java.lang.Override @@ -303,27 +262,22 @@ public boolean hasInsert() { return operationCase_ == 4; } /** - * - * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity insert = 4; - * * @return The insert. */ @java.lang.Override public com.google.datastore.v1.Entity getInsert() { if (operationCase_ == 4) { - return (com.google.datastore.v1.Entity) operation_; + return (com.google.datastore.v1.Entity) operation_; } return com.google.datastore.v1.Entity.getDefaultInstance(); } /** - * - * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
@@ -334,22 +288,19 @@ public com.google.datastore.v1.Entity getInsert() {
   @java.lang.Override
   public com.google.datastore.v1.EntityOrBuilder getInsertOrBuilder() {
     if (operationCase_ == 4) {
-      return (com.google.datastore.v1.Entity) operation_;
+       return (com.google.datastore.v1.Entity) operation_;
     }
     return com.google.datastore.v1.Entity.getDefaultInstance();
   }
 
   public static final int UPDATE_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
    * 
* * .google.datastore.v1.Entity update = 5; - * * @return Whether the update field is set. */ @java.lang.Override @@ -357,27 +308,22 @@ public boolean hasUpdate() { return operationCase_ == 5; } /** - * - * *
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
    * 
* * .google.datastore.v1.Entity update = 5; - * * @return The update. */ @java.lang.Override public com.google.datastore.v1.Entity getUpdate() { if (operationCase_ == 5) { - return (com.google.datastore.v1.Entity) operation_; + return (com.google.datastore.v1.Entity) operation_; } return com.google.datastore.v1.Entity.getDefaultInstance(); } /** - * - * *
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
@@ -388,22 +334,19 @@ public com.google.datastore.v1.Entity getUpdate() {
   @java.lang.Override
   public com.google.datastore.v1.EntityOrBuilder getUpdateOrBuilder() {
     if (operationCase_ == 5) {
-      return (com.google.datastore.v1.Entity) operation_;
+       return (com.google.datastore.v1.Entity) operation_;
     }
     return com.google.datastore.v1.Entity.getDefaultInstance();
   }
 
   public static final int UPSERT_FIELD_NUMBER = 6;
   /**
-   *
-   *
    * 
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity upsert = 6; - * * @return Whether the upsert field is set. */ @java.lang.Override @@ -411,27 +354,22 @@ public boolean hasUpsert() { return operationCase_ == 6; } /** - * - * *
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity upsert = 6; - * * @return The upsert. */ @java.lang.Override public com.google.datastore.v1.Entity getUpsert() { if (operationCase_ == 6) { - return (com.google.datastore.v1.Entity) operation_; + return (com.google.datastore.v1.Entity) operation_; } return com.google.datastore.v1.Entity.getDefaultInstance(); } /** - * - * *
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
@@ -442,22 +380,19 @@ public com.google.datastore.v1.Entity getUpsert() {
   @java.lang.Override
   public com.google.datastore.v1.EntityOrBuilder getUpsertOrBuilder() {
     if (operationCase_ == 6) {
-      return (com.google.datastore.v1.Entity) operation_;
+       return (com.google.datastore.v1.Entity) operation_;
     }
     return com.google.datastore.v1.Entity.getDefaultInstance();
   }
 
   public static final int DELETE_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
    * 
* * .google.datastore.v1.Key delete = 7; - * * @return Whether the delete field is set. */ @java.lang.Override @@ -465,27 +400,22 @@ public boolean hasDelete() { return operationCase_ == 7; } /** - * - * *
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
    * 
* * .google.datastore.v1.Key delete = 7; - * * @return The delete. */ @java.lang.Override public com.google.datastore.v1.Key getDelete() { if (operationCase_ == 7) { - return (com.google.datastore.v1.Key) operation_; + return (com.google.datastore.v1.Key) operation_; } return com.google.datastore.v1.Key.getDefaultInstance(); } /** - * - * *
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
@@ -496,15 +426,13 @@ public com.google.datastore.v1.Key getDelete() {
   @java.lang.Override
   public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
     if (operationCase_ == 7) {
-      return (com.google.datastore.v1.Key) operation_;
+       return (com.google.datastore.v1.Key) operation_;
     }
     return com.google.datastore.v1.Key.getDefaultInstance();
   }
 
   public static final int BASE_VERSION_FIELD_NUMBER = 8;
   /**
-   *
-   *
    * 
    * The version of the entity that this mutation is being applied
    * to. If this does not match the current version on the server, the
@@ -512,7 +440,6 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
    * 
* * int64 base_version = 8; - * * @return Whether the baseVersion field is set. */ @java.lang.Override @@ -520,8 +447,6 @@ public boolean hasBaseVersion() { return conflictDetectionStrategyCase_ == 8; } /** - * - * *
    * The version of the entity that this mutation is being applied
    * to. If this does not match the current version on the server, the
@@ -529,7 +454,6 @@ public boolean hasBaseVersion() {
    * 
* * int64 base_version = 8; - * * @return The baseVersion. */ @java.lang.Override @@ -542,8 +466,6 @@ public long getBaseVersion() { public static final int UPDATE_TIME_FIELD_NUMBER = 11; /** - * - * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -551,7 +473,6 @@ public long getBaseVersion() {
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -559,8 +480,6 @@ public boolean hasUpdateTime() { return conflictDetectionStrategyCase_ == 11; } /** - * - * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -568,19 +487,16 @@ public boolean hasUpdateTime() {
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { if (conflictDetectionStrategyCase_ == 11) { - return (com.google.protobuf.Timestamp) conflictDetectionStrategy_; + return (com.google.protobuf.Timestamp) conflictDetectionStrategy_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -592,13 +508,12 @@ public com.google.protobuf.Timestamp getUpdateTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     if (conflictDetectionStrategyCase_ == 11) {
-      return (com.google.protobuf.Timestamp) conflictDetectionStrategy_;
+       return (com.google.protobuf.Timestamp) conflictDetectionStrategy_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -610,7 +525,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (operationCase_ == 4) {
       output.writeMessage(4, (com.google.datastore.v1.Entity) operation_);
     }
@@ -624,7 +540,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       output.writeMessage(7, (com.google.datastore.v1.Key) operation_);
     }
     if (conflictDetectionStrategyCase_ == 8) {
-      output.writeInt64(8, (long) ((java.lang.Long) conflictDetectionStrategy_));
+      output.writeInt64(
+          8, (long)((java.lang.Long) conflictDetectionStrategy_));
     }
     if (conflictDetectionStrategyCase_ == 11) {
       output.writeMessage(11, (com.google.protobuf.Timestamp) conflictDetectionStrategy_);
@@ -639,34 +556,29 @@ public int getSerializedSize() {
 
     size = 0;
     if (operationCase_ == 4) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, (com.google.datastore.v1.Entity) operation_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, (com.google.datastore.v1.Entity) operation_);
     }
     if (operationCase_ == 5) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              5, (com.google.datastore.v1.Entity) operation_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, (com.google.datastore.v1.Entity) operation_);
     }
     if (operationCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, (com.google.datastore.v1.Entity) operation_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, (com.google.datastore.v1.Entity) operation_);
     }
     if (operationCase_ == 7) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              7, (com.google.datastore.v1.Key) operation_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, (com.google.datastore.v1.Key) operation_);
     }
     if (conflictDetectionStrategyCase_ == 8) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(
-              8, (long) ((java.lang.Long) conflictDetectionStrategy_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(
+            8, (long)((java.lang.Long) conflictDetectionStrategy_));
     }
     if (conflictDetectionStrategyCase_ == 11) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              11, (com.google.protobuf.Timestamp) conflictDetectionStrategy_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, (com.google.protobuf.Timestamp) conflictDetectionStrategy_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -676,7 +588,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.Mutation)) {
       return super.equals(obj);
@@ -686,28 +598,33 @@ public boolean equals(final java.lang.Object obj) {
     if (!getOperationCase().equals(other.getOperationCase())) return false;
     switch (operationCase_) {
       case 4:
-        if (!getInsert().equals(other.getInsert())) return false;
+        if (!getInsert()
+            .equals(other.getInsert())) return false;
         break;
       case 5:
-        if (!getUpdate().equals(other.getUpdate())) return false;
+        if (!getUpdate()
+            .equals(other.getUpdate())) return false;
         break;
       case 6:
-        if (!getUpsert().equals(other.getUpsert())) return false;
+        if (!getUpsert()
+            .equals(other.getUpsert())) return false;
         break;
       case 7:
-        if (!getDelete().equals(other.getDelete())) return false;
+        if (!getDelete()
+            .equals(other.getDelete())) return false;
         break;
       case 0:
       default:
     }
-    if (!getConflictDetectionStrategyCase().equals(other.getConflictDetectionStrategyCase()))
-      return false;
+    if (!getConflictDetectionStrategyCase().equals(other.getConflictDetectionStrategyCase())) return false;
     switch (conflictDetectionStrategyCase_) {
       case 8:
-        if (getBaseVersion() != other.getBaseVersion()) return false;
+        if (getBaseVersion()
+            != other.getBaseVersion()) return false;
         break;
       case 11:
-        if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+        if (!getUpdateTime()
+            .equals(other.getUpdateTime())) return false;
         break;
       case 0:
       default:
@@ -746,7 +663,8 @@ public int hashCode() {
     switch (conflictDetectionStrategyCase_) {
       case 8:
         hash = (37 * hash) + BASE_VERSION_FIELD_NUMBER;
-        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBaseVersion());
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            getBaseVersion());
         break;
       case 11:
         hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
@@ -760,126 +678,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.Mutation parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.Mutation parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Mutation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.Mutation parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.datastore.v1.Mutation parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Mutation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Mutation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Mutation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Mutation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Mutation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Mutation parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Mutation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Mutation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Mutation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.Mutation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A mutation to apply to an entity.
    * 
* * Protobuf type {@code google.datastore.v1.Mutation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.Mutation) com.google.datastore.v1.MutationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_Mutation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_Mutation_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.Mutation.class, - com.google.datastore.v1.Mutation.Builder.class); + com.google.datastore.v1.Mutation.class, com.google.datastore.v1.Mutation.Builder.class); } // Construct using com.google.datastore.v1.Mutation.newBuilder() @@ -887,15 +797,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -907,9 +818,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_Mutation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_descriptor; } @java.lang.Override @@ -977,39 +888,38 @@ public com.google.datastore.v1.Mutation 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.datastore.v1.Mutation) { - return mergeFrom((com.google.datastore.v1.Mutation) other); + return mergeFrom((com.google.datastore.v1.Mutation)other); } else { super.mergeFrom(other); return this; @@ -1019,46 +929,38 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.datastore.v1.Mutation other) { if (other == com.google.datastore.v1.Mutation.getDefaultInstance()) return this; switch (other.getOperationCase()) { - case INSERT: - { - mergeInsert(other.getInsert()); - break; - } - case UPDATE: - { - mergeUpdate(other.getUpdate()); - break; - } - case UPSERT: - { - mergeUpsert(other.getUpsert()); - break; - } - case DELETE: - { - mergeDelete(other.getDelete()); - break; - } - case OPERATION_NOT_SET: - { - break; - } + case INSERT: { + mergeInsert(other.getInsert()); + break; + } + case UPDATE: { + mergeUpdate(other.getUpdate()); + break; + } + case UPSERT: { + mergeUpsert(other.getUpsert()); + break; + } + case DELETE: { + mergeDelete(other.getDelete()); + break; + } + case OPERATION_NOT_SET: { + break; + } } switch (other.getConflictDetectionStrategyCase()) { - case BASE_VERSION: - { - setBaseVersion(other.getBaseVersion()); - break; - } - case UPDATE_TIME: - { - mergeUpdateTime(other.getUpdateTime()); - break; - } - case CONFLICTDETECTIONSTRATEGY_NOT_SET: - { - break; - } + case BASE_VERSION: { + setBaseVersion(other.getBaseVersion()); + break; + } + case UPDATE_TIME: { + mergeUpdateTime(other.getUpdateTime()); + break; + } + case CONFLICTDETECTIONSTRATEGY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1088,12 +990,12 @@ public Builder mergeFrom( } return this; } - private int operationCase_ = 0; private java.lang.Object operation_; - - public OperationCase getOperationCase() { - return OperationCase.forNumber(operationCase_); + public OperationCase + getOperationCase() { + return OperationCase.forNumber( + operationCase_); } public Builder clearOperation() { @@ -1105,9 +1007,10 @@ public Builder clearOperation() { private int conflictDetectionStrategyCase_ = 0; private java.lang.Object conflictDetectionStrategy_; - - public ConflictDetectionStrategyCase getConflictDetectionStrategyCase() { - return ConflictDetectionStrategyCase.forNumber(conflictDetectionStrategyCase_); + public ConflictDetectionStrategyCase + getConflictDetectionStrategyCase() { + return ConflictDetectionStrategyCase.forNumber( + conflictDetectionStrategyCase_); } public Builder clearConflictDetectionStrategy() { @@ -1117,21 +1020,16 @@ public Builder clearConflictDetectionStrategy() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, - com.google.datastore.v1.Entity.Builder, - com.google.datastore.v1.EntityOrBuilder> - insertBuilder_; + com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> insertBuilder_; /** - * - * *
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
      * 
* * .google.datastore.v1.Entity insert = 4; - * * @return Whether the insert field is set. */ @java.lang.Override @@ -1139,15 +1037,12 @@ public boolean hasInsert() { return operationCase_ == 4; } /** - * - * *
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
      * 
* * .google.datastore.v1.Entity insert = 4; - * * @return The insert. */ @java.lang.Override @@ -1165,8 +1060,6 @@ public com.google.datastore.v1.Entity getInsert() { } } /** - * - * *
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1188,8 +1081,6 @@ public Builder setInsert(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1197,7 +1088,8 @@ public Builder setInsert(com.google.datastore.v1.Entity value) {
      *
      * .google.datastore.v1.Entity insert = 4;
      */
-    public Builder setInsert(com.google.datastore.v1.Entity.Builder builderForValue) {
+    public Builder setInsert(
+        com.google.datastore.v1.Entity.Builder builderForValue) {
       if (insertBuilder_ == null) {
         operation_ = builderForValue.build();
         onChanged();
@@ -1208,8 +1100,6 @@ public Builder setInsert(com.google.datastore.v1.Entity.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1219,12 +1109,10 @@ public Builder setInsert(com.google.datastore.v1.Entity.Builder builderForValue)
      */
     public Builder mergeInsert(com.google.datastore.v1.Entity value) {
       if (insertBuilder_ == null) {
-        if (operationCase_ == 4
-            && operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
-          operation_ =
-              com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (operationCase_ == 4 &&
+            operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
+          operation_ = com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
+              .mergeFrom(value).buildPartial();
         } else {
           operation_ = value;
         }
@@ -1240,8 +1128,6 @@ public Builder mergeInsert(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1266,8 +1152,6 @@ public Builder clearInsert() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1279,8 +1163,6 @@ public com.google.datastore.v1.Entity.Builder getInsertBuilder() {
       return getInsertFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1300,8 +1182,6 @@ public com.google.datastore.v1.EntityOrBuilder getInsertOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1310,43 +1190,33 @@ public com.google.datastore.v1.EntityOrBuilder getInsertOrBuilder() {
      * .google.datastore.v1.Entity insert = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity,
-            com.google.datastore.v1.Entity.Builder,
-            com.google.datastore.v1.EntityOrBuilder>
+        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> 
         getInsertFieldBuilder() {
       if (insertBuilder_ == null) {
         if (!(operationCase_ == 4)) {
           operation_ = com.google.datastore.v1.Entity.getDefaultInstance();
         }
-        insertBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.Entity,
-                com.google.datastore.v1.Entity.Builder,
-                com.google.datastore.v1.EntityOrBuilder>(
-                (com.google.datastore.v1.Entity) operation_, getParentForChildren(), isClean());
+        insertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>(
+                (com.google.datastore.v1.Entity) operation_,
+                getParentForChildren(),
+                isClean());
         operation_ = null;
       }
       operationCase_ = 4;
-      onChanged();
-      ;
+      onChanged();;
       return insertBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity,
-            com.google.datastore.v1.Entity.Builder,
-            com.google.datastore.v1.EntityOrBuilder>
-        updateBuilder_;
+        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> updateBuilder_;
     /**
-     *
-     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
      * 
* * .google.datastore.v1.Entity update = 5; - * * @return Whether the update field is set. */ @java.lang.Override @@ -1354,15 +1224,12 @@ public boolean hasUpdate() { return operationCase_ == 5; } /** - * - * *
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
      * 
* * .google.datastore.v1.Entity update = 5; - * * @return The update. */ @java.lang.Override @@ -1380,8 +1247,6 @@ public com.google.datastore.v1.Entity getUpdate() { } } /** - * - * *
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1403,8 +1268,6 @@ public Builder setUpdate(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1412,7 +1275,8 @@ public Builder setUpdate(com.google.datastore.v1.Entity value) {
      *
      * .google.datastore.v1.Entity update = 5;
      */
-    public Builder setUpdate(com.google.datastore.v1.Entity.Builder builderForValue) {
+    public Builder setUpdate(
+        com.google.datastore.v1.Entity.Builder builderForValue) {
       if (updateBuilder_ == null) {
         operation_ = builderForValue.build();
         onChanged();
@@ -1423,8 +1287,6 @@ public Builder setUpdate(com.google.datastore.v1.Entity.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1434,12 +1296,10 @@ public Builder setUpdate(com.google.datastore.v1.Entity.Builder builderForValue)
      */
     public Builder mergeUpdate(com.google.datastore.v1.Entity value) {
       if (updateBuilder_ == null) {
-        if (operationCase_ == 5
-            && operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
-          operation_ =
-              com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (operationCase_ == 5 &&
+            operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
+          operation_ = com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
+              .mergeFrom(value).buildPartial();
         } else {
           operation_ = value;
         }
@@ -1455,8 +1315,6 @@ public Builder mergeUpdate(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1481,8 +1339,6 @@ public Builder clearUpdate() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1494,8 +1350,6 @@ public com.google.datastore.v1.Entity.Builder getUpdateBuilder() {
       return getUpdateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1515,8 +1369,6 @@ public com.google.datastore.v1.EntityOrBuilder getUpdateOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1525,43 +1377,33 @@ public com.google.datastore.v1.EntityOrBuilder getUpdateOrBuilder() {
      * .google.datastore.v1.Entity update = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity,
-            com.google.datastore.v1.Entity.Builder,
-            com.google.datastore.v1.EntityOrBuilder>
+        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> 
         getUpdateFieldBuilder() {
       if (updateBuilder_ == null) {
         if (!(operationCase_ == 5)) {
           operation_ = com.google.datastore.v1.Entity.getDefaultInstance();
         }
-        updateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.Entity,
-                com.google.datastore.v1.Entity.Builder,
-                com.google.datastore.v1.EntityOrBuilder>(
-                (com.google.datastore.v1.Entity) operation_, getParentForChildren(), isClean());
+        updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>(
+                (com.google.datastore.v1.Entity) operation_,
+                getParentForChildren(),
+                isClean());
         operation_ = null;
       }
       operationCase_ = 5;
-      onChanged();
-      ;
+      onChanged();;
       return updateBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity,
-            com.google.datastore.v1.Entity.Builder,
-            com.google.datastore.v1.EntityOrBuilder>
-        upsertBuilder_;
+        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> upsertBuilder_;
     /**
-     *
-     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
      * 
* * .google.datastore.v1.Entity upsert = 6; - * * @return Whether the upsert field is set. */ @java.lang.Override @@ -1569,15 +1411,12 @@ public boolean hasUpsert() { return operationCase_ == 6; } /** - * - * *
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
      * 
* * .google.datastore.v1.Entity upsert = 6; - * * @return The upsert. */ @java.lang.Override @@ -1595,8 +1434,6 @@ public com.google.datastore.v1.Entity getUpsert() { } } /** - * - * *
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1618,8 +1455,6 @@ public Builder setUpsert(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1627,7 +1462,8 @@ public Builder setUpsert(com.google.datastore.v1.Entity value) {
      *
      * .google.datastore.v1.Entity upsert = 6;
      */
-    public Builder setUpsert(com.google.datastore.v1.Entity.Builder builderForValue) {
+    public Builder setUpsert(
+        com.google.datastore.v1.Entity.Builder builderForValue) {
       if (upsertBuilder_ == null) {
         operation_ = builderForValue.build();
         onChanged();
@@ -1638,8 +1474,6 @@ public Builder setUpsert(com.google.datastore.v1.Entity.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1649,12 +1483,10 @@ public Builder setUpsert(com.google.datastore.v1.Entity.Builder builderForValue)
      */
     public Builder mergeUpsert(com.google.datastore.v1.Entity value) {
       if (upsertBuilder_ == null) {
-        if (operationCase_ == 6
-            && operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
-          operation_ =
-              com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (operationCase_ == 6 &&
+            operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
+          operation_ = com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
+              .mergeFrom(value).buildPartial();
         } else {
           operation_ = value;
         }
@@ -1670,8 +1502,6 @@ public Builder mergeUpsert(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1696,8 +1526,6 @@ public Builder clearUpsert() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1709,8 +1537,6 @@ public com.google.datastore.v1.Entity.Builder getUpsertBuilder() {
       return getUpsertFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1730,8 +1556,6 @@ public com.google.datastore.v1.EntityOrBuilder getUpsertOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1740,43 +1564,33 @@ public com.google.datastore.v1.EntityOrBuilder getUpsertOrBuilder() {
      * .google.datastore.v1.Entity upsert = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity,
-            com.google.datastore.v1.Entity.Builder,
-            com.google.datastore.v1.EntityOrBuilder>
+        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> 
         getUpsertFieldBuilder() {
       if (upsertBuilder_ == null) {
         if (!(operationCase_ == 6)) {
           operation_ = com.google.datastore.v1.Entity.getDefaultInstance();
         }
-        upsertBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.Entity,
-                com.google.datastore.v1.Entity.Builder,
-                com.google.datastore.v1.EntityOrBuilder>(
-                (com.google.datastore.v1.Entity) operation_, getParentForChildren(), isClean());
+        upsertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>(
+                (com.google.datastore.v1.Entity) operation_,
+                getParentForChildren(),
+                isClean());
         operation_ = null;
       }
       operationCase_ = 6;
-      onChanged();
-      ;
+      onChanged();;
       return upsertBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
-        deleteBuilder_;
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> deleteBuilder_;
     /**
-     *
-     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
      * 
* * .google.datastore.v1.Key delete = 7; - * * @return Whether the delete field is set. */ @java.lang.Override @@ -1784,15 +1598,12 @@ public boolean hasDelete() { return operationCase_ == 7; } /** - * - * *
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
      * 
* * .google.datastore.v1.Key delete = 7; - * * @return The delete. */ @java.lang.Override @@ -1810,8 +1621,6 @@ public com.google.datastore.v1.Key getDelete() { } } /** - * - * *
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1833,8 +1642,6 @@ public Builder setDelete(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1842,7 +1649,8 @@ public Builder setDelete(com.google.datastore.v1.Key value) {
      *
      * .google.datastore.v1.Key delete = 7;
      */
-    public Builder setDelete(com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setDelete(
+        com.google.datastore.v1.Key.Builder builderForValue) {
       if (deleteBuilder_ == null) {
         operation_ = builderForValue.build();
         onChanged();
@@ -1853,8 +1661,6 @@ public Builder setDelete(com.google.datastore.v1.Key.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1864,11 +1670,10 @@ public Builder setDelete(com.google.datastore.v1.Key.Builder builderForValue) {
      */
     public Builder mergeDelete(com.google.datastore.v1.Key value) {
       if (deleteBuilder_ == null) {
-        if (operationCase_ == 7 && operation_ != com.google.datastore.v1.Key.getDefaultInstance()) {
-          operation_ =
-              com.google.datastore.v1.Key.newBuilder((com.google.datastore.v1.Key) operation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (operationCase_ == 7 &&
+            operation_ != com.google.datastore.v1.Key.getDefaultInstance()) {
+          operation_ = com.google.datastore.v1.Key.newBuilder((com.google.datastore.v1.Key) operation_)
+              .mergeFrom(value).buildPartial();
         } else {
           operation_ = value;
         }
@@ -1884,8 +1689,6 @@ public Builder mergeDelete(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1910,8 +1713,6 @@ public Builder clearDelete() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1923,8 +1724,6 @@ public com.google.datastore.v1.Key.Builder getDeleteBuilder() {
       return getDeleteFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1944,8 +1743,6 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1954,31 +1751,25 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
      * .google.datastore.v1.Key delete = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
         getDeleteFieldBuilder() {
       if (deleteBuilder_ == null) {
         if (!(operationCase_ == 7)) {
           operation_ = com.google.datastore.v1.Key.getDefaultInstance();
         }
-        deleteBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.Key,
-                com.google.datastore.v1.Key.Builder,
-                com.google.datastore.v1.KeyOrBuilder>(
-                (com.google.datastore.v1.Key) operation_, getParentForChildren(), isClean());
+        deleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
+                (com.google.datastore.v1.Key) operation_,
+                getParentForChildren(),
+                isClean());
         operation_ = null;
       }
       operationCase_ = 7;
-      onChanged();
-      ;
+      onChanged();;
       return deleteBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The version of the entity that this mutation is being applied
      * to. If this does not match the current version on the server, the
@@ -1986,15 +1777,12 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
      * 
* * int64 base_version = 8; - * * @return Whether the baseVersion field is set. */ public boolean hasBaseVersion() { return conflictDetectionStrategyCase_ == 8; } /** - * - * *
      * The version of the entity that this mutation is being applied
      * to. If this does not match the current version on the server, the
@@ -2002,7 +1790,6 @@ public boolean hasBaseVersion() {
      * 
* * int64 base_version = 8; - * * @return The baseVersion. */ public long getBaseVersion() { @@ -2012,8 +1799,6 @@ public long getBaseVersion() { return 0L; } /** - * - * *
      * The version of the entity that this mutation is being applied
      * to. If this does not match the current version on the server, the
@@ -2021,7 +1806,6 @@ public long getBaseVersion() {
      * 
* * int64 base_version = 8; - * * @param value The baseVersion to set. * @return This builder for chaining. */ @@ -2032,8 +1816,6 @@ public Builder setBaseVersion(long value) { return this; } /** - * - * *
      * The version of the entity that this mutation is being applied
      * to. If this does not match the current version on the server, the
@@ -2041,7 +1823,6 @@ public Builder setBaseVersion(long value) {
      * 
* * int64 base_version = 8; - * * @return This builder for chaining. */ public Builder clearBaseVersion() { @@ -2054,13 +1835,8 @@ public Builder clearBaseVersion() { } 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 update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2068,7 +1844,6 @@ public Builder clearBaseVersion() {
      * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2076,8 +1851,6 @@ public boolean hasUpdateTime() { return conflictDetectionStrategyCase_ == 11; } /** - * - * *
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2085,7 +1858,6 @@ public boolean hasUpdateTime() {
      * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ @java.lang.Override @@ -2103,8 +1875,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { } } /** - * - * *
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2127,8 +1897,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2137,7 +1905,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 11;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         conflictDetectionStrategy_ = builderForValue.build();
         onChanged();
@@ -2148,8 +1917,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2160,13 +1927,10 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (conflictDetectionStrategyCase_ == 11
-            && conflictDetectionStrategy_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          conflictDetectionStrategy_ =
-              com.google.protobuf.Timestamp.newBuilder(
-                      (com.google.protobuf.Timestamp) conflictDetectionStrategy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (conflictDetectionStrategyCase_ == 11 &&
+            conflictDetectionStrategy_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          conflictDetectionStrategy_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) conflictDetectionStrategy_)
+              .mergeFrom(value).buildPartial();
         } else {
           conflictDetectionStrategy_ = value;
         }
@@ -2182,8 +1946,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2209,8 +1971,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2223,8 +1983,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2245,8 +2003,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2256,32 +2012,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 11;
      */
     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) {
         if (!(conflictDetectionStrategyCase_ == 11)) {
           conflictDetectionStrategy_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        updateTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
+        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                 (com.google.protobuf.Timestamp) conflictDetectionStrategy_,
                 getParentForChildren(),
                 isClean());
         conflictDetectionStrategy_ = null;
       }
       conflictDetectionStrategyCase_ = 11;
-      onChanged();
-      ;
+      onChanged();;
       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);
     }
 
@@ -2291,12 +2041,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.Mutation)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.Mutation)
   private static final com.google.datastore.v1.Mutation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.Mutation();
   }
@@ -2305,16 +2055,16 @@ public static com.google.datastore.v1.Mutation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Mutation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Mutation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Mutation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Mutation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2329,4 +2079,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.Mutation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
similarity index 85%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
index 3257d3d22..7ae161025 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
-public interface MutationOrBuilder
-    extends
+public interface MutationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.Mutation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity insert = 4; - * * @return Whether the insert field is set. */ boolean hasInsert(); /** - * - * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity insert = 4; - * * @return The insert. */ com.google.datastore.v1.Entity getInsert(); /** - * - * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
@@ -62,34 +38,26 @@ public interface MutationOrBuilder
   com.google.datastore.v1.EntityOrBuilder getInsertOrBuilder();
 
   /**
-   *
-   *
    * 
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
    * 
* * .google.datastore.v1.Entity update = 5; - * * @return Whether the update field is set. */ boolean hasUpdate(); /** - * - * *
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
    * 
* * .google.datastore.v1.Entity update = 5; - * * @return The update. */ com.google.datastore.v1.Entity getUpdate(); /** - * - * *
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
@@ -100,34 +68,26 @@ public interface MutationOrBuilder
   com.google.datastore.v1.EntityOrBuilder getUpdateOrBuilder();
 
   /**
-   *
-   *
    * 
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity upsert = 6; - * * @return Whether the upsert field is set. */ boolean hasUpsert(); /** - * - * *
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity upsert = 6; - * * @return The upsert. */ com.google.datastore.v1.Entity getUpsert(); /** - * - * *
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
@@ -138,34 +98,26 @@ public interface MutationOrBuilder
   com.google.datastore.v1.EntityOrBuilder getUpsertOrBuilder();
 
   /**
-   *
-   *
    * 
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
    * 
* * .google.datastore.v1.Key delete = 7; - * * @return Whether the delete field is set. */ boolean hasDelete(); /** - * - * *
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
    * 
* * .google.datastore.v1.Key delete = 7; - * * @return The delete. */ com.google.datastore.v1.Key getDelete(); /** - * - * *
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
@@ -176,8 +128,6 @@ public interface MutationOrBuilder
   com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder();
 
   /**
-   *
-   *
    * 
    * The version of the entity that this mutation is being applied
    * to. If this does not match the current version on the server, the
@@ -185,13 +135,10 @@ public interface MutationOrBuilder
    * 
* * int64 base_version = 8; - * * @return Whether the baseVersion field is set. */ boolean hasBaseVersion(); /** - * - * *
    * The version of the entity that this mutation is being applied
    * to. If this does not match the current version on the server, the
@@ -199,14 +146,11 @@ public interface MutationOrBuilder
    * 
* * int64 base_version = 8; - * * @return The baseVersion. */ long getBaseVersion(); /** - * - * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -214,13 +158,10 @@ public interface MutationOrBuilder
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -228,13 +169,10 @@ public interface MutationOrBuilder
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -247,6 +185,5 @@ public interface MutationOrBuilder
 
   public com.google.datastore.v1.Mutation.OperationCase getOperationCase();
 
-  public com.google.datastore.v1.Mutation.ConflictDetectionStrategyCase
-      getConflictDetectionStrategyCase();
+  public com.google.datastore.v1.Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase();
 }
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
similarity index 75%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
index 3a36fee6b..2fe6091ea 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * The result of applying a mutation.
  * 
* * Protobuf type {@code google.datastore.v1.MutationResult} */ -public final class MutationResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MutationResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.MutationResult) MutationResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MutationResult.newBuilder() to construct. private MutationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MutationResult() {} + private MutationResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MutationResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MutationResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,52 +52,49 @@ private MutationResult( case 0: done = true; break; - case 26: - { - com.google.datastore.v1.Key.Builder subBuilder = null; - if (key_ != null) { - subBuilder = key_.toBuilder(); - } - key_ = input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(key_); - key_ = subBuilder.buildPartial(); - } - - break; + case 26: { + com.google.datastore.v1.Key.Builder subBuilder = null; + if (key_ != null) { + subBuilder = key_.toBuilder(); } - case 32: - { - version_ = input.readInt64(); - break; + key_ = input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(key_); + key_ = subBuilder.buildPartial(); } - case 40: - { - conflictDetected_ = input.readBool(); - break; - } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 32: { + + version_ = input.readInt64(); + break; + } + case 40: { + + conflictDetected_ = input.readBool(); + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,40 +102,35 @@ private MutationResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_MutationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_MutationResult_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.MutationResult.class, - com.google.datastore.v1.MutationResult.Builder.class); + com.google.datastore.v1.MutationResult.class, com.google.datastore.v1.MutationResult.Builder.class); } public static final int KEY_FIELD_NUMBER = 3; private com.google.datastore.v1.Key key_; /** - * - * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
    * 
* * .google.datastore.v1.Key key = 3; - * * @return Whether the key field is set. */ @java.lang.Override @@ -162,15 +138,12 @@ public boolean hasKey() { return key_ != null; } /** - * - * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
    * 
* * .google.datastore.v1.Key key = 3; - * * @return The key. */ @java.lang.Override @@ -178,8 +151,6 @@ public com.google.datastore.v1.Key getKey() { return key_ == null ? com.google.datastore.v1.Key.getDefaultInstance() : key_; } /** - * - * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
@@ -195,8 +166,6 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
   public static final int VERSION_FIELD_NUMBER = 4;
   private long version_;
   /**
-   *
-   *
    * 
    * The version of the entity on the server after processing the mutation. If
    * the mutation doesn't change anything on the server, then the version will
@@ -206,7 +175,6 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
    * 
* * int64 version = 4; - * * @return The version. */ @java.lang.Override @@ -217,8 +185,6 @@ public long getVersion() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -227,7 +193,6 @@ public long getVersion() {
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -235,8 +200,6 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -245,7 +208,6 @@ public boolean hasUpdateTime() {
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ @java.lang.Override @@ -253,8 +215,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -272,15 +232,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int CONFLICT_DETECTED_FIELD_NUMBER = 5;
   private boolean conflictDetected_;
   /**
-   *
-   *
    * 
    * Whether a conflict was detected for this mutation. Always false when a
    * conflict detection strategy field is not set in the mutation.
    * 
* * bool conflict_detected = 5; - * * @return The conflictDetected. */ @java.lang.Override @@ -289,7 +246,6 @@ public boolean getConflictDetected() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,7 +257,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (key_ != null) { output.writeMessage(3, getKey()); } @@ -324,16 +281,20 @@ public int getSerializedSize() { size = 0; if (key_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKey()); } if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, version_); } if (conflictDetected_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, conflictDetected_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, conflictDetected_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -343,7 +304,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.MutationResult)) { return super.equals(obj); @@ -352,14 +313,18 @@ public boolean equals(final java.lang.Object obj) { if (hasKey() != other.hasKey()) return false; if (hasKey()) { - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; } - if (getVersion() != other.getVersion()) return false; + if (getVersion() + != other.getVersion()) 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 (getConflictDetected() != other.getConflictDetected()) return false; + if (getConflictDetected() + != other.getConflictDetected()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,139 +341,132 @@ public int hashCode() { hash = (53 * hash) + getKey().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersion()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + CONFLICT_DETECTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConflictDetected()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getConflictDetected()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.datastore.v1.MutationResult parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.MutationResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.MutationResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.MutationResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.MutationResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.MutationResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.MutationResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.MutationResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.MutationResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.MutationResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.MutationResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.MutationResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.MutationResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.MutationResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 result of applying a mutation.
    * 
* * Protobuf type {@code google.datastore.v1.MutationResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.MutationResult) com.google.datastore.v1.MutationResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_MutationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_MutationResult_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.MutationResult.class, - com.google.datastore.v1.MutationResult.Builder.class); + com.google.datastore.v1.MutationResult.class, com.google.datastore.v1.MutationResult.Builder.class); } // Construct using com.google.datastore.v1.MutationResult.newBuilder() @@ -516,15 +474,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_MutationResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_descriptor; } @java.lang.Override @@ -569,8 +528,7 @@ public com.google.datastore.v1.MutationResult build() { @java.lang.Override public com.google.datastore.v1.MutationResult buildPartial() { - com.google.datastore.v1.MutationResult result = - new com.google.datastore.v1.MutationResult(this); + com.google.datastore.v1.MutationResult result = new com.google.datastore.v1.MutationResult(this); if (keyBuilder_ == null) { result.key_ = key_; } else { @@ -591,39 +549,38 @@ public com.google.datastore.v1.MutationResult 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.datastore.v1.MutationResult) { - return mergeFrom((com.google.datastore.v1.MutationResult) other); + return mergeFrom((com.google.datastore.v1.MutationResult)other); } else { super.mergeFrom(other); return this; @@ -675,35 +632,26 @@ public Builder mergeFrom( private com.google.datastore.v1.Key key_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> - keyBuilder_; + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keyBuilder_; /** - * - * *
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
      * 
* * .google.datastore.v1.Key key = 3; - * * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** - * - * *
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
      * 
* * .google.datastore.v1.Key key = 3; - * * @return The key. */ public com.google.datastore.v1.Key getKey() { @@ -714,8 +662,6 @@ public com.google.datastore.v1.Key getKey() { } } /** - * - * *
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -737,8 +683,6 @@ public Builder setKey(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -746,7 +690,8 @@ public Builder setKey(com.google.datastore.v1.Key value) {
      *
      * .google.datastore.v1.Key key = 3;
      */
-    public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setKey(
+        com.google.datastore.v1.Key.Builder builderForValue) {
       if (keyBuilder_ == null) {
         key_ = builderForValue.build();
         onChanged();
@@ -757,8 +702,6 @@ public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -769,7 +712,8 @@ public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) {
     public Builder mergeKey(com.google.datastore.v1.Key value) {
       if (keyBuilder_ == null) {
         if (key_ != null) {
-          key_ = com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial();
+          key_ =
+            com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial();
         } else {
           key_ = value;
         }
@@ -781,8 +725,6 @@ public Builder mergeKey(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -802,8 +744,6 @@ public Builder clearKey() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -812,13 +752,11 @@ public Builder clearKey() {
      * .google.datastore.v1.Key key = 3;
      */
     public com.google.datastore.v1.Key.Builder getKeyBuilder() {
-
+      
       onChanged();
       return getKeyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -830,12 +768,11 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
       if (keyBuilder_ != null) {
         return keyBuilder_.getMessageOrBuilder();
       } else {
-        return key_ == null ? com.google.datastore.v1.Key.getDefaultInstance() : key_;
+        return key_ == null ?
+            com.google.datastore.v1.Key.getDefaultInstance() : key_;
       }
     }
     /**
-     *
-     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -844,25 +781,21 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
      * .google.datastore.v1.Key key = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
         getKeyFieldBuilder() {
       if (keyBuilder_ == null) {
-        keyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.Key,
-                com.google.datastore.v1.Key.Builder,
-                com.google.datastore.v1.KeyOrBuilder>(getKey(), getParentForChildren(), isClean());
+        keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
+                getKey(),
+                getParentForChildren(),
+                isClean());
         key_ = null;
       }
       return keyBuilder_;
     }
 
-    private long version_;
+    private long version_ ;
     /**
-     *
-     *
      * 
      * The version of the entity on the server after processing the mutation. If
      * the mutation doesn't change anything on the server, then the version will
@@ -872,7 +805,6 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
      * 
* * int64 version = 4; - * * @return The version. */ @java.lang.Override @@ -880,8 +812,6 @@ public long getVersion() { return version_; } /** - * - * *
      * The version of the entity on the server after processing the mutation. If
      * the mutation doesn't change anything on the server, then the version will
@@ -891,19 +821,16 @@ public long getVersion() {
      * 
* * int64 version = 4; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { - + version_ = value; onChanged(); return this; } /** - * - * *
      * The version of the entity on the server after processing the mutation. If
      * the mutation doesn't change anything on the server, then the version will
@@ -913,11 +840,10 @@ public Builder setVersion(long value) {
      * 
* * int64 version = 4; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0L; onChanged(); return this; @@ -925,13 +851,8 @@ public Builder clearVersion() { 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 update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -940,15 +861,12 @@ public Builder clearVersion() {
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -957,21 +875,16 @@ public boolean hasUpdateTime() {
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -995,8 +908,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -1006,7 +917,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 6;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
         onChanged();
@@ -1017,8 +929,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -1032,7 +942,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;
         }
@@ -1044,8 +954,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -1067,8 +975,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -1079,13 +985,11 @@ public Builder clearUpdateTime() {
      * .google.protobuf.Timestamp update_time = 6;
      */
     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-
+      
       onChanged();
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -1099,14 +1003,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 update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -1117,33 +1018,27 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getUpdateTimeFieldBuilder() {
       if (updateTimeBuilder_ == null) {
-        updateTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getUpdateTime(), getParentForChildren(), isClean());
+        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getUpdateTime(),
+                getParentForChildren(),
+                isClean());
         updateTime_ = null;
       }
       return updateTimeBuilder_;
     }
 
-    private boolean conflictDetected_;
+    private boolean conflictDetected_ ;
     /**
-     *
-     *
      * 
      * Whether a conflict was detected for this mutation. Always false when a
      * conflict detection strategy field is not set in the mutation.
      * 
* * bool conflict_detected = 5; - * * @return The conflictDetected. */ @java.lang.Override @@ -1151,45 +1046,39 @@ public boolean getConflictDetected() { return conflictDetected_; } /** - * - * *
      * Whether a conflict was detected for this mutation. Always false when a
      * conflict detection strategy field is not set in the mutation.
      * 
* * bool conflict_detected = 5; - * * @param value The conflictDetected to set. * @return This builder for chaining. */ public Builder setConflictDetected(boolean value) { - + conflictDetected_ = value; onChanged(); return this; } /** - * - * *
      * Whether a conflict was detected for this mutation. Always false when a
      * conflict detection strategy field is not set in the mutation.
      * 
* * bool conflict_detected = 5; - * * @return This builder for chaining. */ public Builder clearConflictDetected() { - + conflictDetected_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1199,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.MutationResult) } // @@protoc_insertion_point(class_scope:google.datastore.v1.MutationResult) private static final com.google.datastore.v1.MutationResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.MutationResult(); } @@ -1213,16 +1102,16 @@ public static com.google.datastore.v1.MutationResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MutationResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MutationResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutationResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1237,4 +1126,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.MutationResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java similarity index 80% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java index 03f686a2c..c70463cba 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface MutationResultOrBuilder - extends +public interface MutationResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.MutationResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
    * 
* * .google.datastore.v1.Key key = 3; - * * @return Whether the key field is set. */ boolean hasKey(); /** - * - * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
    * 
* * .google.datastore.v1.Key key = 3; - * * @return The key. */ com.google.datastore.v1.Key getKey(); /** - * - * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
@@ -62,8 +38,6 @@ public interface MutationResultOrBuilder
   com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The version of the entity on the server after processing the mutation. If
    * the mutation doesn't change anything on the server, then the version will
@@ -73,14 +47,11 @@ public interface MutationResultOrBuilder
    * 
* * int64 version = 4; - * * @return The version. */ long getVersion(); /** - * - * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -89,13 +60,10 @@ public interface MutationResultOrBuilder
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -104,13 +72,10 @@ public interface MutationResultOrBuilder
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -123,15 +88,12 @@ public interface MutationResultOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Whether a conflict was detected for this mutation. Always false when a
    * conflict detection strategy field is not set in the mutation.
    * 
* * bool conflict_detected = 5; - * * @return The conflictDetected. */ boolean getConflictDetected(); diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java similarity index 71% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java index 7439b03ad..bd66d5ce4 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/entity.proto package com.google.datastore.v1; /** - * - * *
  * A partition ID identifies a grouping of entities. The grouping is always
  * by project and namespace, however the namespace ID may be empty.
@@ -41,16 +24,15 @@
  *
  * Protobuf type {@code google.datastore.v1.PartitionId}
  */
-public final class PartitionId extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PartitionId extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.PartitionId)
     PartitionIdOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PartitionId.newBuilder() to construct.
   private PartitionId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PartitionId() {
     projectId_ = "";
     namespaceId_ = "";
@@ -58,15 +40,16 @@ private PartitionId() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PartitionId();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PartitionId(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -85,27 +68,25 @@ private PartitionId(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              projectId_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            projectId_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              namespaceId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            namespaceId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,39 +94,34 @@ private PartitionId(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.v1.EntityProto
-        .internal_static_google_datastore_v1_PartitionId_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.EntityProto
-        .internal_static_google_datastore_v1_PartitionId_fieldAccessorTable
+    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.v1.PartitionId.class,
-            com.google.datastore.v1.PartitionId.Builder.class);
+            com.google.datastore.v1.PartitionId.class, com.google.datastore.v1.PartitionId.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 2;
   private volatile java.lang.Object projectId_;
   /**
-   *
-   *
    * 
    * The ID of the project to which the entities belong.
    * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -154,29 +130,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * The ID of the project to which the entities belong.
    * 
* * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -187,14 +163,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int NAMESPACE_ID_FIELD_NUMBER = 4; private volatile java.lang.Object namespaceId_; /** - * - * *
    * If not empty, the ID of the namespace to which the entities belong.
    * 
* * string namespace_id = 4; - * * @return The namespaceId. */ @java.lang.Override @@ -203,29 +176,29 @@ public java.lang.String getNamespaceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespaceId_ = s; return s; } } /** - * - * *
    * If not empty, the ID of the namespace to which the entities belong.
    * 
* * string namespace_id = 4; - * * @return The bytes for namespaceId. */ @java.lang.Override - public com.google.protobuf.ByteString getNamespaceIdBytes() { + public com.google.protobuf.ByteString + getNamespaceIdBytes() { java.lang.Object ref = namespaceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespaceId_ = b; return b; } else { @@ -234,7 +207,6 @@ public com.google.protobuf.ByteString getNamespaceIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); } @@ -276,15 +249,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.PartitionId)) { return super.equals(obj); } com.google.datastore.v1.PartitionId other = (com.google.datastore.v1.PartitionId) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getNamespaceId().equals(other.getNamespaceId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getNamespaceId() + .equals(other.getNamespaceId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,103 +280,97 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.PartitionId parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.PartitionId parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PartitionId parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.v1.PartitionId parseFrom(com.google.protobuf.ByteString data) + public static com.google.datastore.v1.PartitionId parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PartitionId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PartitionId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PartitionId parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PartitionId parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.PartitionId parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.PartitionId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.PartitionId parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.PartitionId parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.PartitionId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.PartitionId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A partition ID identifies a grouping of entities. The grouping is always
    * by project and namespace, however the namespace ID may be empty.
@@ -422,23 +391,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.v1.PartitionId}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.PartitionId)
       com.google.datastore.v1.PartitionIdOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_PartitionId_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_PartitionId_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.PartitionId.class,
-              com.google.datastore.v1.PartitionId.Builder.class);
+              com.google.datastore.v1.PartitionId.class, com.google.datastore.v1.PartitionId.Builder.class);
     }
 
     // Construct using com.google.datastore.v1.PartitionId.newBuilder()
@@ -446,15 +413,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -466,9 +434,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_PartitionId_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_descriptor;
     }
 
     @java.lang.Override
@@ -498,39 +466,38 @@ public com.google.datastore.v1.PartitionId 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.datastore.v1.PartitionId) {
-        return mergeFrom((com.google.datastore.v1.PartitionId) other);
+        return mergeFrom((com.google.datastore.v1.PartitionId)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -578,20 +545,18 @@ public Builder mergeFrom(
 
     private java.lang.Object projectId_ = "";
     /**
-     *
-     *
      * 
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -600,21 +565,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -622,61 +586,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -684,20 +641,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object namespaceId_ = ""; /** - * - * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; - * * @return The namespaceId. */ public java.lang.String getNamespaceId() { java.lang.Object ref = namespaceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespaceId_ = s; return s; @@ -706,21 +661,20 @@ public java.lang.String getNamespaceId() { } } /** - * - * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; - * * @return The bytes for namespaceId. */ - public com.google.protobuf.ByteString getNamespaceIdBytes() { + public com.google.protobuf.ByteString + getNamespaceIdBytes() { java.lang.Object ref = namespaceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespaceId_ = b; return b; } else { @@ -728,68 +682,61 @@ public com.google.protobuf.ByteString getNamespaceIdBytes() { } } /** - * - * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; - * * @param value The namespaceId to set. * @return This builder for chaining. */ - public Builder setNamespaceId(java.lang.String value) { + public Builder setNamespaceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespaceId_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; - * * @return This builder for chaining. */ public Builder clearNamespaceId() { - + namespaceId_ = getDefaultInstance().getNamespaceId(); onChanged(); return this; } /** - * - * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; - * * @param value The bytes for namespaceId to set. * @return This builder for chaining. */ - public Builder setNamespaceIdBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespaceId_ = 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); } @@ -799,12 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.PartitionId) } // @@protoc_insertion_point(class_scope:google.datastore.v1.PartitionId) private static final com.google.datastore.v1.PartitionId DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.PartitionId(); } @@ -813,16 +760,16 @@ public static com.google.datastore.v1.PartitionId getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartitionId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PartitionId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,4 +784,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.PartitionId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java similarity index 56% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java index 4d6a0cf43..ae4407ad3 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/entity.proto package com.google.datastore.v1; -public interface PartitionIdOrBuilder - extends +public interface PartitionIdOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.PartitionId) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The ID of the project to which the entities belong.
    * 
* * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * The ID of the project to which the entities belong.
    * 
* * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * If not empty, the ID of the namespace to which the entities belong.
    * 
* * string namespace_id = 4; - * * @return The namespaceId. */ java.lang.String getNamespaceId(); /** - * - * *
    * If not empty, the ID of the namespace to which the entities belong.
    * 
* * string namespace_id = 4; - * * @return The bytes for namespaceId. */ - com.google.protobuf.ByteString getNamespaceIdBytes(); + com.google.protobuf.ByteString + getNamespaceIdBytes(); } diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java similarity index 67% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java index 1d91086af..74d5d106f 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** - * - * *
  * A representation of a property in a projection.
  * 
* * Protobuf type {@code google.datastore.v1.Projection} */ -public final class Projection extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Projection extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.Projection) ProjectionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Projection.newBuilder() to construct. private Projection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Projection() {} + private Projection() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Projection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Projection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private Projection( case 0: done = true; break; - case 10: - { - com.google.datastore.v1.PropertyReference.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.v1.PropertyReference.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + property_ = input.readMessage(com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +79,34 @@ private Projection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Projection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Projection_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.Projection.class, - com.google.datastore.v1.Projection.Builder.class); + com.google.datastore.v1.Projection.class, com.google.datastore.v1.Projection.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.datastore.v1.PropertyReference property_; /** - * - * *
    * The property to project.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -138,25 +114,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * The property to project.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ @java.lang.Override public com.google.datastore.v1.PropertyReference getProperty() { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } /** - * - * *
    * The property to project.
    * 
@@ -169,7 +138,6 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -195,7 +164,8 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,7 +175,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.Projection)) { return super.equals(obj); @@ -214,7 +184,8 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -236,126 +207,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.Projection parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.Projection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Projection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.v1.Projection parseFrom(com.google.protobuf.ByteString data) + public static com.google.datastore.v1.Projection parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Projection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Projection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Projection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Projection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.Projection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.Projection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.Projection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.Projection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.Projection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.Projection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A representation of a property in a projection.
    * 
* * Protobuf type {@code google.datastore.v1.Projection} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.Projection) com.google.datastore.v1.ProjectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Projection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Projection_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.Projection.class, - com.google.datastore.v1.Projection.Builder.class); + com.google.datastore.v1.Projection.class, com.google.datastore.v1.Projection.Builder.class); } // Construct using com.google.datastore.v1.Projection.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Projection_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_descriptor; } @java.lang.Override @@ -420,39 +384,38 @@ public com.google.datastore.v1.Projection 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.datastore.v1.Projection) { - return mergeFrom((com.google.datastore.v1.Projection) other); + return mergeFrom((com.google.datastore.v1.Projection)other); } else { super.mergeFrom(other); return this; @@ -495,47 +458,34 @@ public Builder mergeFrom( private com.google.datastore.v1.PropertyReference property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder> - propertyBuilder_; + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> propertyBuilder_; /** - * - * *
      * The property to project.
      * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * The property to project.
      * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ public com.google.datastore.v1.PropertyReference getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * The property to project.
      * 
@@ -556,15 +506,14 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** - * - * *
      * The property to project.
      * 
* * .google.datastore.v1.PropertyReference property = 1; */ - public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder builderForValue) { + public Builder setProperty( + com.google.datastore.v1.PropertyReference.Builder builderForValue) { if (propertyBuilder_ == null) { property_ = builderForValue.build(); onChanged(); @@ -575,8 +524,6 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder bui return this; } /** - * - * *
      * The property to project.
      * 
@@ -587,9 +534,7 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.datastore.v1.PropertyReference.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.v1.PropertyReference.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -601,8 +546,6 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** - * - * *
      * The property to project.
      * 
@@ -621,8 +564,6 @@ public Builder clearProperty() { return this; } /** - * - * *
      * The property to project.
      * 
@@ -630,13 +571,11 @@ public Builder clearProperty() { * .google.datastore.v1.PropertyReference property = 1; */ public com.google.datastore.v1.PropertyReference.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * The property to project.
      * 
@@ -647,14 +586,11 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? + com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } } /** - * - * *
      * The property to project.
      * 
@@ -662,24 +598,21 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() * .google.datastore.v1.PropertyReference property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder> + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -689,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.Projection) } // @@protoc_insertion_point(class_scope:google.datastore.v1.Projection) private static final com.google.datastore.v1.Projection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.Projection(); } @@ -703,16 +636,16 @@ public static com.google.datastore.v1.Projection getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Projection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Projection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Projection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Projection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.Projection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java similarity index 57% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java index 5f3d6c3b2..0476cc9d1 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface ProjectionOrBuilder - extends +public interface ProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.Projection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The property to project.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * The property to project.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ com.google.datastore.v1.PropertyReference getProperty(); /** - * - * *
    * The property to project.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java similarity index 73% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java index cfaa78f90..dd4f2f422 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** - * - * *
  * A filter on a specific property.
  * 
* * Protobuf type {@code google.datastore.v1.PropertyFilter} */ -public final class PropertyFilter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.PropertyFilter) PropertyFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PropertyFilter.newBuilder() to construct. private PropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PropertyFilter() { op_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PropertyFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PropertyFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +53,45 @@ private PropertyFilter( case 0: done = true; break; - case 10: - { - com.google.datastore.v1.PropertyReference.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.v1.PropertyReference.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 16: - { - int rawValue = input.readEnum(); - op_ = rawValue; - break; + break; + } + case 16: { + int rawValue = input.readEnum(); + + op_ = rawValue; + break; + } + case 26: { + com.google.datastore.v1.Value.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); } - case 26: - { - com.google.datastore.v1.Value.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); - } - - break; + value_ = input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,41 +99,36 @@ private PropertyFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyFilter.class, - com.google.datastore.v1.PropertyFilter.Builder.class); + com.google.datastore.v1.PropertyFilter.class, com.google.datastore.v1.PropertyFilter.Builder.class); } /** - * - * *
    * A property filter operator.
    * 
* * Protobuf enum {@code google.datastore.v1.PropertyFilter.Operator} */ - public enum Operator implements com.google.protobuf.ProtocolMessageEnum { + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -164,8 +137,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { */ OPERATOR_UNSPECIFIED(0), /** - * - * *
      * The given `property` is less than the given `value`.
      * Requires:
@@ -176,8 +147,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     LESS_THAN(1),
     /**
-     *
-     *
      * 
      * The given `property` is less than or equal to the given `value`.
      * Requires:
@@ -188,8 +157,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     LESS_THAN_OR_EQUAL(2),
     /**
-     *
-     *
      * 
      * The given `property` is greater than the given `value`.
      * Requires:
@@ -200,8 +167,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     GREATER_THAN(3),
     /**
-     *
-     *
      * 
      * The given `property` is greater than or equal to the given `value`.
      * Requires:
@@ -212,8 +177,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     GREATER_THAN_OR_EQUAL(4),
     /**
-     *
-     *
      * 
      * The given `property` is equal to the given `value`.
      * 
@@ -222,8 +185,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { */ EQUAL(5), /** - * - * *
      * The given `property` is equal to at least one value in the given array.
      * Requires:
@@ -235,8 +196,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     IN(6),
     /**
-     *
-     *
      * 
      * The given `property` is not equal to the given `value`.
      * Requires:
@@ -248,8 +207,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     NOT_EQUAL(9),
     /**
-     *
-     *
      * 
      * Limit the result set to the given entity and its descendants.
      * Requires:
@@ -260,8 +217,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     HAS_ANCESTOR(11),
     /**
-     *
-     *
      * 
      * The value of the `property` is not in the given array.
      * Requires:
@@ -277,8 +232,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified. This value must not be used.
      * 
@@ -287,8 +240,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATOR_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The given `property` is less than the given `value`.
      * Requires:
@@ -299,8 +250,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int LESS_THAN_VALUE = 1;
     /**
-     *
-     *
      * 
      * The given `property` is less than or equal to the given `value`.
      * Requires:
@@ -311,8 +260,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int LESS_THAN_OR_EQUAL_VALUE = 2;
     /**
-     *
-     *
      * 
      * The given `property` is greater than the given `value`.
      * Requires:
@@ -323,8 +270,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int GREATER_THAN_VALUE = 3;
     /**
-     *
-     *
      * 
      * The given `property` is greater than or equal to the given `value`.
      * Requires:
@@ -335,8 +280,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int GREATER_THAN_OR_EQUAL_VALUE = 4;
     /**
-     *
-     *
      * 
      * The given `property` is equal to the given `value`.
      * 
@@ -345,8 +288,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EQUAL_VALUE = 5; /** - * - * *
      * The given `property` is equal to at least one value in the given array.
      * Requires:
@@ -358,8 +299,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IN_VALUE = 6;
     /**
-     *
-     *
      * 
      * The given `property` is not equal to the given `value`.
      * Requires:
@@ -371,8 +310,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NOT_EQUAL_VALUE = 9;
     /**
-     *
-     *
      * 
      * Limit the result set to the given entity and its descendants.
      * Requires:
@@ -383,8 +320,6 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HAS_ANCESTOR_VALUE = 11;
     /**
-     *
-     *
      * 
      * The value of the `property` is not in the given array.
      * Requires:
@@ -397,6 +332,7 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NOT_IN_VALUE = 13;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -421,63 +357,56 @@ public static Operator valueOf(int value) {
      */
     public static Operator forNumber(int value) {
       switch (value) {
-        case 0:
-          return OPERATOR_UNSPECIFIED;
-        case 1:
-          return LESS_THAN;
-        case 2:
-          return LESS_THAN_OR_EQUAL;
-        case 3:
-          return GREATER_THAN;
-        case 4:
-          return GREATER_THAN_OR_EQUAL;
-        case 5:
-          return EQUAL;
-        case 6:
-          return IN;
-        case 9:
-          return NOT_EQUAL;
-        case 11:
-          return HAS_ANCESTOR;
-        case 13:
-          return NOT_IN;
-        default:
-          return null;
+        case 0: return OPERATOR_UNSPECIFIED;
+        case 1: return LESS_THAN;
+        case 2: return LESS_THAN_OR_EQUAL;
+        case 3: return GREATER_THAN;
+        case 4: return GREATER_THAN_OR_EQUAL;
+        case 5: return EQUAL;
+        case 6: return IN;
+        case 9: return NOT_EQUAL;
+        case 11: return HAS_ANCESTOR;
+        case 13: return NOT_IN;
+        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<
+        Operator> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Operator findValueByNumber(int number) {
+              return Operator.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Operator findValueByNumber(int number) {
-            return Operator.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.datastore.v1.PropertyFilter.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Operator[] VALUES = values();
 
-    public static Operator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Operator 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;
@@ -497,14 +426,11 @@ private Operator(int value) {
   public static final int PROPERTY_FIELD_NUMBER = 1;
   private com.google.datastore.v1.PropertyReference property_;
   /**
-   *
-   *
    * 
    * The property to filter by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -512,25 +438,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * The property to filter by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ @java.lang.Override public com.google.datastore.v1.PropertyReference getProperty() { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } /** - * - * *
    * The property to filter by.
    * 
@@ -545,50 +464,38 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() public static final int OP_FIELD_NUMBER = 2; private int op_; /** - * - * *
    * The operator to filter by.
    * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @return The enum numeric value on the wire for op. */ - @java.lang.Override - public int getOpValue() { + @java.lang.Override public int getOpValue() { return op_; } /** - * - * *
    * The operator to filter by.
    * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @return The op. */ - @java.lang.Override - public com.google.datastore.v1.PropertyFilter.Operator getOp() { + @java.lang.Override public com.google.datastore.v1.PropertyFilter.Operator getOp() { @SuppressWarnings("deprecation") - com.google.datastore.v1.PropertyFilter.Operator result = - com.google.datastore.v1.PropertyFilter.Operator.valueOf(op_); + com.google.datastore.v1.PropertyFilter.Operator result = com.google.datastore.v1.PropertyFilter.Operator.valueOf(op_); return result == null ? com.google.datastore.v1.PropertyFilter.Operator.UNRECOGNIZED : result; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.datastore.v1.Value value_; /** - * - * *
    * The value to compare the property to.
    * 
* * .google.datastore.v1.Value value = 3; - * * @return Whether the value field is set. */ @java.lang.Override @@ -596,14 +503,11 @@ public boolean hasValue() { return value_ != null; } /** - * - * *
    * The value to compare the property to.
    * 
* * .google.datastore.v1.Value value = 3; - * * @return The value. */ @java.lang.Override @@ -611,8 +515,6 @@ public com.google.datastore.v1.Value getValue() { return value_ == null ? com.google.datastore.v1.Value.getDefaultInstance() : value_; } /** - * - * *
    * The value to compare the property to.
    * 
@@ -625,7 +527,6 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -637,7 +538,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -657,13 +559,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (op_ != com.google.datastore.v1.PropertyFilter.Operator.OPERATOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, op_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, op_); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValue()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -673,7 +578,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.PropertyFilter)) { return super.equals(obj); @@ -682,12 +587,14 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (op_ != other.op_) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -715,127 +622,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.PropertyFilter parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.PropertyFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.PropertyFilter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.PropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.PropertyFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A filter on a specific property.
    * 
* * Protobuf type {@code google.datastore.v1.PropertyFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.PropertyFilter) com.google.datastore.v1.PropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyFilter.class, - com.google.datastore.v1.PropertyFilter.Builder.class); + com.google.datastore.v1.PropertyFilter.class, com.google.datastore.v1.PropertyFilter.Builder.class); } // Construct using com.google.datastore.v1.PropertyFilter.newBuilder() @@ -843,15 +741,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -873,9 +772,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_descriptor; } @java.lang.Override @@ -894,8 +793,7 @@ public com.google.datastore.v1.PropertyFilter build() { @java.lang.Override public com.google.datastore.v1.PropertyFilter buildPartial() { - com.google.datastore.v1.PropertyFilter result = - new com.google.datastore.v1.PropertyFilter(this); + com.google.datastore.v1.PropertyFilter result = new com.google.datastore.v1.PropertyFilter(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -915,39 +813,38 @@ public com.google.datastore.v1.PropertyFilter buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.datastore.v1.PropertyFilter) { - return mergeFrom((com.google.datastore.v1.PropertyFilter) other); + return mergeFrom((com.google.datastore.v1.PropertyFilter)other); } else { super.mergeFrom(other); return this; @@ -996,47 +893,34 @@ public Builder mergeFrom( private com.google.datastore.v1.PropertyReference property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder> - propertyBuilder_; + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> propertyBuilder_; /** - * - * *
      * The property to filter by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * The property to filter by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ public com.google.datastore.v1.PropertyReference getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * The property to filter by.
      * 
@@ -1057,15 +941,14 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** - * - * *
      * The property to filter by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; */ - public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder builderForValue) { + public Builder setProperty( + com.google.datastore.v1.PropertyReference.Builder builderForValue) { if (propertyBuilder_ == null) { property_ = builderForValue.build(); onChanged(); @@ -1076,8 +959,6 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder bui return this; } /** - * - * *
      * The property to filter by.
      * 
@@ -1088,9 +969,7 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.datastore.v1.PropertyReference.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.v1.PropertyReference.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -1102,8 +981,6 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** - * - * *
      * The property to filter by.
      * 
@@ -1122,8 +999,6 @@ public Builder clearProperty() { return this; } /** - * - * *
      * The property to filter by.
      * 
@@ -1131,13 +1006,11 @@ public Builder clearProperty() { * .google.datastore.v1.PropertyReference property = 1; */ public com.google.datastore.v1.PropertyReference.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * The property to filter by.
      * 
@@ -1148,14 +1021,11 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? + com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } } /** - * - * *
      * The property to filter by.
      * 
@@ -1163,17 +1033,14 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() * .google.datastore.v1.PropertyReference property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder> + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1181,65 +1048,51 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() private int op_ = 0; /** - * - * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @return The enum numeric value on the wire for op. */ - @java.lang.Override - public int getOpValue() { + @java.lang.Override public int getOpValue() { return op_; } /** - * - * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @param value The enum numeric value on the wire for op to set. * @return This builder for chaining. */ public Builder setOpValue(int value) { - + op_ = value; onChanged(); return this; } /** - * - * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @return The op. */ @java.lang.Override public com.google.datastore.v1.PropertyFilter.Operator getOp() { @SuppressWarnings("deprecation") - com.google.datastore.v1.PropertyFilter.Operator result = - com.google.datastore.v1.PropertyFilter.Operator.valueOf(op_); + com.google.datastore.v1.PropertyFilter.Operator result = com.google.datastore.v1.PropertyFilter.Operator.valueOf(op_); return result == null ? com.google.datastore.v1.PropertyFilter.Operator.UNRECOGNIZED : result; } /** - * - * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @param value The op to set. * @return This builder for chaining. */ @@ -1247,24 +1100,21 @@ public Builder setOp(com.google.datastore.v1.PropertyFilter.Operator value) { if (value == null) { throw new NullPointerException(); } - + op_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @return This builder for chaining. */ public Builder clearOp() { - + op_ = 0; onChanged(); return this; @@ -1272,33 +1122,24 @@ public Builder clearOp() { private com.google.datastore.v1.Value value_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, - com.google.datastore.v1.Value.Builder, - com.google.datastore.v1.ValueOrBuilder> - valueBuilder_; + com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> valueBuilder_; /** - * - * *
      * The value to compare the property to.
      * 
* * .google.datastore.v1.Value value = 3; - * * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** - * - * *
      * The value to compare the property to.
      * 
* * .google.datastore.v1.Value value = 3; - * * @return The value. */ public com.google.datastore.v1.Value getValue() { @@ -1309,8 +1150,6 @@ public com.google.datastore.v1.Value getValue() { } } /** - * - * *
      * The value to compare the property to.
      * 
@@ -1331,15 +1170,14 @@ public Builder setValue(com.google.datastore.v1.Value value) { return this; } /** - * - * *
      * The value to compare the property to.
      * 
* * .google.datastore.v1.Value value = 3; */ - public Builder setValue(com.google.datastore.v1.Value.Builder builderForValue) { + public Builder setValue( + com.google.datastore.v1.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); @@ -1350,8 +1188,6 @@ public Builder setValue(com.google.datastore.v1.Value.Builder builderForValue) { return this; } /** - * - * *
      * The value to compare the property to.
      * 
@@ -1361,7 +1197,8 @@ public Builder setValue(com.google.datastore.v1.Value.Builder builderForValue) { public Builder mergeValue(com.google.datastore.v1.Value value) { if (valueBuilder_ == null) { if (value_ != null) { - value_ = com.google.datastore.v1.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + value_ = + com.google.datastore.v1.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } @@ -1373,8 +1210,6 @@ public Builder mergeValue(com.google.datastore.v1.Value value) { return this; } /** - * - * *
      * The value to compare the property to.
      * 
@@ -1393,8 +1228,6 @@ public Builder clearValue() { return this; } /** - * - * *
      * The value to compare the property to.
      * 
@@ -1402,13 +1235,11 @@ public Builder clearValue() { * .google.datastore.v1.Value value = 3; */ public com.google.datastore.v1.Value.Builder getValueBuilder() { - + onChanged(); return getValueFieldBuilder().getBuilder(); } /** - * - * *
      * The value to compare the property to.
      * 
@@ -1419,12 +1250,11 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? com.google.datastore.v1.Value.getDefaultInstance() : value_; + return value_ == null ? + com.google.datastore.v1.Value.getDefaultInstance() : value_; } } /** - * - * *
      * The value to compare the property to.
      * 
@@ -1432,24 +1262,21 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { * .google.datastore.v1.Value value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, - com.google.datastore.v1.Value.Builder, - com.google.datastore.v1.ValueOrBuilder> + com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, - com.google.datastore.v1.Value.Builder, - com.google.datastore.v1.ValueOrBuilder>( - getValue(), getParentForChildren(), isClean()); + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); value_ = null; } return valueBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1459,12 +1286,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.PropertyFilter) } // @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyFilter) private static final com.google.datastore.v1.PropertyFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.PropertyFilter(); } @@ -1473,16 +1300,16 @@ public static com.google.datastore.v1.PropertyFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PropertyFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1497,4 +1324,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.PropertyFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java similarity index 72% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java index f9d3ba4bf..2a087a6f3 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface PropertyFilterOrBuilder - extends +public interface PropertyFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.PropertyFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The property to filter by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * The property to filter by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ com.google.datastore.v1.PropertyReference getProperty(); /** - * - * *
    * The property to filter by.
    * 
@@ -59,57 +35,43 @@ public interface PropertyFilterOrBuilder com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The operator to filter by.
    * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @return The enum numeric value on the wire for op. */ int getOpValue(); /** - * - * *
    * The operator to filter by.
    * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; - * * @return The op. */ com.google.datastore.v1.PropertyFilter.Operator getOp(); /** - * - * *
    * The value to compare the property to.
    * 
* * .google.datastore.v1.Value value = 3; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
    * The value to compare the property to.
    * 
* * .google.datastore.v1.Value value = 3; - * * @return The value. */ com.google.datastore.v1.Value getValue(); /** - * - * *
    * The value to compare the property to.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java similarity index 70% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java index 4eff592cb..0225d48cf 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** - * - * *
  * The desired order for a specific property.
  * 
* * Protobuf type {@code google.datastore.v1.PropertyOrder} */ -public final class PropertyOrder extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PropertyOrder extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.PropertyOrder) PropertyOrderOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PropertyOrder.newBuilder() to construct. private PropertyOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PropertyOrder() { direction_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PropertyOrder(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PropertyOrder( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private PropertyOrder( case 0: done = true; break; - case 10: - { - com.google.datastore.v1.PropertyReference.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.v1.PropertyReference.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 16: - { - int rawValue = input.readEnum(); - - direction_ = rawValue; - break; + property_ = input.readMessage(com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,41 +86,36 @@ private PropertyOrder( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyOrder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyOrder.class, - com.google.datastore.v1.PropertyOrder.Builder.class); + com.google.datastore.v1.PropertyOrder.class, com.google.datastore.v1.PropertyOrder.Builder.class); } /** - * - * *
    * The sort direction.
    * 
* * Protobuf enum {@code google.datastore.v1.PropertyOrder.Direction} */ - public enum Direction implements com.google.protobuf.ProtocolMessageEnum { + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -150,8 +124,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ DIRECTION_UNSPECIFIED(0), /** - * - * *
      * Ascending.
      * 
@@ -160,8 +132,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ ASCENDING(1), /** - * - * *
      * Descending.
      * 
@@ -173,8 +143,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -183,8 +151,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DIRECTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Ascending.
      * 
@@ -193,8 +159,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ASCENDING_VALUE = 1; /** - * - * *
      * Descending.
      * 
@@ -203,6 +167,7 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DESCENDING_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -227,49 +192,49 @@ public static Direction valueOf(int value) { */ public static Direction forNumber(int value) { switch (value) { - case 0: - return DIRECTION_UNSPECIFIED; - case 1: - return ASCENDING; - case 2: - return DESCENDING; - default: - return null; + case 0: return DIRECTION_UNSPECIFIED; + case 1: return ASCENDING; + case 2: return DESCENDING; + 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< + Direction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Direction findValueByNumber(int number) { - return Direction.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.v1.PropertyOrder.getDescriptor().getEnumTypes().get(0); } private static final Direction[] VALUES = values(); - public static Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Direction 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; @@ -289,14 +254,11 @@ private Direction(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.datastore.v1.PropertyReference property_; /** - * - * *
    * The property to order by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -304,25 +266,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * The property to order by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ @java.lang.Override public com.google.datastore.v1.PropertyReference getProperty() { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } /** - * - * *
    * The property to order by.
    * 
@@ -337,41 +292,31 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() public static final int DIRECTION_FIELD_NUMBER = 2; private int direction_; /** - * - * *
    * The direction to order by. Defaults to `ASCENDING`.
    * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * - * *
    * The direction to order by. Defaults to `ASCENDING`.
    * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @return The direction. */ - @java.lang.Override - public com.google.datastore.v1.PropertyOrder.Direction getDirection() { + @java.lang.Override public com.google.datastore.v1.PropertyOrder.Direction getDirection() { @SuppressWarnings("deprecation") - com.google.datastore.v1.PropertyOrder.Direction result = - com.google.datastore.v1.PropertyOrder.Direction.valueOf(direction_); + com.google.datastore.v1.PropertyOrder.Direction result = com.google.datastore.v1.PropertyOrder.Direction.valueOf(direction_); return result == null ? com.google.datastore.v1.PropertyOrder.Direction.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,12 +328,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } - if (direction_ - != com.google.datastore.v1.PropertyOrder.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + if (direction_ != com.google.datastore.v1.PropertyOrder.Direction.DIRECTION_UNSPECIFIED.getNumber()) { output.writeEnum(2, direction_); } unknownFields.writeTo(output); @@ -401,11 +346,12 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } - if (direction_ - != com.google.datastore.v1.PropertyOrder.Direction.DIRECTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); + if (direction_ != com.google.datastore.v1.PropertyOrder.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, direction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -415,7 +361,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.PropertyOrder)) { return super.equals(obj); @@ -424,7 +370,8 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (direction_ != other.direction_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -449,126 +396,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.PropertyOrder parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.PropertyOrder parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyOrder parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.v1.PropertyOrder parseFrom(com.google.protobuf.ByteString data) + public static com.google.datastore.v1.PropertyOrder parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyOrder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyOrder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyOrder parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyOrder parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyOrder parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.PropertyOrder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyOrder parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.PropertyOrder parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyOrder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.PropertyOrder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 order for a specific property.
    * 
* * Protobuf type {@code google.datastore.v1.PropertyOrder} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.PropertyOrder) com.google.datastore.v1.PropertyOrderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyOrder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyOrder.class, - com.google.datastore.v1.PropertyOrder.Builder.class); + com.google.datastore.v1.PropertyOrder.class, com.google.datastore.v1.PropertyOrder.Builder.class); } // Construct using com.google.datastore.v1.PropertyOrder.newBuilder() @@ -576,15 +515,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -600,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyOrder_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_descriptor; } @java.lang.Override @@ -621,8 +561,7 @@ public com.google.datastore.v1.PropertyOrder build() { @java.lang.Override public com.google.datastore.v1.PropertyOrder buildPartial() { - com.google.datastore.v1.PropertyOrder result = - new com.google.datastore.v1.PropertyOrder(this); + com.google.datastore.v1.PropertyOrder result = new com.google.datastore.v1.PropertyOrder(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -637,39 +576,38 @@ public com.google.datastore.v1.PropertyOrder 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.datastore.v1.PropertyOrder) { - return mergeFrom((com.google.datastore.v1.PropertyOrder) other); + return mergeFrom((com.google.datastore.v1.PropertyOrder)other); } else { super.mergeFrom(other); return this; @@ -715,47 +653,34 @@ public Builder mergeFrom( private com.google.datastore.v1.PropertyReference property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder> - propertyBuilder_; + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> propertyBuilder_; /** - * - * *
      * The property to order by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * The property to order by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ public com.google.datastore.v1.PropertyReference getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * The property to order by.
      * 
@@ -776,15 +701,14 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** - * - * *
      * The property to order by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; */ - public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder builderForValue) { + public Builder setProperty( + com.google.datastore.v1.PropertyReference.Builder builderForValue) { if (propertyBuilder_ == null) { property_ = builderForValue.build(); onChanged(); @@ -795,8 +719,6 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder bui return this; } /** - * - * *
      * The property to order by.
      * 
@@ -807,9 +729,7 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.datastore.v1.PropertyReference.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.v1.PropertyReference.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -821,8 +741,6 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** - * - * *
      * The property to order by.
      * 
@@ -841,8 +759,6 @@ public Builder clearProperty() { return this; } /** - * - * *
      * The property to order by.
      * 
@@ -850,13 +766,11 @@ public Builder clearProperty() { * .google.datastore.v1.PropertyReference property = 1; */ public com.google.datastore.v1.PropertyReference.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * The property to order by.
      * 
@@ -867,14 +781,11 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.datastore.v1.PropertyReference.getDefaultInstance() - : property_; + return property_ == null ? + com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; } } /** - * - * *
      * The property to order by.
      * 
@@ -882,17 +793,14 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() * .google.datastore.v1.PropertyReference property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder> + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -900,65 +808,51 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() private int direction_ = 0; /** - * - * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * - * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ public Builder setDirectionValue(int value) { - + direction_ = value; onChanged(); return this; } /** - * - * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @return The direction. */ @java.lang.Override public com.google.datastore.v1.PropertyOrder.Direction getDirection() { @SuppressWarnings("deprecation") - com.google.datastore.v1.PropertyOrder.Direction result = - com.google.datastore.v1.PropertyOrder.Direction.valueOf(direction_); + com.google.datastore.v1.PropertyOrder.Direction result = com.google.datastore.v1.PropertyOrder.Direction.valueOf(direction_); return result == null ? com.google.datastore.v1.PropertyOrder.Direction.UNRECOGNIZED : result; } /** - * - * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @param value The direction to set. * @return This builder for chaining. */ @@ -966,31 +860,28 @@ public Builder setDirection(com.google.datastore.v1.PropertyOrder.Direction valu if (value == null) { throw new NullPointerException(); } - + direction_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @return This builder for chaining. */ public Builder clearDirection() { - + direction_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +891,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.PropertyOrder) } // @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyOrder) private static final com.google.datastore.v1.PropertyOrder DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.PropertyOrder(); } @@ -1014,16 +905,16 @@ public static com.google.datastore.v1.PropertyOrder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyOrder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyOrder(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyOrder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PropertyOrder(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,4 +929,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.PropertyOrder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java similarity index 67% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java index 93cb3f926..0606042c6 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface PropertyOrderOrBuilder - extends +public interface PropertyOrderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.PropertyOrder) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The property to order by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * The property to order by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; - * * @return The property. */ com.google.datastore.v1.PropertyReference getProperty(); /** - * - * *
    * The property to order by.
    * 
@@ -59,26 +35,20 @@ public interface PropertyOrderOrBuilder com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The direction to order by. Defaults to `ASCENDING`.
    * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** - * - * *
    * The direction to order by. Defaults to `ASCENDING`.
    * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; - * * @return The direction. */ com.google.datastore.v1.PropertyOrder.Direction getDirection(); diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java similarity index 69% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java index bc42d0064..812398844 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** - * - * *
  * A reference to a property relative to the kind expressions.
  * 
* * Protobuf type {@code google.datastore.v1.PropertyReference} */ -public final class PropertyReference extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PropertyReference extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.PropertyReference) PropertyReferenceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PropertyReference.newBuilder() to construct. private PropertyReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PropertyReference() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PropertyReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PropertyReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private PropertyReference( case 0: done = true; break; - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private PropertyReference( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyReference.class, - com.google.datastore.v1.PropertyReference.Builder.class); + com.google.datastore.v1.PropertyReference.class, com.google.datastore.v1.PropertyReference.Builder.class); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The name of the property.
    * If name includes "."s, it may be interpreted as a property name path.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the property.
    * If name includes "."s, it may be interpreted as a property name path.
    * 
* * string name = 2; - * * @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 { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.PropertyReference)) { return super.equals(obj); } - com.google.datastore.v1.PropertyReference other = - (com.google.datastore.v1.PropertyReference) obj; + com.google.datastore.v1.PropertyReference other = (com.google.datastore.v1.PropertyReference) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.PropertyReference parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.PropertyReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyReference parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.PropertyReference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyReference parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyReference parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.PropertyReference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.PropertyReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyReference parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.PropertyReference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.PropertyReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.PropertyReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A reference to a property relative to the kind expressions.
    * 
* * Protobuf type {@code google.datastore.v1.PropertyReference} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.PropertyReference) com.google.datastore.v1.PropertyReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyReference.class, - com.google.datastore.v1.PropertyReference.Builder.class); + com.google.datastore.v1.PropertyReference.class, com.google.datastore.v1.PropertyReference.Builder.class); } // Construct using com.google.datastore.v1.PropertyReference.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_PropertyReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_descriptor; } @java.lang.Override @@ -395,8 +364,7 @@ public com.google.datastore.v1.PropertyReference build() { @java.lang.Override public com.google.datastore.v1.PropertyReference buildPartial() { - com.google.datastore.v1.PropertyReference result = - new com.google.datastore.v1.PropertyReference(this); + com.google.datastore.v1.PropertyReference result = new com.google.datastore.v1.PropertyReference(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.datastore.v1.PropertyReference 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.datastore.v1.PropertyReference) { - return mergeFrom((com.google.datastore.v1.PropertyReference) other); + return mergeFrom((com.google.datastore.v1.PropertyReference)other); } else { super.mergeFrom(other); return this; @@ -482,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; - * * @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,22 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; - * * @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 { @@ -528,71 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; - * * @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); } @@ -602,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.PropertyReference) } // @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyReference) private static final com.google.datastore.v1.PropertyReference DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.PropertyReference(); } @@ -616,16 +573,16 @@ public static com.google.datastore.v1.PropertyReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyReference(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PropertyReference(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.PropertyReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java new file mode 100644 index 000000000..9d4dcafb4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/v1/query.proto + +package com.google.datastore.v1; + +public interface PropertyReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.datastore.v1.PropertyReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the property.
+   * If name includes "."s, it may be interpreted as a property name path.
+   * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the property.
+   * If name includes "."s, it may be interpreted as a property name path.
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java similarity index 80% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java index 781346c62..2d8085326 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.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/datastore/v1/query.proto package com.google.datastore.v1; /** - * - * *
  * A query for entities.
  * 
* * Protobuf type {@code google.datastore.v1.Query} */ -public final class Query extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Query extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.Query) QueryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Query.newBuilder() to construct. private Query(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Query() { projection_ = java.util.Collections.emptyList(); kind_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private Query() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Query(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Query( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,102 +59,90 @@ private Query( case 0: done = true; break; - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projection_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - projection_.add( - input.readMessage( - com.google.datastore.v1.Projection.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - kind_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - kind_.add( - input.readMessage( - com.google.datastore.v1.KindExpression.parser(), extensionRegistry)); - break; + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projection_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - com.google.datastore.v1.Filter.Builder subBuilder = null; - if (filter_ != null) { - subBuilder = filter_.toBuilder(); - } - filter_ = - input.readMessage(com.google.datastore.v1.Filter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); - } - - break; + projection_.add( + input.readMessage(com.google.datastore.v1.Projection.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + kind_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 42: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - order_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - order_.add( - input.readMessage( - com.google.datastore.v1.PropertyOrder.parser(), extensionRegistry)); - break; + kind_.add( + input.readMessage(com.google.datastore.v1.KindExpression.parser(), extensionRegistry)); + break; + } + case 34: { + com.google.datastore.v1.Filter.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); } - case 50: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - distinctOn_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - distinctOn_.add( - input.readMessage( - com.google.datastore.v1.PropertyReference.parser(), extensionRegistry)); - break; + filter_ = input.readMessage(com.google.datastore.v1.Filter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); } - case 58: - { - startCursor_ = input.readBytes(); - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + order_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 66: - { - endCursor_ = input.readBytes(); - break; + order_.add( + input.readMessage(com.google.datastore.v1.PropertyOrder.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + distinctOn_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 80: - { - offset_ = input.readInt32(); - break; + distinctOn_.add( + input.readMessage(com.google.datastore.v1.PropertyReference.parser(), extensionRegistry)); + break; + } + case 58: { + + startCursor_ = input.readBytes(); + break; + } + case 66: { + + endCursor_ = input.readBytes(); + break; + } + case 80: { + + offset_ = input.readInt32(); + break; + } + case 98: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (limit_ != null) { + subBuilder = limit_.toBuilder(); } - case 98: - { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (limit_ != null) { - subBuilder = limit_.toBuilder(); - } - limit_ = - input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(limit_); - limit_ = subBuilder.buildPartial(); - } - - break; + limit_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(limit_); + limit_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -179,7 +150,8 @@ private Query( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projection_ = java.util.Collections.unmodifiableList(projection_); @@ -197,16 +169,15 @@ private Query( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Query_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Query.class, com.google.datastore.v1.Query.Builder.class); } @@ -214,8 +185,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int PROJECTION_FIELD_NUMBER = 2; private java.util.List projection_; /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -227,8 +196,6 @@ public java.util.List getProjectionList() { return projection_; } /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -236,13 +203,11 @@ public java.util.List getProjectionList() { * repeated .google.datastore.v1.Projection projection = 2; */ @java.lang.Override - public java.util.List + public java.util.List getProjectionOrBuilderList() { return projection_; } /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -254,8 +219,6 @@ public int getProjectionCount() { return projection_.size(); } /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -267,8 +230,6 @@ public com.google.datastore.v1.Projection getProjection(int index) { return projection_.get(index); } /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -276,15 +237,14 @@ public com.google.datastore.v1.Projection getProjection(int index) { * repeated .google.datastore.v1.Projection projection = 2; */ @java.lang.Override - public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(int index) { + public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder( + int index) { return projection_.get(index); } public static final int KIND_FIELD_NUMBER = 3; private java.util.List kind_; /** - * - * *
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -297,8 +257,6 @@ public java.util.List getKindList() {
     return kind_;
   }
   /**
-   *
-   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -307,13 +265,11 @@ public java.util.List getKindList() {
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getKindOrBuilderList() {
     return kind_;
   }
   /**
-   *
-   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -326,8 +282,6 @@ public int getKindCount() {
     return kind_.size();
   }
   /**
-   *
-   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -340,8 +294,6 @@ public com.google.datastore.v1.KindExpression getKind(int index) {
     return kind_.get(index);
   }
   /**
-   *
-   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -350,21 +302,19 @@ public com.google.datastore.v1.KindExpression getKind(int index) {
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
   @java.lang.Override
-  public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int index) {
+  public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
+      int index) {
     return kind_.get(index);
   }
 
   public static final int FILTER_FIELD_NUMBER = 4;
   private com.google.datastore.v1.Filter filter_;
   /**
-   *
-   *
    * 
    * The filter to apply.
    * 
* * .google.datastore.v1.Filter filter = 4; - * * @return Whether the filter field is set. */ @java.lang.Override @@ -372,14 +322,11 @@ public boolean hasFilter() { return filter_ != null; } /** - * - * *
    * The filter to apply.
    * 
* * .google.datastore.v1.Filter filter = 4; - * * @return The filter. */ @java.lang.Override @@ -387,8 +334,6 @@ public com.google.datastore.v1.Filter getFilter() { return filter_ == null ? com.google.datastore.v1.Filter.getDefaultInstance() : filter_; } /** - * - * *
    * The filter to apply.
    * 
@@ -403,8 +348,6 @@ public com.google.datastore.v1.FilterOrBuilder getFilterOrBuilder() { public static final int ORDER_FIELD_NUMBER = 5; private java.util.List order_; /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -416,8 +359,6 @@ public java.util.List getOrderList() { return order_; } /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -425,13 +366,11 @@ public java.util.List getOrderList() { * repeated .google.datastore.v1.PropertyOrder order = 5; */ @java.lang.Override - public java.util.List + public java.util.List getOrderOrBuilderList() { return order_; } /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -443,8 +382,6 @@ public int getOrderCount() { return order_.size(); } /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -456,8 +393,6 @@ public com.google.datastore.v1.PropertyOrder getOrder(int index) { return order_.get(index); } /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -465,15 +400,14 @@ public com.google.datastore.v1.PropertyOrder getOrder(int index) { * repeated .google.datastore.v1.PropertyOrder order = 5; */ @java.lang.Override - public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int index) { + public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder( + int index) { return order_.get(index); } public static final int DISTINCT_ON_FIELD_NUMBER = 6; private java.util.List distinctOn_; /** - * - * *
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -487,8 +421,6 @@ public java.util.List getDistinctOnLi
     return distinctOn_;
   }
   /**
-   *
-   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -498,13 +430,11 @@ public java.util.List getDistinctOnLi
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getDistinctOnOrBuilderList() {
     return distinctOn_;
   }
   /**
-   *
-   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -518,8 +448,6 @@ public int getDistinctOnCount() {
     return distinctOn_.size();
   }
   /**
-   *
-   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -533,8 +461,6 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
     return distinctOn_.get(index);
   }
   /**
-   *
-   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -544,15 +470,14 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
   @java.lang.Override
-  public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(int index) {
+  public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
+      int index) {
     return distinctOn_.get(index);
   }
 
   public static final int START_CURSOR_FIELD_NUMBER = 7;
   private com.google.protobuf.ByteString startCursor_;
   /**
-   *
-   *
    * 
    * A starting point for the query results. Query cursors are
    * returned in query result batches and
@@ -561,7 +486,6 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
    * 
* * bytes start_cursor = 7; - * * @return The startCursor. */ @java.lang.Override @@ -572,8 +496,6 @@ public com.google.protobuf.ByteString getStartCursor() { public static final int END_CURSOR_FIELD_NUMBER = 8; private com.google.protobuf.ByteString endCursor_; /** - * - * *
    * An ending point for the query results. Query cursors are
    * returned in query result batches and
@@ -582,7 +504,6 @@ public com.google.protobuf.ByteString getStartCursor() {
    * 
* * bytes end_cursor = 8; - * * @return The endCursor. */ @java.lang.Override @@ -593,15 +514,12 @@ public com.google.protobuf.ByteString getEndCursor() { public static final int OFFSET_FIELD_NUMBER = 10; private int offset_; /** - * - * *
    * The number of results to skip. Applies before limit, but after all other
    * constraints. Optional. Must be >= 0 if specified.
    * 
* * int32 offset = 10; - * * @return The offset. */ @java.lang.Override @@ -612,8 +530,6 @@ public int getOffset() { public static final int LIMIT_FIELD_NUMBER = 12; private com.google.protobuf.Int32Value limit_; /** - * - * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -622,7 +538,6 @@ public int getOffset() {
    * 
* * .google.protobuf.Int32Value limit = 12; - * * @return Whether the limit field is set. */ @java.lang.Override @@ -630,8 +545,6 @@ public boolean hasLimit() { return limit_ != null; } /** - * - * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -640,7 +553,6 @@ public boolean hasLimit() {
    * 
* * .google.protobuf.Int32Value limit = 12; - * * @return The limit. */ @java.lang.Override @@ -648,8 +560,6 @@ public com.google.protobuf.Int32Value getLimit() { return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; } /** - * - * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -665,7 +575,6 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -677,7 +586,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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 < projection_.size(); i++) {
       output.writeMessage(2, projection_.get(i));
     }
@@ -715,31 +625,40 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < projection_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, projection_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, projection_.get(i));
     }
     for (int i = 0; i < kind_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, kind_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, kind_.get(i));
     }
     if (filter_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFilter());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getFilter());
     }
     for (int i = 0; i < order_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, order_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, order_.get(i));
     }
     for (int i = 0; i < distinctOn_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, distinctOn_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, distinctOn_.get(i));
     }
     if (!startCursor_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, startCursor_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(7, startCursor_);
     }
     if (!endCursor_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, endCursor_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(8, endCursor_);
     }
     if (offset_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, offset_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(10, offset_);
     }
     if (limit_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLimit());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getLimit());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -749,27 +668,36 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.Query)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.Query other = (com.google.datastore.v1.Query) obj;
 
-    if (!getProjectionList().equals(other.getProjectionList())) return false;
-    if (!getKindList().equals(other.getKindList())) return false;
+    if (!getProjectionList()
+        .equals(other.getProjectionList())) return false;
+    if (!getKindList()
+        .equals(other.getKindList())) return false;
     if (hasFilter() != other.hasFilter()) return false;
     if (hasFilter()) {
-      if (!getFilter().equals(other.getFilter())) return false;
-    }
-    if (!getOrderList().equals(other.getOrderList())) return false;
-    if (!getDistinctOnList().equals(other.getDistinctOnList())) return false;
-    if (!getStartCursor().equals(other.getStartCursor())) return false;
-    if (!getEndCursor().equals(other.getEndCursor())) return false;
-    if (getOffset() != other.getOffset()) return false;
+      if (!getFilter()
+          .equals(other.getFilter())) return false;
+    }
+    if (!getOrderList()
+        .equals(other.getOrderList())) return false;
+    if (!getDistinctOnList()
+        .equals(other.getDistinctOnList())) return false;
+    if (!getStartCursor()
+        .equals(other.getStartCursor())) return false;
+    if (!getEndCursor()
+        .equals(other.getEndCursor())) return false;
+    if (getOffset()
+        != other.getOffset()) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -817,123 +745,116 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.Query parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.Query parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Query parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.Query parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.datastore.v1.Query parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Query parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Query parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.Query parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Query parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Query parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.Query parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Query parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.Query parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.datastore.v1.Query parseFrom(
+      com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.Query parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.Query prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A query for entities.
    * 
* * Protobuf type {@code google.datastore.v1.Query} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.Query) com.google.datastore.v1.QueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Query_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Query_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Query.class, com.google.datastore.v1.Query.Builder.class); } @@ -943,20 +864,20 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProjectionFieldBuilder(); getKindFieldBuilder(); getOrderFieldBuilder(); getDistinctOnFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1006,9 +927,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_Query_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_descriptor; } @java.lang.Override @@ -1086,39 +1007,38 @@ public com.google.datastore.v1.Query 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.datastore.v1.Query) { - return mergeFrom((com.google.datastore.v1.Query) other); + return mergeFrom((com.google.datastore.v1.Query)other); } else { super.mergeFrom(other); return this; @@ -1145,10 +1065,9 @@ public Builder mergeFrom(com.google.datastore.v1.Query other) { projectionBuilder_ = null; projection_ = other.projection_; bitField0_ = (bitField0_ & ~0x00000001); - projectionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProjectionFieldBuilder() - : null; + projectionBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProjectionFieldBuilder() : null; } else { projectionBuilder_.addAllMessages(other.projection_); } @@ -1172,10 +1091,9 @@ public Builder mergeFrom(com.google.datastore.v1.Query other) { kindBuilder_ = null; kind_ = other.kind_; bitField0_ = (bitField0_ & ~0x00000002); - kindBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKindFieldBuilder() - : null; + kindBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKindFieldBuilder() : null; } else { kindBuilder_.addAllMessages(other.kind_); } @@ -1202,10 +1120,9 @@ public Builder mergeFrom(com.google.datastore.v1.Query other) { orderBuilder_ = null; order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000004); - orderBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOrderFieldBuilder() - : null; + orderBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOrderFieldBuilder() : null; } else { orderBuilder_.addAllMessages(other.order_); } @@ -1229,10 +1146,9 @@ public Builder mergeFrom(com.google.datastore.v1.Query other) { distinctOnBuilder_ = null; distinctOn_ = other.distinctOn_; bitField0_ = (bitField0_ & ~0x00000008); - distinctOnBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDistinctOnFieldBuilder() - : null; + distinctOnBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDistinctOnFieldBuilder() : null; } else { distinctOnBuilder_.addAllMessages(other.distinctOn_); } @@ -1278,28 +1194,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List projection_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProjectionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projection_ = new java.util.ArrayList(projection_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Projection, - com.google.datastore.v1.Projection.Builder, - com.google.datastore.v1.ProjectionOrBuilder> - projectionBuilder_; + com.google.datastore.v1.Projection, com.google.datastore.v1.Projection.Builder, com.google.datastore.v1.ProjectionOrBuilder> projectionBuilder_; /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1314,8 +1223,6 @@ public java.util.List getProjectionList() { } } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1330,8 +1237,6 @@ public int getProjectionCount() { } } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1346,15 +1251,14 @@ public com.google.datastore.v1.Projection getProjection(int index) { } } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public Builder setProjection(int index, com.google.datastore.v1.Projection value) { + public Builder setProjection( + int index, com.google.datastore.v1.Projection value) { if (projectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1368,8 +1272,6 @@ public Builder setProjection(int index, com.google.datastore.v1.Projection value return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1388,8 +1290,6 @@ public Builder setProjection( return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1410,15 +1310,14 @@ public Builder addProjection(com.google.datastore.v1.Projection value) { return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public Builder addProjection(int index, com.google.datastore.v1.Projection value) { + public Builder addProjection( + int index, com.google.datastore.v1.Projection value) { if (projectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1432,15 +1331,14 @@ public Builder addProjection(int index, com.google.datastore.v1.Projection value return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public Builder addProjection(com.google.datastore.v1.Projection.Builder builderForValue) { + public Builder addProjection( + com.google.datastore.v1.Projection.Builder builderForValue) { if (projectionBuilder_ == null) { ensureProjectionIsMutable(); projection_.add(builderForValue.build()); @@ -1451,8 +1349,6 @@ public Builder addProjection(com.google.datastore.v1.Projection.Builder builderF return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1471,8 +1367,6 @@ public Builder addProjection( return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1483,7 +1377,8 @@ public Builder addAllProjection( java.lang.Iterable values) { if (projectionBuilder_ == null) { ensureProjectionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projection_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projection_); onChanged(); } else { projectionBuilder_.addAllMessages(values); @@ -1491,8 +1386,6 @@ public Builder addAllProjection( return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1510,8 +1403,6 @@ public Builder clearProjection() { return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1529,44 +1420,39 @@ public Builder removeProjection(int index) { return this; } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public com.google.datastore.v1.Projection.Builder getProjectionBuilder(int index) { + public com.google.datastore.v1.Projection.Builder getProjectionBuilder( + int index) { return getProjectionFieldBuilder().getBuilder(index); } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(int index) { + public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder( + int index) { if (projectionBuilder_ == null) { - return projection_.get(index); - } else { + return projection_.get(index); } else { return projectionBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public java.util.List - getProjectionOrBuilderList() { + public java.util.List + getProjectionOrBuilderList() { if (projectionBuilder_ != null) { return projectionBuilder_.getMessageOrBuilderList(); } else { @@ -1574,8 +1460,6 @@ public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(int in } } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1583,71 +1467,60 @@ public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(int in * repeated .google.datastore.v1.Projection projection = 2; */ public com.google.datastore.v1.Projection.Builder addProjectionBuilder() { - return getProjectionFieldBuilder() - .addBuilder(com.google.datastore.v1.Projection.getDefaultInstance()); + return getProjectionFieldBuilder().addBuilder( + com.google.datastore.v1.Projection.getDefaultInstance()); } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public com.google.datastore.v1.Projection.Builder addProjectionBuilder(int index) { - return getProjectionFieldBuilder() - .addBuilder(index, com.google.datastore.v1.Projection.getDefaultInstance()); + public com.google.datastore.v1.Projection.Builder addProjectionBuilder( + int index) { + return getProjectionFieldBuilder().addBuilder( + index, com.google.datastore.v1.Projection.getDefaultInstance()); } /** - * - * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public java.util.List getProjectionBuilderList() { + public java.util.List + getProjectionBuilderList() { return getProjectionFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Projection, - com.google.datastore.v1.Projection.Builder, - com.google.datastore.v1.ProjectionOrBuilder> + com.google.datastore.v1.Projection, com.google.datastore.v1.Projection.Builder, com.google.datastore.v1.ProjectionOrBuilder> getProjectionFieldBuilder() { if (projectionBuilder_ == null) { - projectionBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Projection, - com.google.datastore.v1.Projection.Builder, - com.google.datastore.v1.ProjectionOrBuilder>( - projection_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + projectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.Projection, com.google.datastore.v1.Projection.Builder, com.google.datastore.v1.ProjectionOrBuilder>( + projection_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); projection_ = null; } return projectionBuilder_; } private java.util.List kind_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureKindIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { kind_ = new java.util.ArrayList(kind_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.KindExpression, - com.google.datastore.v1.KindExpression.Builder, - com.google.datastore.v1.KindExpressionOrBuilder> - kindBuilder_; + com.google.datastore.v1.KindExpression, com.google.datastore.v1.KindExpression.Builder, com.google.datastore.v1.KindExpressionOrBuilder> kindBuilder_; /** - * - * *
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1663,8 +1536,6 @@ public java.util.List getKindList() {
       }
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1680,8 +1551,6 @@ public int getKindCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1697,8 +1566,6 @@ public com.google.datastore.v1.KindExpression getKind(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1706,7 +1573,8 @@ public com.google.datastore.v1.KindExpression getKind(int index) {
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public Builder setKind(int index, com.google.datastore.v1.KindExpression value) {
+    public Builder setKind(
+        int index, com.google.datastore.v1.KindExpression value) {
       if (kindBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1720,8 +1588,6 @@ public Builder setKind(int index, com.google.datastore.v1.KindExpression value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1741,8 +1607,6 @@ public Builder setKind(
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1764,8 +1628,6 @@ public Builder addKind(com.google.datastore.v1.KindExpression value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1773,7 +1635,8 @@ public Builder addKind(com.google.datastore.v1.KindExpression value) {
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public Builder addKind(int index, com.google.datastore.v1.KindExpression value) {
+    public Builder addKind(
+        int index, com.google.datastore.v1.KindExpression value) {
       if (kindBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1787,8 +1650,6 @@ public Builder addKind(int index, com.google.datastore.v1.KindExpression value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1796,7 +1657,8 @@ public Builder addKind(int index, com.google.datastore.v1.KindExpression value)
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public Builder addKind(com.google.datastore.v1.KindExpression.Builder builderForValue) {
+    public Builder addKind(
+        com.google.datastore.v1.KindExpression.Builder builderForValue) {
       if (kindBuilder_ == null) {
         ensureKindIsMutable();
         kind_.add(builderForValue.build());
@@ -1807,8 +1669,6 @@ public Builder addKind(com.google.datastore.v1.KindExpression.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1828,8 +1688,6 @@ public Builder addKind(
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1841,7 +1699,8 @@ public Builder addAllKind(
         java.lang.Iterable values) {
       if (kindBuilder_ == null) {
         ensureKindIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kind_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, kind_);
         onChanged();
       } else {
         kindBuilder_.addAllMessages(values);
@@ -1849,8 +1708,6 @@ public Builder addAllKind(
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1869,8 +1726,6 @@ public Builder clearKind() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1889,8 +1744,6 @@ public Builder removeKind(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1898,12 +1751,11 @@ public Builder removeKind(int index) {
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public com.google.datastore.v1.KindExpression.Builder getKindBuilder(int index) {
+    public com.google.datastore.v1.KindExpression.Builder getKindBuilder(
+        int index) {
       return getKindFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1911,16 +1763,14 @@ public com.google.datastore.v1.KindExpression.Builder getKindBuilder(int index)
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int index) {
+    public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
+        int index) {
       if (kindBuilder_ == null) {
-        return kind_.get(index);
-      } else {
+        return kind_.get(index);  } else {
         return kindBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1928,8 +1778,8 @@ public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int inde
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public java.util.List
-        getKindOrBuilderList() {
+    public java.util.List 
+         getKindOrBuilderList() {
       if (kindBuilder_ != null) {
         return kindBuilder_.getMessageOrBuilderList();
       } else {
@@ -1937,8 +1787,6 @@ public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int inde
       }
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1947,12 +1795,10 @@ public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int inde
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
     public com.google.datastore.v1.KindExpression.Builder addKindBuilder() {
-      return getKindFieldBuilder()
-          .addBuilder(com.google.datastore.v1.KindExpression.getDefaultInstance());
+      return getKindFieldBuilder().addBuilder(
+          com.google.datastore.v1.KindExpression.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1960,13 +1806,12 @@ public com.google.datastore.v1.KindExpression.Builder addKindBuilder() {
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public com.google.datastore.v1.KindExpression.Builder addKindBuilder(int index) {
-      return getKindFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.KindExpression.getDefaultInstance());
+    public com.google.datastore.v1.KindExpression.Builder addKindBuilder(
+        int index) {
+      return getKindFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.KindExpression.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1974,22 +1819,20 @@ public com.google.datastore.v1.KindExpression.Builder addKindBuilder(int index)
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public java.util.List getKindBuilderList() {
+    public java.util.List 
+         getKindBuilderList() {
       return getKindFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.KindExpression,
-            com.google.datastore.v1.KindExpression.Builder,
-            com.google.datastore.v1.KindExpressionOrBuilder>
+        com.google.datastore.v1.KindExpression, com.google.datastore.v1.KindExpression.Builder, com.google.datastore.v1.KindExpressionOrBuilder> 
         getKindFieldBuilder() {
       if (kindBuilder_ == null) {
-        kindBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.KindExpression,
-                com.google.datastore.v1.KindExpression.Builder,
-                com.google.datastore.v1.KindExpressionOrBuilder>(
-                kind_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        kindBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.KindExpression, com.google.datastore.v1.KindExpression.Builder, com.google.datastore.v1.KindExpressionOrBuilder>(
+                kind_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         kind_ = null;
       }
       return kindBuilder_;
@@ -1997,33 +1840,24 @@ public java.util.List getKindBui
 
     private com.google.datastore.v1.Filter filter_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Filter,
-            com.google.datastore.v1.Filter.Builder,
-            com.google.datastore.v1.FilterOrBuilder>
-        filterBuilder_;
+        com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder> filterBuilder_;
     /**
-     *
-     *
      * 
      * The filter to apply.
      * 
* * .google.datastore.v1.Filter filter = 4; - * * @return Whether the filter field is set. */ public boolean hasFilter() { return filterBuilder_ != null || filter_ != null; } /** - * - * *
      * The filter to apply.
      * 
* * .google.datastore.v1.Filter filter = 4; - * * @return The filter. */ public com.google.datastore.v1.Filter getFilter() { @@ -2034,8 +1868,6 @@ public com.google.datastore.v1.Filter getFilter() { } } /** - * - * *
      * The filter to apply.
      * 
@@ -2056,15 +1888,14 @@ public Builder setFilter(com.google.datastore.v1.Filter value) { return this; } /** - * - * *
      * The filter to apply.
      * 
* * .google.datastore.v1.Filter filter = 4; */ - public Builder setFilter(com.google.datastore.v1.Filter.Builder builderForValue) { + public Builder setFilter( + com.google.datastore.v1.Filter.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); onChanged(); @@ -2075,8 +1906,6 @@ public Builder setFilter(com.google.datastore.v1.Filter.Builder builderForValue) return this; } /** - * - * *
      * The filter to apply.
      * 
@@ -2087,7 +1916,7 @@ public Builder mergeFilter(com.google.datastore.v1.Filter value) { if (filterBuilder_ == null) { if (filter_ != null) { filter_ = - com.google.datastore.v1.Filter.newBuilder(filter_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.Filter.newBuilder(filter_).mergeFrom(value).buildPartial(); } else { filter_ = value; } @@ -2099,8 +1928,6 @@ public Builder mergeFilter(com.google.datastore.v1.Filter value) { return this; } /** - * - * *
      * The filter to apply.
      * 
@@ -2119,8 +1946,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * The filter to apply.
      * 
@@ -2128,13 +1953,11 @@ public Builder clearFilter() { * .google.datastore.v1.Filter filter = 4; */ public com.google.datastore.v1.Filter.Builder getFilterBuilder() { - + onChanged(); return getFilterFieldBuilder().getBuilder(); } /** - * - * *
      * The filter to apply.
      * 
@@ -2145,12 +1968,11 @@ public com.google.datastore.v1.FilterOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { - return filter_ == null ? com.google.datastore.v1.Filter.getDefaultInstance() : filter_; + return filter_ == null ? + com.google.datastore.v1.Filter.getDefaultInstance() : filter_; } } /** - * - * *
      * The filter to apply.
      * 
@@ -2158,41 +1980,32 @@ public com.google.datastore.v1.FilterOrBuilder getFilterOrBuilder() { * .google.datastore.v1.Filter filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Filter, - com.google.datastore.v1.Filter.Builder, - com.google.datastore.v1.FilterOrBuilder> + com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Filter, - com.google.datastore.v1.Filter.Builder, - com.google.datastore.v1.FilterOrBuilder>( - getFilter(), getParentForChildren(), isClean()); + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); filter_ = null; } return filterBuilder_; } private java.util.List order_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOrderIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { order_ = new java.util.ArrayList(order_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.PropertyOrder, - com.google.datastore.v1.PropertyOrder.Builder, - com.google.datastore.v1.PropertyOrderOrBuilder> - orderBuilder_; + com.google.datastore.v1.PropertyOrder, com.google.datastore.v1.PropertyOrder.Builder, com.google.datastore.v1.PropertyOrderOrBuilder> orderBuilder_; /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2207,8 +2020,6 @@ public java.util.List getOrderList() { } } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2223,8 +2034,6 @@ public int getOrderCount() { } } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2239,15 +2048,14 @@ public com.google.datastore.v1.PropertyOrder getOrder(int index) { } } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public Builder setOrder(int index, com.google.datastore.v1.PropertyOrder value) { + public Builder setOrder( + int index, com.google.datastore.v1.PropertyOrder value) { if (orderBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2261,8 +2069,6 @@ public Builder setOrder(int index, com.google.datastore.v1.PropertyOrder value) return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2281,8 +2087,6 @@ public Builder setOrder( return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2303,15 +2107,14 @@ public Builder addOrder(com.google.datastore.v1.PropertyOrder value) { return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public Builder addOrder(int index, com.google.datastore.v1.PropertyOrder value) { + public Builder addOrder( + int index, com.google.datastore.v1.PropertyOrder value) { if (orderBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2325,15 +2128,14 @@ public Builder addOrder(int index, com.google.datastore.v1.PropertyOrder value) return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public Builder addOrder(com.google.datastore.v1.PropertyOrder.Builder builderForValue) { + public Builder addOrder( + com.google.datastore.v1.PropertyOrder.Builder builderForValue) { if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.add(builderForValue.build()); @@ -2344,8 +2146,6 @@ public Builder addOrder(com.google.datastore.v1.PropertyOrder.Builder builderFor return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2364,8 +2164,6 @@ public Builder addOrder( return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2376,7 +2174,8 @@ public Builder addAllOrder( java.lang.Iterable values) { if (orderBuilder_ == null) { ensureOrderIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, order_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, order_); onChanged(); } else { orderBuilder_.addAllMessages(values); @@ -2384,8 +2183,6 @@ public Builder addAllOrder( return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2403,8 +2200,6 @@ public Builder clearOrder() { return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2422,44 +2217,39 @@ public Builder removeOrder(int index) { return this; } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public com.google.datastore.v1.PropertyOrder.Builder getOrderBuilder(int index) { + public com.google.datastore.v1.PropertyOrder.Builder getOrderBuilder( + int index) { return getOrderFieldBuilder().getBuilder(index); } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int index) { + public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder( + int index) { if (orderBuilder_ == null) { - return order_.get(index); - } else { + return order_.get(index); } else { return orderBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public java.util.List - getOrderOrBuilderList() { + public java.util.List + getOrderOrBuilderList() { if (orderBuilder_ != null) { return orderBuilder_.getMessageOrBuilderList(); } else { @@ -2467,8 +2257,6 @@ public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int inde } } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2476,72 +2264,60 @@ public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int inde * repeated .google.datastore.v1.PropertyOrder order = 5; */ public com.google.datastore.v1.PropertyOrder.Builder addOrderBuilder() { - return getOrderFieldBuilder() - .addBuilder(com.google.datastore.v1.PropertyOrder.getDefaultInstance()); + return getOrderFieldBuilder().addBuilder( + com.google.datastore.v1.PropertyOrder.getDefaultInstance()); } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public com.google.datastore.v1.PropertyOrder.Builder addOrderBuilder(int index) { - return getOrderFieldBuilder() - .addBuilder(index, com.google.datastore.v1.PropertyOrder.getDefaultInstance()); + public com.google.datastore.v1.PropertyOrder.Builder addOrderBuilder( + int index) { + return getOrderFieldBuilder().addBuilder( + index, com.google.datastore.v1.PropertyOrder.getDefaultInstance()); } /** - * - * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public java.util.List getOrderBuilderList() { + public java.util.List + getOrderBuilderList() { return getOrderFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.PropertyOrder, - com.google.datastore.v1.PropertyOrder.Builder, - com.google.datastore.v1.PropertyOrderOrBuilder> + com.google.datastore.v1.PropertyOrder, com.google.datastore.v1.PropertyOrder.Builder, com.google.datastore.v1.PropertyOrderOrBuilder> getOrderFieldBuilder() { if (orderBuilder_ == null) { - orderBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.PropertyOrder, - com.google.datastore.v1.PropertyOrder.Builder, - com.google.datastore.v1.PropertyOrderOrBuilder>( - order_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + orderBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.PropertyOrder, com.google.datastore.v1.PropertyOrder.Builder, com.google.datastore.v1.PropertyOrderOrBuilder>( + order_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); order_ = null; } return orderBuilder_; } private java.util.List distinctOn_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDistinctOnIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - distinctOn_ = - new java.util.ArrayList(distinctOn_); + distinctOn_ = new java.util.ArrayList(distinctOn_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.PropertyReference, - com.google.datastore.v1.PropertyReference.Builder, - com.google.datastore.v1.PropertyReferenceOrBuilder> - distinctOnBuilder_; + com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> distinctOnBuilder_; /** - * - * *
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2558,8 +2334,6 @@ public java.util.List getDistinctOnLi
       }
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2576,8 +2350,6 @@ public int getDistinctOnCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2594,8 +2366,6 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2604,7 +2374,8 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public Builder setDistinctOn(int index, com.google.datastore.v1.PropertyReference value) {
+    public Builder setDistinctOn(
+        int index, com.google.datastore.v1.PropertyReference value) {
       if (distinctOnBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2618,8 +2389,6 @@ public Builder setDistinctOn(int index, com.google.datastore.v1.PropertyReferenc
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2640,8 +2409,6 @@ public Builder setDistinctOn(
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2664,8 +2431,6 @@ public Builder addDistinctOn(com.google.datastore.v1.PropertyReference value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2674,7 +2439,8 @@ public Builder addDistinctOn(com.google.datastore.v1.PropertyReference value) {
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public Builder addDistinctOn(int index, com.google.datastore.v1.PropertyReference value) {
+    public Builder addDistinctOn(
+        int index, com.google.datastore.v1.PropertyReference value) {
       if (distinctOnBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2688,8 +2454,6 @@ public Builder addDistinctOn(int index, com.google.datastore.v1.PropertyReferenc
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2710,8 +2474,6 @@ public Builder addDistinctOn(
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2732,8 +2494,6 @@ public Builder addDistinctOn(
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2746,7 +2506,8 @@ public Builder addAllDistinctOn(
         java.lang.Iterable values) {
       if (distinctOnBuilder_ == null) {
         ensureDistinctOnIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, distinctOn_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, distinctOn_);
         onChanged();
       } else {
         distinctOnBuilder_.addAllMessages(values);
@@ -2754,8 +2515,6 @@ public Builder addAllDistinctOn(
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2775,8 +2534,6 @@ public Builder clearDistinctOn() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2796,8 +2553,6 @@ public Builder removeDistinctOn(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2806,12 +2561,11 @@ public Builder removeDistinctOn(int index) {
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public com.google.datastore.v1.PropertyReference.Builder getDistinctOnBuilder(int index) {
+    public com.google.datastore.v1.PropertyReference.Builder getDistinctOnBuilder(
+        int index) {
       return getDistinctOnFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2820,16 +2574,14 @@ public com.google.datastore.v1.PropertyReference.Builder getDistinctOnBuilder(in
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(int index) {
+    public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
+        int index) {
       if (distinctOnBuilder_ == null) {
-        return distinctOn_.get(index);
-      } else {
+        return distinctOn_.get(index);  } else {
         return distinctOnBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2838,8 +2590,8 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public java.util.List
-        getDistinctOnOrBuilderList() {
+    public java.util.List 
+         getDistinctOnOrBuilderList() {
       if (distinctOnBuilder_ != null) {
         return distinctOnBuilder_.getMessageOrBuilderList();
       } else {
@@ -2847,8 +2599,6 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2858,12 +2608,10 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
     public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder() {
-      return getDistinctOnFieldBuilder()
-          .addBuilder(com.google.datastore.v1.PropertyReference.getDefaultInstance());
+      return getDistinctOnFieldBuilder().addBuilder(
+          com.google.datastore.v1.PropertyReference.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2872,13 +2620,12 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder()
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(int index) {
-      return getDistinctOnFieldBuilder()
-          .addBuilder(index, com.google.datastore.v1.PropertyReference.getDefaultInstance());
+    public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(
+        int index) {
+      return getDistinctOnFieldBuilder().addBuilder(
+          index, com.google.datastore.v1.PropertyReference.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2887,23 +2634,20 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(in
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public java.util.List
-        getDistinctOnBuilderList() {
+    public java.util.List 
+         getDistinctOnBuilderList() {
       return getDistinctOnFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.PropertyReference,
-            com.google.datastore.v1.PropertyReference.Builder,
-            com.google.datastore.v1.PropertyReferenceOrBuilder>
+        com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> 
         getDistinctOnFieldBuilder() {
       if (distinctOnBuilder_ == null) {
-        distinctOnBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.datastore.v1.PropertyReference,
-                com.google.datastore.v1.PropertyReference.Builder,
-                com.google.datastore.v1.PropertyReferenceOrBuilder>(
-                distinctOn_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
+        distinctOnBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder>(
+                distinctOn_,
+                ((bitField0_ & 0x00000008) != 0),
+                getParentForChildren(),
+                isClean());
         distinctOn_ = null;
       }
       return distinctOnBuilder_;
@@ -2911,8 +2655,6 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(in
 
     private com.google.protobuf.ByteString startCursor_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * A starting point for the query results. Query cursors are
      * returned in query result batches and
@@ -2921,7 +2663,6 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(in
      * 
* * bytes start_cursor = 7; - * * @return The startCursor. */ @java.lang.Override @@ -2929,8 +2670,6 @@ public com.google.protobuf.ByteString getStartCursor() { return startCursor_; } /** - * - * *
      * A starting point for the query results. Query cursors are
      * returned in query result batches and
@@ -2939,22 +2678,19 @@ public com.google.protobuf.ByteString getStartCursor() {
      * 
* * bytes start_cursor = 7; - * * @param value The startCursor to set. * @return This builder for chaining. */ public Builder setStartCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + startCursor_ = value; onChanged(); return this; } /** - * - * *
      * A starting point for the query results. Query cursors are
      * returned in query result batches and
@@ -2963,11 +2699,10 @@ public Builder setStartCursor(com.google.protobuf.ByteString value) {
      * 
* * bytes start_cursor = 7; - * * @return This builder for chaining. */ public Builder clearStartCursor() { - + startCursor_ = getDefaultInstance().getStartCursor(); onChanged(); return this; @@ -2975,8 +2710,6 @@ public Builder clearStartCursor() { private com.google.protobuf.ByteString endCursor_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * An ending point for the query results. Query cursors are
      * returned in query result batches and
@@ -2985,7 +2718,6 @@ public Builder clearStartCursor() {
      * 
* * bytes end_cursor = 8; - * * @return The endCursor. */ @java.lang.Override @@ -2993,8 +2725,6 @@ public com.google.protobuf.ByteString getEndCursor() { return endCursor_; } /** - * - * *
      * An ending point for the query results. Query cursors are
      * returned in query result batches and
@@ -3003,22 +2733,19 @@ public com.google.protobuf.ByteString getEndCursor() {
      * 
* * bytes end_cursor = 8; - * * @param value The endCursor to set. * @return This builder for chaining. */ public Builder setEndCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endCursor_ = value; onChanged(); return this; } /** - * - * *
      * An ending point for the query results. Query cursors are
      * returned in query result batches and
@@ -3027,27 +2754,23 @@ public Builder setEndCursor(com.google.protobuf.ByteString value) {
      * 
* * bytes end_cursor = 8; - * * @return This builder for chaining. */ public Builder clearEndCursor() { - + endCursor_ = getDefaultInstance().getEndCursor(); onChanged(); return this; } - private int offset_; + private int offset_ ; /** - * - * *
      * The number of results to skip. Applies before limit, but after all other
      * constraints. Optional. Must be >= 0 if specified.
      * 
* * int32 offset = 10; - * * @return The offset. */ @java.lang.Override @@ -3055,38 +2778,32 @@ public int getOffset() { return offset_; } /** - * - * *
      * The number of results to skip. Applies before limit, but after all other
      * constraints. Optional. Must be >= 0 if specified.
      * 
* * int32 offset = 10; - * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { - + offset_ = value; onChanged(); return this; } /** - * - * *
      * The number of results to skip. Applies before limit, but after all other
      * constraints. Optional. Must be >= 0 if specified.
      * 
* * int32 offset = 10; - * * @return This builder for chaining. */ public Builder clearOffset() { - + offset_ = 0; onChanged(); return this; @@ -3094,13 +2811,8 @@ public Builder clearOffset() { 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_; /** - * - * *
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3109,15 +2821,12 @@ public Builder clearOffset() {
      * 
* * .google.protobuf.Int32Value limit = 12; - * * @return Whether the limit field is set. */ public boolean hasLimit() { return limitBuilder_ != null || limit_ != null; } /** - * - * *
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3126,7 +2835,6 @@ public boolean hasLimit() {
      * 
* * .google.protobuf.Int32Value limit = 12; - * * @return The limit. */ public com.google.protobuf.Int32Value getLimit() { @@ -3137,8 +2845,6 @@ public com.google.protobuf.Int32Value getLimit() { } } /** - * - * *
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3162,8 +2868,6 @@ public Builder setLimit(com.google.protobuf.Int32Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3173,7 +2877,8 @@ public Builder setLimit(com.google.protobuf.Int32Value value) {
      *
      * .google.protobuf.Int32Value limit = 12;
      */
-    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();
@@ -3184,8 +2889,6 @@ public Builder setLimit(com.google.protobuf.Int32Value.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3199,7 +2902,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;
         }
@@ -3211,8 +2914,6 @@ public Builder mergeLimit(com.google.protobuf.Int32Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3234,8 +2935,6 @@ public Builder clearLimit() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3246,13 +2945,11 @@ public Builder clearLimit() {
      * .google.protobuf.Int32Value limit = 12;
      */
     public com.google.protobuf.Int32Value.Builder getLimitBuilder() {
-
+      
       onChanged();
       return getLimitFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3266,12 +2963,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -3282,24 +2978,21 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() {
      * .google.protobuf.Int32Value limit = 12;
      */
     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);
     }
 
@@ -3309,12 +3002,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.Query)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.Query)
   private static final com.google.datastore.v1.Query DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.Query();
   }
@@ -3323,16 +3016,16 @@ public static com.google.datastore.v1.Query getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Query parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Query(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Query parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Query(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3347,4 +3040,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.Query getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
similarity index 85%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
index f06b1b616..c2a90a88c 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
-public interface QueryOrBuilder
-    extends
+public interface QueryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.Query)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The projection to return. Defaults to returning all properties.
    * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - java.util.List getProjectionList(); + java.util.List + getProjectionList(); /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -44,8 +25,6 @@ public interface QueryOrBuilder */ com.google.datastore.v1.Projection getProjection(int index); /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -54,30 +33,25 @@ public interface QueryOrBuilder */ int getProjectionCount(); /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - java.util.List + java.util.List getProjectionOrBuilderList(); /** - * - * *
    * The projection to return. Defaults to returning all properties.
    * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(int index); + com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder( + int index); /** - * - * *
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -85,10 +59,9 @@ public interface QueryOrBuilder
    *
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
-  java.util.List getKindList();
+  java.util.List 
+      getKindList();
   /**
-   *
-   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -98,8 +71,6 @@ public interface QueryOrBuilder
    */
   com.google.datastore.v1.KindExpression getKind(int index);
   /**
-   *
-   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -109,8 +80,6 @@ public interface QueryOrBuilder
    */
   int getKindCount();
   /**
-   *
-   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -118,10 +87,9 @@ public interface QueryOrBuilder
    *
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
-  java.util.List getKindOrBuilderList();
+  java.util.List 
+      getKindOrBuilderList();
   /**
-   *
-   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -129,35 +97,28 @@ public interface QueryOrBuilder
    *
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
-  com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int index);
+  com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The filter to apply.
    * 
* * .google.datastore.v1.Filter filter = 4; - * * @return Whether the filter field is set. */ boolean hasFilter(); /** - * - * *
    * The filter to apply.
    * 
* * .google.datastore.v1.Filter filter = 4; - * * @return The filter. */ com.google.datastore.v1.Filter getFilter(); /** - * - * *
    * The filter to apply.
    * 
@@ -167,18 +128,15 @@ public interface QueryOrBuilder com.google.datastore.v1.FilterOrBuilder getFilterOrBuilder(); /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - java.util.List getOrderList(); + java.util.List + getOrderList(); /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -187,8 +145,6 @@ public interface QueryOrBuilder */ com.google.datastore.v1.PropertyOrder getOrder(int index); /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -197,29 +153,25 @@ public interface QueryOrBuilder */ int getOrderCount(); /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - java.util.List getOrderOrBuilderList(); + java.util.List + getOrderOrBuilderList(); /** - * - * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int index); + com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder( + int index); /** - * - * *
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -228,10 +180,9 @@ public interface QueryOrBuilder
    *
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
-  java.util.List getDistinctOnList();
+  java.util.List 
+      getDistinctOnList();
   /**
-   *
-   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -242,8 +193,6 @@ public interface QueryOrBuilder
    */
   com.google.datastore.v1.PropertyReference getDistinctOn(int index);
   /**
-   *
-   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -254,8 +203,6 @@ public interface QueryOrBuilder
    */
   int getDistinctOnCount();
   /**
-   *
-   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -264,11 +211,9 @@ public interface QueryOrBuilder
    *
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
-  java.util.List
+  java.util.List 
       getDistinctOnOrBuilderList();
   /**
-   *
-   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -277,11 +222,10 @@ public interface QueryOrBuilder
    *
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
-  com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(int index);
+  com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A starting point for the query results. Query cursors are
    * returned in query result batches and
@@ -290,14 +234,11 @@ public interface QueryOrBuilder
    * 
* * bytes start_cursor = 7; - * * @return The startCursor. */ com.google.protobuf.ByteString getStartCursor(); /** - * - * *
    * An ending point for the query results. Query cursors are
    * returned in query result batches and
@@ -306,28 +247,22 @@ public interface QueryOrBuilder
    * 
* * bytes end_cursor = 8; - * * @return The endCursor. */ com.google.protobuf.ByteString getEndCursor(); /** - * - * *
    * The number of results to skip. Applies before limit, but after all other
    * constraints. Optional. Must be >= 0 if specified.
    * 
* * int32 offset = 10; - * * @return The offset. */ int getOffset(); /** - * - * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -336,13 +271,10 @@ public interface QueryOrBuilder
    * 
* * .google.protobuf.Int32Value limit = 12; - * * @return Whether the limit field is set. */ boolean hasLimit(); /** - * - * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -351,13 +283,10 @@ public interface QueryOrBuilder
    * 
* * .google.protobuf.Int32Value limit = 12; - * * @return The limit. */ com.google.protobuf.Int32Value getLimit(); /** - * - * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java
new file mode 100644
index 000000000..157c5f714
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java
@@ -0,0 +1,257 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/v1/query.proto
+
+package com.google.datastore.v1;
+
+public final class QueryProto {
+  private QueryProto() {}
+  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_datastore_v1_EntityResult_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_EntityResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Query_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Query_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_KindExpression_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_KindExpression_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_PropertyReference_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Projection_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Projection_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_PropertyOrder_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_Filter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_CompositeFilter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_PropertyFilter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_GqlQuery_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_GqlQueryParameter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_datastore_v1_QueryResultBatch_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n\037google/datastore/v1/query.proto\022\023googl" +
+      "e.datastore.v1\032 google/datastore/v1/enti" +
+      "ty.proto\032\037google/protobuf/timestamp.prot" +
+      "o\032\036google/protobuf/wrappers.proto\"\340\001\n\014En" +
+      "tityResult\022+\n\006entity\030\001 \001(\0132\033.google.data" +
+      "store.v1.Entity\022\017\n\007version\030\004 \001(\003\022/\n\013upda" +
+      "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" +
+      "p\022\016\n\006cursor\030\003 \001(\014\"Q\n\nResultType\022\033\n\027RESUL" +
+      "T_TYPE_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022\016\n\nPROJEC" +
+      "TION\020\002\022\014\n\010KEY_ONLY\020\003\"\362\002\n\005Query\0223\n\nprojec" +
+      "tion\030\002 \003(\0132\037.google.datastore.v1.Project" +
+      "ion\0221\n\004kind\030\003 \003(\0132#.google.datastore.v1." +
+      "KindExpression\022+\n\006filter\030\004 \001(\0132\033.google." +
+      "datastore.v1.Filter\0221\n\005order\030\005 \003(\0132\".goo" +
+      "gle.datastore.v1.PropertyOrder\022;\n\013distin" +
+      "ct_on\030\006 \003(\0132&.google.datastore.v1.Proper" +
+      "tyReference\022\024\n\014start_cursor\030\007 \001(\014\022\022\n\nend" +
+      "_cursor\030\010 \001(\014\022\016\n\006offset\030\n \001(\005\022*\n\005limit\030\014" +
+      " \001(\0132\033.google.protobuf.Int32Value\"\036\n\016Kin" +
+      "dExpression\022\014\n\004name\030\001 \001(\t\"!\n\021PropertyRef" +
+      "erence\022\014\n\004name\030\002 \001(\t\"F\n\nProjection\0228\n\010pr" +
+      "operty\030\001 \001(\0132&.google.datastore.v1.Prope" +
+      "rtyReference\"\321\001\n\rPropertyOrder\0228\n\010proper" +
+      "ty\030\001 \001(\0132&.google.datastore.v1.PropertyR" +
+      "eference\022?\n\tdirection\030\002 \001(\0162,.google.dat" +
+      "astore.v1.PropertyOrder.Direction\"E\n\tDir" +
+      "ection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\r\n\tASC" +
+      "ENDING\020\001\022\016\n\nDESCENDING\020\002\"\231\001\n\006Filter\022@\n\020c" +
+      "omposite_filter\030\001 \001(\0132$.google.datastore" +
+      ".v1.CompositeFilterH\000\022>\n\017property_filter" +
+      "\030\002 \001(\0132#.google.datastore.v1.PropertyFil" +
+      "terH\000B\r\n\013filter_type\"\251\001\n\017CompositeFilter" +
+      "\0229\n\002op\030\001 \001(\0162-.google.datastore.v1.Compo" +
+      "siteFilter.Operator\022,\n\007filters\030\002 \003(\0132\033.g" +
+      "oogle.datastore.v1.Filter\"-\n\010Operator\022\030\n" +
+      "\024OPERATOR_UNSPECIFIED\020\000\022\007\n\003AND\020\001\"\352\002\n\016Pro" +
+      "pertyFilter\0228\n\010property\030\001 \001(\0132&.google.d" +
+      "atastore.v1.PropertyReference\0228\n\002op\030\002 \001(" +
+      "\0162,.google.datastore.v1.PropertyFilter.O" +
+      "perator\022)\n\005value\030\003 \001(\0132\032.google.datastor" +
+      "e.v1.Value\"\270\001\n\010Operator\022\030\n\024OPERATOR_UNSP" +
+      "ECIFIED\020\000\022\r\n\tLESS_THAN\020\001\022\026\n\022LESS_THAN_OR" +
+      "_EQUAL\020\002\022\020\n\014GREATER_THAN\020\003\022\031\n\025GREATER_TH" +
+      "AN_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\006\n\002IN\020\006\022\r\n\tNOT_" +
+      "EQUAL\020\t\022\020\n\014HAS_ANCESTOR\020\013\022\n\n\006NOT_IN\020\r\"\245\002" +
+      "\n\010GqlQuery\022\024\n\014query_string\030\001 \001(\t\022\026\n\016allo" +
+      "w_literals\030\002 \001(\010\022H\n\016named_bindings\030\005 \003(\013" +
+      "20.google.datastore.v1.GqlQuery.NamedBin" +
+      "dingsEntry\022C\n\023positional_bindings\030\004 \003(\0132" +
+      "&.google.datastore.v1.GqlQueryParameter\032" +
+      "\\\n\022NamedBindingsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005va" +
+      "lue\030\002 \001(\0132&.google.datastore.v1.GqlQuery" +
+      "Parameter:\0028\001\"d\n\021GqlQueryParameter\022+\n\005va" +
+      "lue\030\002 \001(\0132\032.google.datastore.v1.ValueH\000\022" +
+      "\020\n\006cursor\030\003 \001(\014H\000B\020\n\016parameter_type\"\215\004\n\020" +
+      "QueryResultBatch\022\027\n\017skipped_results\030\006 \001(" +
+      "\005\022\026\n\016skipped_cursor\030\003 \001(\014\022H\n\022entity_resu" +
+      "lt_type\030\001 \001(\0162,.google.datastore.v1.Enti" +
+      "tyResult.ResultType\0229\n\016entity_results\030\002 " +
+      "\003(\0132!.google.datastore.v1.EntityResult\022\022" +
+      "\n\nend_cursor\030\004 \001(\014\022K\n\014more_results\030\005 \001(\016" +
+      "25.google.datastore.v1.QueryResultBatch." +
+      "MoreResultsType\022\030\n\020snapshot_version\030\007 \001(" +
+      "\003\022-\n\tread_time\030\010 \001(\0132\032.google.protobuf.T" +
+      "imestamp\"\230\001\n\017MoreResultsType\022!\n\035MORE_RES" +
+      "ULTS_TYPE_UNSPECIFIED\020\000\022\020\n\014NOT_FINISHED\020" +
+      "\001\022\034\n\030MORE_RESULTS_AFTER_LIMIT\020\002\022\035\n\031MORE_" +
+      "RESULTS_AFTER_CURSOR\020\004\022\023\n\017NO_MORE_RESULT" +
+      "S\020\003B\274\001\n\027com.google.datastore.v1B\nQueryPr" +
+      "otoP\001Z
  * A batch of results produced by a query.
  * 
* * Protobuf type {@code google.datastore.v1.QueryResultBatch} */ -public final class QueryResultBatch extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryResultBatch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.QueryResultBatch) QueryResultBatchOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryResultBatch.newBuilder() to construct. private QueryResultBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryResultBatch() { skippedCursor_ = com.google.protobuf.ByteString.EMPTY; entityResultType_ = 0; @@ -47,15 +29,16 @@ private QueryResultBatch() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryResultBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private QueryResultBatch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,73 +58,67 @@ private QueryResultBatch( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - entityResultType_ = rawValue; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entityResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entityResults_.add( - input.readMessage( - com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); - break; - } - case 26: - { - skippedCursor_ = input.readBytes(); - break; - } - case 34: - { - endCursor_ = input.readBytes(); - break; + entityResultType_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entityResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 40: - { - int rawValue = input.readEnum(); + entityResults_.add( + input.readMessage(com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); + break; + } + case 26: { - moreResults_ = rawValue; - break; - } - case 48: - { - skippedResults_ = input.readInt32(); - break; - } - case 56: - { - snapshotVersion_ = input.readInt64(); - break; + skippedCursor_ = input.readBytes(); + break; + } + case 34: { + + endCursor_ = input.readBytes(); + break; + } + case 40: { + int rawValue = input.readEnum(); + + moreResults_ = rawValue; + break; + } + case 48: { + + skippedResults_ = input.readInt32(); + break; + } + case 56: { + + snapshotVersion_ = input.readInt64(); + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -149,7 +126,8 @@ private QueryResultBatch( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entityResults_ = java.util.Collections.unmodifiableList(entityResults_); @@ -158,35 +136,29 @@ private QueryResultBatch( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_QueryResultBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.QueryResultBatch.class, - com.google.datastore.v1.QueryResultBatch.Builder.class); + com.google.datastore.v1.QueryResultBatch.class, com.google.datastore.v1.QueryResultBatch.Builder.class); } /** - * - * *
    * The possible values for the `more_results` field.
    * 
* * Protobuf enum {@code google.datastore.v1.QueryResultBatch.MoreResultsType} */ - public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { + public enum MoreResultsType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified. This value is never used.
      * 
@@ -195,8 +167,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { */ MORE_RESULTS_TYPE_UNSPECIFIED(0), /** - * - * *
      * There may be additional batches to fetch from this query.
      * 
@@ -205,8 +175,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { */ NOT_FINISHED(1), /** - * - * *
      * The query is finished, but there may be more results after the limit.
      * 
@@ -215,8 +183,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { */ MORE_RESULTS_AFTER_LIMIT(2), /** - * - * *
      * The query is finished, but there may be more results after the end
      * cursor.
@@ -226,8 +192,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum {
      */
     MORE_RESULTS_AFTER_CURSOR(4),
     /**
-     *
-     *
      * 
      * The query is finished, and there are no more results.
      * 
@@ -239,8 +203,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified. This value is never used.
      * 
@@ -249,8 +211,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MORE_RESULTS_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * There may be additional batches to fetch from this query.
      * 
@@ -259,8 +219,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_FINISHED_VALUE = 1; /** - * - * *
      * The query is finished, but there may be more results after the limit.
      * 
@@ -269,8 +227,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MORE_RESULTS_AFTER_LIMIT_VALUE = 2; /** - * - * *
      * The query is finished, but there may be more results after the end
      * cursor.
@@ -280,8 +236,6 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MORE_RESULTS_AFTER_CURSOR_VALUE = 4;
     /**
-     *
-     *
      * 
      * The query is finished, and there are no more results.
      * 
@@ -290,6 +244,7 @@ public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_MORE_RESULTS_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -314,46 +269,41 @@ public static MoreResultsType valueOf(int value) { */ public static MoreResultsType forNumber(int value) { switch (value) { - case 0: - return MORE_RESULTS_TYPE_UNSPECIFIED; - case 1: - return NOT_FINISHED; - case 2: - return MORE_RESULTS_AFTER_LIMIT; - case 4: - return MORE_RESULTS_AFTER_CURSOR; - case 3: - return NO_MORE_RESULTS; - default: - return null; + case 0: return MORE_RESULTS_TYPE_UNSPECIFIED; + case 1: return NOT_FINISHED; + case 2: return MORE_RESULTS_AFTER_LIMIT; + case 4: return MORE_RESULTS_AFTER_CURSOR; + case 3: return NO_MORE_RESULTS; + 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< + MoreResultsType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MoreResultsType findValueByNumber(int number) { + return MoreResultsType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MoreResultsType findValueByNumber(int number) { - return MoreResultsType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.v1.QueryResultBatch.getDescriptor().getEnumTypes().get(0); } @@ -362,7 +312,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MoreResultsType 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; @@ -382,14 +333,11 @@ private MoreResultsType(int value) { public static final int SKIPPED_RESULTS_FIELD_NUMBER = 6; private int skippedResults_; /** - * - * *
    * The number of results skipped, typically because of an offset.
    * 
* * int32 skipped_results = 6; - * * @return The skippedResults. */ @java.lang.Override @@ -400,15 +348,12 @@ public int getSkippedResults() { public static final int SKIPPED_CURSOR_FIELD_NUMBER = 3; private com.google.protobuf.ByteString skippedCursor_; /** - * - * *
    * A cursor that points to the position after the last skipped result.
    * Will be set when `skipped_results` != 0.
    * 
* * bytes skipped_cursor = 3; - * * @return The skippedCursor. */ @java.lang.Override @@ -419,44 +364,33 @@ public com.google.protobuf.ByteString getSkippedCursor() { public static final int ENTITY_RESULT_TYPE_FIELD_NUMBER = 1; private int entityResultType_; /** - * - * *
    * The result type for every entity in `entity_results`.
    * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @return The enum numeric value on the wire for entityResultType. */ - @java.lang.Override - public int getEntityResultTypeValue() { + @java.lang.Override public int getEntityResultTypeValue() { return entityResultType_; } /** - * - * *
    * The result type for every entity in `entity_results`.
    * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @return The entityResultType. */ - @java.lang.Override - public com.google.datastore.v1.EntityResult.ResultType getEntityResultType() { + @java.lang.Override public com.google.datastore.v1.EntityResult.ResultType getEntityResultType() { @SuppressWarnings("deprecation") - com.google.datastore.v1.EntityResult.ResultType result = - com.google.datastore.v1.EntityResult.ResultType.valueOf(entityResultType_); + com.google.datastore.v1.EntityResult.ResultType result = com.google.datastore.v1.EntityResult.ResultType.valueOf(entityResultType_); return result == null ? com.google.datastore.v1.EntityResult.ResultType.UNRECOGNIZED : result; } public static final int ENTITY_RESULTS_FIELD_NUMBER = 2; private java.util.List entityResults_; /** - * - * *
    * The results for this batch.
    * 
@@ -468,8 +402,6 @@ public java.util.List getEntityResultsList return entityResults_; } /** - * - * *
    * The results for this batch.
    * 
@@ -477,13 +409,11 @@ public java.util.List getEntityResultsList * repeated .google.datastore.v1.EntityResult entity_results = 2; */ @java.lang.Override - public java.util.List + public java.util.List getEntityResultsOrBuilderList() { return entityResults_; } /** - * - * *
    * The results for this batch.
    * 
@@ -495,8 +425,6 @@ public int getEntityResultsCount() { return entityResults_.size(); } /** - * - * *
    * The results for this batch.
    * 
@@ -508,8 +436,6 @@ public com.google.datastore.v1.EntityResult getEntityResults(int index) { return entityResults_.get(index); } /** - * - * *
    * The results for this batch.
    * 
@@ -517,21 +443,19 @@ public com.google.datastore.v1.EntityResult getEntityResults(int index) { * repeated .google.datastore.v1.EntityResult entity_results = 2; */ @java.lang.Override - public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(int index) { + public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder( + int index) { return entityResults_.get(index); } public static final int END_CURSOR_FIELD_NUMBER = 4; private com.google.protobuf.ByteString endCursor_; /** - * - * *
    * A cursor that points to the position after the last result in the batch.
    * 
* * bytes end_cursor = 4; - * * @return The endCursor. */ @java.lang.Override @@ -542,46 +466,33 @@ public com.google.protobuf.ByteString getEndCursor() { public static final int MORE_RESULTS_FIELD_NUMBER = 5; private int moreResults_; /** - * - * *
    * The state of the query after the current batch.
    * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @return The enum numeric value on the wire for moreResults. */ - @java.lang.Override - public int getMoreResultsValue() { + @java.lang.Override public int getMoreResultsValue() { return moreResults_; } /** - * - * *
    * The state of the query after the current batch.
    * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @return The moreResults. */ - @java.lang.Override - public com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults() { + @java.lang.Override public com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults() { @SuppressWarnings("deprecation") - com.google.datastore.v1.QueryResultBatch.MoreResultsType result = - com.google.datastore.v1.QueryResultBatch.MoreResultsType.valueOf(moreResults_); - return result == null - ? com.google.datastore.v1.QueryResultBatch.MoreResultsType.UNRECOGNIZED - : result; + com.google.datastore.v1.QueryResultBatch.MoreResultsType result = com.google.datastore.v1.QueryResultBatch.MoreResultsType.valueOf(moreResults_); + return result == null ? com.google.datastore.v1.QueryResultBatch.MoreResultsType.UNRECOGNIZED : result; } public static final int SNAPSHOT_VERSION_FIELD_NUMBER = 7; private long snapshotVersion_; /** - * - * *
    * The version number of the snapshot this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -594,7 +505,6 @@ public com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults()
    * 
* * int64 snapshot_version = 7; - * * @return The snapshotVersion. */ @java.lang.Override @@ -605,8 +515,6 @@ public long getSnapshotVersion() { public static final int READ_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -620,7 +528,6 @@ public long getSnapshotVersion() {
    * 
* * .google.protobuf.Timestamp read_time = 8; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -628,8 +535,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -643,7 +548,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 8; - * * @return The readTime. */ @java.lang.Override @@ -651,8 +555,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -673,7 +575,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -685,9 +586,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (entityResultType_
-        != com.google.datastore.v1.EntityResult.ResultType.RESULT_TYPE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (entityResultType_ != com.google.datastore.v1.EntityResult.ResultType.RESULT_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, entityResultType_);
     }
     for (int i = 0; i < entityResults_.size(); i++) {
@@ -699,9 +600,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!endCursor_.isEmpty()) {
       output.writeBytes(4, endCursor_);
     }
-    if (moreResults_
-        != com.google.datastore.v1.QueryResultBatch.MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED
-            .getNumber()) {
+    if (moreResults_ != com.google.datastore.v1.QueryResultBatch.MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(5, moreResults_);
     }
     if (skippedResults_ != 0) {
@@ -722,32 +621,37 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (entityResultType_
-        != com.google.datastore.v1.EntityResult.ResultType.RESULT_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, entityResultType_);
+    if (entityResultType_ != com.google.datastore.v1.EntityResult.ResultType.RESULT_TYPE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, entityResultType_);
     }
     for (int i = 0; i < entityResults_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, entityResults_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, entityResults_.get(i));
     }
     if (!skippedCursor_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, skippedCursor_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(3, skippedCursor_);
     }
     if (!endCursor_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, endCursor_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(4, endCursor_);
     }
-    if (moreResults_
-        != com.google.datastore.v1.QueryResultBatch.MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, moreResults_);
+    if (moreResults_ != com.google.datastore.v1.QueryResultBatch.MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(5, moreResults_);
     }
     if (skippedResults_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skippedResults_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(6, skippedResults_);
     }
     if (snapshotVersion_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, snapshotVersion_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, snapshotVersion_);
     }
     if (readTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getReadTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -757,23 +661,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.QueryResultBatch)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.QueryResultBatch other = (com.google.datastore.v1.QueryResultBatch) obj;
 
-    if (getSkippedResults() != other.getSkippedResults()) return false;
-    if (!getSkippedCursor().equals(other.getSkippedCursor())) return false;
+    if (getSkippedResults()
+        != other.getSkippedResults()) return false;
+    if (!getSkippedCursor()
+        .equals(other.getSkippedCursor())) return false;
     if (entityResultType_ != other.entityResultType_) return false;
-    if (!getEntityResultsList().equals(other.getEntityResultsList())) return false;
-    if (!getEndCursor().equals(other.getEndCursor())) return false;
+    if (!getEntityResultsList()
+        .equals(other.getEntityResultsList())) return false;
+    if (!getEndCursor()
+        .equals(other.getEndCursor())) return false;
     if (moreResults_ != other.moreResults_) return false;
-    if (getSnapshotVersion() != other.getSnapshotVersion()) return false;
+    if (getSnapshotVersion()
+        != other.getSnapshotVersion()) return false;
     if (hasReadTime() != other.hasReadTime()) return false;
     if (hasReadTime()) {
-      if (!getReadTime().equals(other.getReadTime())) return false;
+      if (!getReadTime()
+          .equals(other.getReadTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -801,7 +711,8 @@ public int hashCode() {
     hash = (37 * hash) + MORE_RESULTS_FIELD_NUMBER;
     hash = (53 * hash) + moreResults_;
     hash = (37 * hash) + SNAPSHOT_VERSION_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSnapshotVersion());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getSnapshotVersion());
     if (hasReadTime()) {
       hash = (37 * hash) + READ_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getReadTime().hashCode();
@@ -811,127 +722,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.QueryResultBatch parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.QueryResultBatch parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.QueryResultBatch parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.datastore.v1.QueryResultBatch parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.QueryResultBatch prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A batch of results produced by a query.
    * 
* * Protobuf type {@code google.datastore.v1.QueryResultBatch} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.QueryResultBatch) com.google.datastore.v1.QueryResultBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_QueryResultBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.QueryResultBatch.class, - com.google.datastore.v1.QueryResultBatch.Builder.class); + com.google.datastore.v1.QueryResultBatch.class, com.google.datastore.v1.QueryResultBatch.Builder.class); } // Construct using com.google.datastore.v1.QueryResultBatch.newBuilder() @@ -939,17 +841,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntityResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -981,9 +883,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.QueryProto - .internal_static_google_datastore_v1_QueryResultBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_descriptor; } @java.lang.Override @@ -1002,8 +904,7 @@ public com.google.datastore.v1.QueryResultBatch build() { @java.lang.Override public com.google.datastore.v1.QueryResultBatch buildPartial() { - com.google.datastore.v1.QueryResultBatch result = - new com.google.datastore.v1.QueryResultBatch(this); + com.google.datastore.v1.QueryResultBatch result = new com.google.datastore.v1.QueryResultBatch(this); int from_bitField0_ = bitField0_; result.skippedResults_ = skippedResults_; result.skippedCursor_ = skippedCursor_; @@ -1033,39 +934,38 @@ public com.google.datastore.v1.QueryResultBatch 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.datastore.v1.QueryResultBatch) { - return mergeFrom((com.google.datastore.v1.QueryResultBatch) other); + return mergeFrom((com.google.datastore.v1.QueryResultBatch)other); } else { super.mergeFrom(other); return this; @@ -1101,10 +1001,9 @@ public Builder mergeFrom(com.google.datastore.v1.QueryResultBatch other) { entityResultsBuilder_ = null; entityResults_ = other.entityResults_; bitField0_ = (bitField0_ & ~0x00000001); - entityResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntityResultsFieldBuilder() - : null; + entityResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntityResultsFieldBuilder() : null; } else { entityResultsBuilder_.addAllMessages(other.entityResults_); } @@ -1150,19 +1049,15 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private int skippedResults_; + private int skippedResults_ ; /** - * - * *
      * The number of results skipped, typically because of an offset.
      * 
* * int32 skipped_results = 6; - * * @return The skippedResults. */ @java.lang.Override @@ -1170,36 +1065,30 @@ public int getSkippedResults() { return skippedResults_; } /** - * - * *
      * The number of results skipped, typically because of an offset.
      * 
* * int32 skipped_results = 6; - * * @param value The skippedResults to set. * @return This builder for chaining. */ public Builder setSkippedResults(int value) { - + skippedResults_ = value; onChanged(); return this; } /** - * - * *
      * The number of results skipped, typically because of an offset.
      * 
* * int32 skipped_results = 6; - * * @return This builder for chaining. */ public Builder clearSkippedResults() { - + skippedResults_ = 0; onChanged(); return this; @@ -1207,15 +1096,12 @@ public Builder clearSkippedResults() { private com.google.protobuf.ByteString skippedCursor_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * A cursor that points to the position after the last skipped result.
      * Will be set when `skipped_results` != 0.
      * 
* * bytes skipped_cursor = 3; - * * @return The skippedCursor. */ @java.lang.Override @@ -1223,41 +1109,35 @@ public com.google.protobuf.ByteString getSkippedCursor() { return skippedCursor_; } /** - * - * *
      * A cursor that points to the position after the last skipped result.
      * Will be set when `skipped_results` != 0.
      * 
* * bytes skipped_cursor = 3; - * * @param value The skippedCursor to set. * @return This builder for chaining. */ public Builder setSkippedCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + skippedCursor_ = value; onChanged(); return this; } /** - * - * *
      * A cursor that points to the position after the last skipped result.
      * Will be set when `skipped_results` != 0.
      * 
* * bytes skipped_cursor = 3; - * * @return This builder for chaining. */ public Builder clearSkippedCursor() { - + skippedCursor_ = getDefaultInstance().getSkippedCursor(); onChanged(); return this; @@ -1265,65 +1145,51 @@ public Builder clearSkippedCursor() { private int entityResultType_ = 0; /** - * - * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @return The enum numeric value on the wire for entityResultType. */ - @java.lang.Override - public int getEntityResultTypeValue() { + @java.lang.Override public int getEntityResultTypeValue() { return entityResultType_; } /** - * - * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @param value The enum numeric value on the wire for entityResultType to set. * @return This builder for chaining. */ public Builder setEntityResultTypeValue(int value) { - + entityResultType_ = value; onChanged(); return this; } /** - * - * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @return The entityResultType. */ @java.lang.Override public com.google.datastore.v1.EntityResult.ResultType getEntityResultType() { @SuppressWarnings("deprecation") - com.google.datastore.v1.EntityResult.ResultType result = - com.google.datastore.v1.EntityResult.ResultType.valueOf(entityResultType_); + com.google.datastore.v1.EntityResult.ResultType result = com.google.datastore.v1.EntityResult.ResultType.valueOf(entityResultType_); return result == null ? com.google.datastore.v1.EntityResult.ResultType.UNRECOGNIZED : result; } /** - * - * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @param value The entityResultType to set. * @return This builder for chaining. */ @@ -1331,49 +1197,39 @@ public Builder setEntityResultType(com.google.datastore.v1.EntityResult.ResultTy if (value == null) { throw new NullPointerException(); } - + entityResultType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @return This builder for chaining. */ public Builder clearEntityResultType() { - + entityResultType_ = 0; onChanged(); return this; } private java.util.List entityResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntityResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entityResults_ = - new java.util.ArrayList(entityResults_); + entityResults_ = new java.util.ArrayList(entityResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.EntityResult, - com.google.datastore.v1.EntityResult.Builder, - com.google.datastore.v1.EntityResultOrBuilder> - entityResultsBuilder_; + com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> entityResultsBuilder_; /** - * - * *
      * The results for this batch.
      * 
@@ -1388,8 +1244,6 @@ public java.util.List getEntityResultsList } } /** - * - * *
      * The results for this batch.
      * 
@@ -1404,8 +1258,6 @@ public int getEntityResultsCount() { } } /** - * - * *
      * The results for this batch.
      * 
@@ -1420,15 +1272,14 @@ public com.google.datastore.v1.EntityResult getEntityResults(int index) { } } /** - * - * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public Builder setEntityResults(int index, com.google.datastore.v1.EntityResult value) { + public Builder setEntityResults( + int index, com.google.datastore.v1.EntityResult value) { if (entityResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1442,8 +1293,6 @@ public Builder setEntityResults(int index, com.google.datastore.v1.EntityResult return this; } /** - * - * *
      * The results for this batch.
      * 
@@ -1462,8 +1311,6 @@ public Builder setEntityResults( return this; } /** - * - * *
      * The results for this batch.
      * 
@@ -1484,15 +1331,14 @@ public Builder addEntityResults(com.google.datastore.v1.EntityResult value) { return this; } /** - * - * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public Builder addEntityResults(int index, com.google.datastore.v1.EntityResult value) { + public Builder addEntityResults( + int index, com.google.datastore.v1.EntityResult value) { if (entityResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1506,15 +1352,14 @@ public Builder addEntityResults(int index, com.google.datastore.v1.EntityResult return this; } /** - * - * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public Builder addEntityResults(com.google.datastore.v1.EntityResult.Builder builderForValue) { + public Builder addEntityResults( + com.google.datastore.v1.EntityResult.Builder builderForValue) { if (entityResultsBuilder_ == null) { ensureEntityResultsIsMutable(); entityResults_.add(builderForValue.build()); @@ -1525,8 +1370,6 @@ public Builder addEntityResults(com.google.datastore.v1.EntityResult.Builder bui return this; } /** - * - * *
      * The results for this batch.
      * 
@@ -1545,8 +1388,6 @@ public Builder addEntityResults( return this; } /** - * - * *
      * The results for this batch.
      * 
@@ -1557,7 +1398,8 @@ public Builder addAllEntityResults( java.lang.Iterable values) { if (entityResultsBuilder_ == null) { ensureEntityResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityResults_); onChanged(); } else { entityResultsBuilder_.addAllMessages(values); @@ -1565,8 +1407,6 @@ public Builder addAllEntityResults( return this; } /** - * - * *
      * The results for this batch.
      * 
@@ -1584,8 +1424,6 @@ public Builder clearEntityResults() { return this; } /** - * - * *
      * The results for this batch.
      * 
@@ -1603,44 +1441,39 @@ public Builder removeEntityResults(int index) { return this; } /** - * - * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public com.google.datastore.v1.EntityResult.Builder getEntityResultsBuilder(int index) { + public com.google.datastore.v1.EntityResult.Builder getEntityResultsBuilder( + int index) { return getEntityResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(int index) { + public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder( + int index) { if (entityResultsBuilder_ == null) { - return entityResults_.get(index); - } else { + return entityResults_.get(index); } else { return entityResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public java.util.List - getEntityResultsOrBuilderList() { + public java.util.List + getEntityResultsOrBuilderList() { if (entityResultsBuilder_ != null) { return entityResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1648,8 +1481,6 @@ public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(i } } /** - * - * *
      * The results for this batch.
      * 
@@ -1657,47 +1488,38 @@ public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(i * repeated .google.datastore.v1.EntityResult entity_results = 2; */ public com.google.datastore.v1.EntityResult.Builder addEntityResultsBuilder() { - return getEntityResultsFieldBuilder() - .addBuilder(com.google.datastore.v1.EntityResult.getDefaultInstance()); + return getEntityResultsFieldBuilder().addBuilder( + com.google.datastore.v1.EntityResult.getDefaultInstance()); } /** - * - * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public com.google.datastore.v1.EntityResult.Builder addEntityResultsBuilder(int index) { - return getEntityResultsFieldBuilder() - .addBuilder(index, com.google.datastore.v1.EntityResult.getDefaultInstance()); + public com.google.datastore.v1.EntityResult.Builder addEntityResultsBuilder( + int index) { + return getEntityResultsFieldBuilder().addBuilder( + index, com.google.datastore.v1.EntityResult.getDefaultInstance()); } /** - * - * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public java.util.List - getEntityResultsBuilderList() { + public java.util.List + getEntityResultsBuilderList() { return getEntityResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.EntityResult, - com.google.datastore.v1.EntityResult.Builder, - com.google.datastore.v1.EntityResultOrBuilder> + com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> getEntityResultsFieldBuilder() { if (entityResultsBuilder_ == null) { - entityResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.EntityResult, - com.google.datastore.v1.EntityResult.Builder, - com.google.datastore.v1.EntityResultOrBuilder>( + entityResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder>( entityResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1709,14 +1531,11 @@ public com.google.datastore.v1.EntityResult.Builder addEntityResultsBuilder(int private com.google.protobuf.ByteString endCursor_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * A cursor that points to the position after the last result in the batch.
      * 
* * bytes end_cursor = 4; - * * @return The endCursor. */ @java.lang.Override @@ -1724,39 +1543,33 @@ public com.google.protobuf.ByteString getEndCursor() { return endCursor_; } /** - * - * *
      * A cursor that points to the position after the last result in the batch.
      * 
* * bytes end_cursor = 4; - * * @param value The endCursor to set. * @return This builder for chaining. */ public Builder setEndCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endCursor_ = value; onChanged(); return this; } /** - * - * *
      * A cursor that points to the position after the last result in the batch.
      * 
* * bytes end_cursor = 4; - * * @return This builder for chaining. */ public Builder clearEndCursor() { - + endCursor_ = getDefaultInstance().getEndCursor(); onChanged(); return this; @@ -1764,67 +1577,51 @@ public Builder clearEndCursor() { private int moreResults_ = 0; /** - * - * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @return The enum numeric value on the wire for moreResults. */ - @java.lang.Override - public int getMoreResultsValue() { + @java.lang.Override public int getMoreResultsValue() { return moreResults_; } /** - * - * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @param value The enum numeric value on the wire for moreResults to set. * @return This builder for chaining. */ public Builder setMoreResultsValue(int value) { - + moreResults_ = value; onChanged(); return this; } /** - * - * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @return The moreResults. */ @java.lang.Override public com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults() { @SuppressWarnings("deprecation") - com.google.datastore.v1.QueryResultBatch.MoreResultsType result = - com.google.datastore.v1.QueryResultBatch.MoreResultsType.valueOf(moreResults_); - return result == null - ? com.google.datastore.v1.QueryResultBatch.MoreResultsType.UNRECOGNIZED - : result; + com.google.datastore.v1.QueryResultBatch.MoreResultsType result = com.google.datastore.v1.QueryResultBatch.MoreResultsType.valueOf(moreResults_); + return result == null ? com.google.datastore.v1.QueryResultBatch.MoreResultsType.UNRECOGNIZED : result; } /** - * - * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @param value The moreResults to set. * @return This builder for chaining. */ @@ -1832,33 +1629,28 @@ public Builder setMoreResults(com.google.datastore.v1.QueryResultBatch.MoreResul if (value == null) { throw new NullPointerException(); } - + moreResults_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @return This builder for chaining. */ public Builder clearMoreResults() { - + moreResults_ = 0; onChanged(); return this; } - private long snapshotVersion_; + private long snapshotVersion_ ; /** - * - * *
      * The version number of the snapshot this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1871,7 +1663,6 @@ public Builder clearMoreResults() {
      * 
* * int64 snapshot_version = 7; - * * @return The snapshotVersion. */ @java.lang.Override @@ -1879,8 +1670,6 @@ public long getSnapshotVersion() { return snapshotVersion_; } /** - * - * *
      * The version number of the snapshot this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1893,19 +1682,16 @@ public long getSnapshotVersion() {
      * 
* * int64 snapshot_version = 7; - * * @param value The snapshotVersion to set. * @return This builder for chaining. */ public Builder setSnapshotVersion(long value) { - + snapshotVersion_ = value; onChanged(); return this; } /** - * - * *
      * The version number of the snapshot this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1918,11 +1704,10 @@ public Builder setSnapshotVersion(long value) {
      * 
* * int64 snapshot_version = 7; - * * @return This builder for chaining. */ public Builder clearSnapshotVersion() { - + snapshotVersion_ = 0L; onChanged(); return this; @@ -1930,13 +1715,8 @@ public Builder clearSnapshotVersion() { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1950,15 +1730,12 @@ public Builder clearSnapshotVersion() {
      * 
* * .google.protobuf.Timestamp read_time = 8; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1972,7 +1749,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 8; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1983,8 +1759,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -2013,8 +1787,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -2029,7 +1801,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 8;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -2040,8 +1813,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -2060,7 +1831,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -2072,8 +1843,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -2100,8 +1869,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -2117,13 +1884,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 8;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -2142,12 +1907,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -2163,24 +1927,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 8;
      */
     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> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2190,12 +1951,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.QueryResultBatch)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.QueryResultBatch)
   private static final com.google.datastore.v1.QueryResultBatch DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.QueryResultBatch();
   }
@@ -2204,16 +1965,16 @@ public static com.google.datastore.v1.QueryResultBatch getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public QueryResultBatch parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new QueryResultBatch(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public QueryResultBatch parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new QueryResultBatch(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2228,4 +1989,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.QueryResultBatch getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
similarity index 86%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
index f297d1da6..9354ca43e 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
@@ -1,93 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
-public interface QueryResultBatchOrBuilder
-    extends
+public interface QueryResultBatchOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.QueryResultBatch)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The number of results skipped, typically because of an offset.
    * 
* * int32 skipped_results = 6; - * * @return The skippedResults. */ int getSkippedResults(); /** - * - * *
    * A cursor that points to the position after the last skipped result.
    * Will be set when `skipped_results` != 0.
    * 
* * bytes skipped_cursor = 3; - * * @return The skippedCursor. */ com.google.protobuf.ByteString getSkippedCursor(); /** - * - * *
    * The result type for every entity in `entity_results`.
    * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @return The enum numeric value on the wire for entityResultType. */ int getEntityResultTypeValue(); /** - * - * *
    * The result type for every entity in `entity_results`.
    * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * * @return The entityResultType. */ com.google.datastore.v1.EntityResult.ResultType getEntityResultType(); /** - * - * *
    * The results for this batch.
    * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - java.util.List getEntityResultsList(); + java.util.List + getEntityResultsList(); /** - * - * *
    * The results for this batch.
    * 
@@ -96,8 +65,6 @@ public interface QueryResultBatchOrBuilder */ com.google.datastore.v1.EntityResult getEntityResults(int index); /** - * - * *
    * The results for this batch.
    * 
@@ -106,68 +73,54 @@ public interface QueryResultBatchOrBuilder */ int getEntityResultsCount(); /** - * - * *
    * The results for this batch.
    * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - java.util.List + java.util.List getEntityResultsOrBuilderList(); /** - * - * *
    * The results for this batch.
    * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(int index); + com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder( + int index); /** - * - * *
    * A cursor that points to the position after the last result in the batch.
    * 
* * bytes end_cursor = 4; - * * @return The endCursor. */ com.google.protobuf.ByteString getEndCursor(); /** - * - * *
    * The state of the query after the current batch.
    * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @return The enum numeric value on the wire for moreResults. */ int getMoreResultsValue(); /** - * - * *
    * The state of the query after the current batch.
    * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * * @return The moreResults. */ com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults(); /** - * - * *
    * The version number of the snapshot this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -180,14 +133,11 @@ public interface QueryResultBatchOrBuilder
    * 
* * int64 snapshot_version = 7; - * * @return The snapshotVersion. */ long getSnapshotVersion(); /** - * - * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -201,13 +151,10 @@ public interface QueryResultBatchOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 8; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -221,13 +168,10 @@ public interface QueryResultBatchOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 8; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
similarity index 74%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
index ea77f95e4..67c767331 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * The options shared by read requests.
  * 
* * Protobuf type {@code google.datastore.v1.ReadOptions} */ -public final class ReadOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.ReadOptions) ReadOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadOptions.newBuilder() to construct. private ReadOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReadOptions() {} + private ReadOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReadOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,41 +52,38 @@ private ReadOptions( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); - consistencyTypeCase_ = 1; - consistencyType_ = rawValue; - break; - } - case 18: - { - consistencyType_ = input.readBytes(); - consistencyTypeCase_ = 2; - break; + case 8: { + int rawValue = input.readEnum(); + consistencyTypeCase_ = 1; + consistencyType_ = rawValue; + break; + } + case 18: { + consistencyType_ = input.readBytes(); + consistencyTypeCase_ = 2; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (consistencyTypeCase_ == 4) { + subBuilder = ((com.google.protobuf.Timestamp) consistencyType_).toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (consistencyTypeCase_ == 4) { - subBuilder = ((com.google.protobuf.Timestamp) consistencyType_).toBuilder(); - } - consistencyType_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) consistencyType_); - consistencyType_ = subBuilder.buildPartial(); - } - consistencyTypeCase_ = 4; - break; + consistencyType_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) consistencyType_); + consistencyType_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + consistencyTypeCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,41 +91,36 @@ private ReadOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReadOptions.class, - com.google.datastore.v1.ReadOptions.Builder.class); + com.google.datastore.v1.ReadOptions.class, com.google.datastore.v1.ReadOptions.Builder.class); } /** - * - * *
    * The possible values for read consistencies.
    * 
* * Protobuf enum {@code google.datastore.v1.ReadOptions.ReadConsistency} */ - public enum ReadConsistency implements com.google.protobuf.ProtocolMessageEnum { + public enum ReadConsistency + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -153,8 +129,6 @@ public enum ReadConsistency implements com.google.protobuf.ProtocolMessageEnum { */ READ_CONSISTENCY_UNSPECIFIED(0), /** - * - * *
      * Strong consistency.
      * 
@@ -163,8 +137,6 @@ public enum ReadConsistency implements com.google.protobuf.ProtocolMessageEnum { */ STRONG(1), /** - * - * *
      * Eventual consistency.
      * 
@@ -176,8 +148,6 @@ public enum ReadConsistency implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified. This value must not be used.
      * 
@@ -186,8 +156,6 @@ public enum ReadConsistency implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_CONSISTENCY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Strong consistency.
      * 
@@ -196,8 +164,6 @@ public enum ReadConsistency implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STRONG_VALUE = 1; /** - * - * *
      * Eventual consistency.
      * 
@@ -206,6 +172,7 @@ public enum ReadConsistency implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVENTUAL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -230,42 +197,39 @@ public static ReadConsistency valueOf(int value) { */ public static ReadConsistency forNumber(int value) { switch (value) { - case 0: - return READ_CONSISTENCY_UNSPECIFIED; - case 1: - return STRONG; - case 2: - return EVENTUAL; - default: - return null; + case 0: return READ_CONSISTENCY_UNSPECIFIED; + case 1: return STRONG; + case 2: return EVENTUAL; + 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< + ReadConsistency> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ReadConsistency findValueByNumber(int number) { + return ReadConsistency.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ReadConsistency findValueByNumber(int number) { - return ReadConsistency.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.datastore.v1.ReadOptions.getDescriptor().getEnumTypes().get(0); } @@ -274,7 +238,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ReadConsistency 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; @@ -293,17 +258,14 @@ private ReadConsistency(int value) { private int consistencyTypeCase_ = 0; private java.lang.Object consistencyType_; - public enum ConsistencyTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { READ_CONSISTENCY(1), TRANSACTION(2), READ_TIME(4), CONSISTENCYTYPE_NOT_SET(0); private final int value; - private ConsistencyTypeCase(int value) { this.value = value; } @@ -319,54 +281,44 @@ public static ConsistencyTypeCase valueOf(int value) { public static ConsistencyTypeCase forNumber(int value) { switch (value) { - case 1: - return READ_CONSISTENCY; - case 2: - return TRANSACTION; - case 4: - return READ_TIME; - case 0: - return CONSISTENCYTYPE_NOT_SET; - default: - return null; + case 1: return READ_CONSISTENCY; + case 2: return TRANSACTION; + case 4: return READ_TIME; + case 0: return CONSISTENCYTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConsistencyTypeCase getConsistencyTypeCase() { - return ConsistencyTypeCase.forNumber(consistencyTypeCase_); + public ConsistencyTypeCase + getConsistencyTypeCase() { + return ConsistencyTypeCase.forNumber( + consistencyTypeCase_); } public static final int READ_CONSISTENCY_FIELD_NUMBER = 1; /** - * - * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return Whether the readConsistency field is set. */ public boolean hasReadConsistency() { return consistencyTypeCase_ == 1; } /** - * - * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return The enum numeric value on the wire for readConsistency. */ public int getReadConsistencyValue() { @@ -376,34 +328,26 @@ public int getReadConsistencyValue() { return 0; } /** - * - * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return The readConsistency. */ public com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency() { if (consistencyTypeCase_ == 1) { @SuppressWarnings("deprecation") - com.google.datastore.v1.ReadOptions.ReadConsistency result = - com.google.datastore.v1.ReadOptions.ReadConsistency.valueOf( - (java.lang.Integer) consistencyType_); - return result == null - ? com.google.datastore.v1.ReadOptions.ReadConsistency.UNRECOGNIZED - : result; + com.google.datastore.v1.ReadOptions.ReadConsistency result = com.google.datastore.v1.ReadOptions.ReadConsistency.valueOf( + (java.lang.Integer) consistencyType_); + return result == null ? com.google.datastore.v1.ReadOptions.ReadConsistency.UNRECOGNIZED : result; } return com.google.datastore.v1.ReadOptions.ReadConsistency.READ_CONSISTENCY_UNSPECIFIED; } public static final int TRANSACTION_FIELD_NUMBER = 2; /** - * - * *
    * The identifier of the transaction in which to read. A
    * transaction identifier is returned by a call to
@@ -411,7 +355,6 @@ public com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency()
    * 
* * bytes transaction = 2; - * * @return Whether the transaction field is set. */ @java.lang.Override @@ -419,8 +362,6 @@ public boolean hasTransaction() { return consistencyTypeCase_ == 2; } /** - * - * *
    * The identifier of the transaction in which to read. A
    * transaction identifier is returned by a call to
@@ -428,7 +369,6 @@ public boolean hasTransaction() {
    * 
* * bytes transaction = 2; - * * @return The transaction. */ @java.lang.Override @@ -441,8 +381,6 @@ public com.google.protobuf.ByteString getTransaction() { public static final int READ_TIME_FIELD_NUMBER = 4; /** - * - * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -450,7 +388,6 @@ public com.google.protobuf.ByteString getTransaction() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -458,8 +395,6 @@ public boolean hasReadTime() { return consistencyTypeCase_ == 4; } /** - * - * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -467,19 +402,16 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { if (consistencyTypeCase_ == 4) { - return (com.google.protobuf.Timestamp) consistencyType_; + return (com.google.protobuf.Timestamp) consistencyType_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -491,13 +423,12 @@ public com.google.protobuf.Timestamp getReadTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     if (consistencyTypeCase_ == 4) {
-      return (com.google.protobuf.Timestamp) consistencyType_;
+       return (com.google.protobuf.Timestamp) consistencyType_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -509,12 +440,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (consistencyTypeCase_ == 1) {
       output.writeEnum(1, ((java.lang.Integer) consistencyType_));
     }
     if (consistencyTypeCase_ == 2) {
-      output.writeBytes(2, (com.google.protobuf.ByteString) consistencyType_);
+      output.writeBytes(
+          2, (com.google.protobuf.ByteString) consistencyType_);
     }
     if (consistencyTypeCase_ == 4) {
       output.writeMessage(4, (com.google.protobuf.Timestamp) consistencyType_);
@@ -529,19 +462,17 @@ public int getSerializedSize() {
 
     size = 0;
     if (consistencyTypeCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeEnumSize(
-              1, ((java.lang.Integer) consistencyType_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, ((java.lang.Integer) consistencyType_));
     }
     if (consistencyTypeCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeBytesSize(
-              2, (com.google.protobuf.ByteString) consistencyType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(
+            2, (com.google.protobuf.ByteString) consistencyType_);
     }
     if (consistencyTypeCase_ == 4) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, (com.google.protobuf.Timestamp) consistencyType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, (com.google.protobuf.Timestamp) consistencyType_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -551,7 +482,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.ReadOptions)) {
       return super.equals(obj);
@@ -561,13 +492,16 @@ public boolean equals(final java.lang.Object obj) {
     if (!getConsistencyTypeCase().equals(other.getConsistencyTypeCase())) return false;
     switch (consistencyTypeCase_) {
       case 1:
-        if (getReadConsistencyValue() != other.getReadConsistencyValue()) return false;
+        if (getReadConsistencyValue()
+            != other.getReadConsistencyValue()) return false;
         break;
       case 2:
-        if (!getTransaction().equals(other.getTransaction())) return false;
+        if (!getTransaction()
+            .equals(other.getTransaction())) return false;
         break;
       case 4:
-        if (!getReadTime().equals(other.getReadTime())) return false;
+        if (!getReadTime()
+            .equals(other.getReadTime())) return false;
         break;
       case 0:
       default:
@@ -604,126 +538,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.ReadOptions parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.ReadOptions parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.ReadOptions parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.ReadOptions parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.datastore.v1.ReadOptions parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.ReadOptions parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.ReadOptions parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.ReadOptions parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.ReadOptions parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.ReadOptions parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.ReadOptions parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.ReadOptions parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.ReadOptions parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.ReadOptions parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.ReadOptions prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 options shared by read requests.
    * 
* * Protobuf type {@code google.datastore.v1.ReadOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.ReadOptions) com.google.datastore.v1.ReadOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReadOptions.class, - com.google.datastore.v1.ReadOptions.Builder.class); + com.google.datastore.v1.ReadOptions.class, com.google.datastore.v1.ReadOptions.Builder.class); } // Construct using com.google.datastore.v1.ReadOptions.newBuilder() @@ -731,15 +657,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -749,9 +676,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReadOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_descriptor; } @java.lang.Override @@ -793,39 +720,38 @@ public com.google.datastore.v1.ReadOptions 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.datastore.v1.ReadOptions) { - return mergeFrom((com.google.datastore.v1.ReadOptions) other); + return mergeFrom((com.google.datastore.v1.ReadOptions)other); } else { super.mergeFrom(other); return this; @@ -835,25 +761,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.datastore.v1.ReadOptions other) { if (other == com.google.datastore.v1.ReadOptions.getDefaultInstance()) return this; switch (other.getConsistencyTypeCase()) { - case READ_CONSISTENCY: - { - setReadConsistencyValue(other.getReadConsistencyValue()); - break; - } - case TRANSACTION: - { - setTransaction(other.getTransaction()); - break; - } - case READ_TIME: - { - mergeReadTime(other.getReadTime()); - break; - } - case CONSISTENCYTYPE_NOT_SET: - { - break; - } + case READ_CONSISTENCY: { + setReadConsistencyValue(other.getReadConsistencyValue()); + break; + } + case TRANSACTION: { + setTransaction(other.getTransaction()); + break; + } + case READ_TIME: { + mergeReadTime(other.getReadTime()); + break; + } + case CONSISTENCYTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -883,12 +805,12 @@ public Builder mergeFrom( } return this; } - private int consistencyTypeCase_ = 0; private java.lang.Object consistencyType_; - - public ConsistencyTypeCase getConsistencyTypeCase() { - return ConsistencyTypeCase.forNumber(consistencyTypeCase_); + public ConsistencyTypeCase + getConsistencyTypeCase() { + return ConsistencyTypeCase.forNumber( + consistencyTypeCase_); } public Builder clearConsistencyType() { @@ -898,16 +820,14 @@ public Builder clearConsistencyType() { return this; } + /** - * - * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return Whether the readConsistency field is set. */ @java.lang.Override @@ -915,15 +835,12 @@ public boolean hasReadConsistency() { return consistencyTypeCase_ == 1; } /** - * - * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return The enum numeric value on the wire for readConsistency. */ @java.lang.Override @@ -934,15 +851,12 @@ public int getReadConsistencyValue() { return 0; } /** - * - * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @param value The enum numeric value on the wire for readConsistency to set. * @return This builder for chaining. */ @@ -953,40 +867,31 @@ public Builder setReadConsistencyValue(int value) { return this; } /** - * - * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return The readConsistency. */ @java.lang.Override public com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency() { if (consistencyTypeCase_ == 1) { @SuppressWarnings("deprecation") - com.google.datastore.v1.ReadOptions.ReadConsistency result = - com.google.datastore.v1.ReadOptions.ReadConsistency.valueOf( - (java.lang.Integer) consistencyType_); - return result == null - ? com.google.datastore.v1.ReadOptions.ReadConsistency.UNRECOGNIZED - : result; + com.google.datastore.v1.ReadOptions.ReadConsistency result = com.google.datastore.v1.ReadOptions.ReadConsistency.valueOf( + (java.lang.Integer) consistencyType_); + return result == null ? com.google.datastore.v1.ReadOptions.ReadConsistency.UNRECOGNIZED : result; } return com.google.datastore.v1.ReadOptions.ReadConsistency.READ_CONSISTENCY_UNSPECIFIED; } /** - * - * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @param value The readConsistency to set. * @return This builder for chaining. */ @@ -1000,15 +905,12 @@ public Builder setReadConsistency(com.google.datastore.v1.ReadOptions.ReadConsis return this; } /** - * - * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return This builder for chaining. */ public Builder clearReadConsistency() { @@ -1021,8 +923,6 @@ public Builder clearReadConsistency() { } /** - * - * *
      * The identifier of the transaction in which to read. A
      * transaction identifier is returned by a call to
@@ -1030,15 +930,12 @@ public Builder clearReadConsistency() {
      * 
* * bytes transaction = 2; - * * @return Whether the transaction field is set. */ public boolean hasTransaction() { return consistencyTypeCase_ == 2; } /** - * - * *
      * The identifier of the transaction in which to read. A
      * transaction identifier is returned by a call to
@@ -1046,7 +943,6 @@ public boolean hasTransaction() {
      * 
* * bytes transaction = 2; - * * @return The transaction. */ public com.google.protobuf.ByteString getTransaction() { @@ -1056,8 +952,6 @@ public com.google.protobuf.ByteString getTransaction() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The identifier of the transaction in which to read. A
      * transaction identifier is returned by a call to
@@ -1065,22 +959,19 @@ public com.google.protobuf.ByteString getTransaction() {
      * 
* * bytes transaction = 2; - * * @param value The transaction to set. * @return This builder for chaining. */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - consistencyTypeCase_ = 2; + throw new NullPointerException(); + } + consistencyTypeCase_ = 2; consistencyType_ = value; onChanged(); return this; } /** - * - * *
      * The identifier of the transaction in which to read. A
      * transaction identifier is returned by a call to
@@ -1088,7 +979,6 @@ public Builder setTransaction(com.google.protobuf.ByteString value) {
      * 
* * bytes transaction = 2; - * * @return This builder for chaining. */ public Builder clearTransaction() { @@ -1101,13 +991,8 @@ public Builder clearTransaction() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1115,7 +1000,6 @@ public Builder clearTransaction() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -1123,8 +1007,6 @@ public boolean hasReadTime() { return consistencyTypeCase_ == 4; } /** - * - * *
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1132,7 +1014,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -1150,8 +1031,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1174,8 +1053,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1184,7 +1061,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         consistencyType_ = builderForValue.build();
         onChanged();
@@ -1195,8 +1073,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1207,13 +1083,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
      */
     public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
-        if (consistencyTypeCase_ == 4
-            && consistencyType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          consistencyType_ =
-              com.google.protobuf.Timestamp.newBuilder(
-                      (com.google.protobuf.Timestamp) consistencyType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (consistencyTypeCase_ == 4 &&
+            consistencyType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          consistencyType_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) consistencyType_)
+              .mergeFrom(value).buildPartial();
         } else {
           consistencyType_ = value;
         }
@@ -1229,8 +1102,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1256,8 +1127,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1270,8 +1139,6 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1292,8 +1159,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1303,32 +1168,26 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
         if (!(consistencyTypeCase_ == 4)) {
           consistencyType_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                 (com.google.protobuf.Timestamp) consistencyType_,
                 getParentForChildren(),
                 isClean());
         consistencyType_ = null;
       }
       consistencyTypeCase_ = 4;
-      onChanged();
-      ;
+      onChanged();;
       return readTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1338,12 +1197,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.ReadOptions)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.ReadOptions)
   private static final com.google.datastore.v1.ReadOptions DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.ReadOptions();
   }
@@ -1352,16 +1211,16 @@ public static com.google.datastore.v1.ReadOptions getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ReadOptions parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ReadOptions(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ReadOptions parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ReadOptions(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1376,4 +1235,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.ReadOptions getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
similarity index 80%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
index 5f3c01402..2224188ac 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
@@ -1,71 +1,44 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
-public interface ReadOptionsOrBuilder
-    extends
+public interface ReadOptionsOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.ReadOptions)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return Whether the readConsistency field is set. */ boolean hasReadConsistency(); /** - * - * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return The enum numeric value on the wire for readConsistency. */ int getReadConsistencyValue(); /** - * - * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * * @return The readConsistency. */ com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency(); /** - * - * *
    * The identifier of the transaction in which to read. A
    * transaction identifier is returned by a call to
@@ -73,13 +46,10 @@ public interface ReadOptionsOrBuilder
    * 
* * bytes transaction = 2; - * * @return Whether the transaction field is set. */ boolean hasTransaction(); /** - * - * *
    * The identifier of the transaction in which to read. A
    * transaction identifier is returned by a call to
@@ -87,14 +57,11 @@ public interface ReadOptionsOrBuilder
    * 
* * bytes transaction = 2; - * * @return The transaction. */ com.google.protobuf.ByteString getTransaction(); /** - * - * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -102,13 +69,10 @@ public interface ReadOptionsOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -116,13 +80,10 @@ public interface ReadOptionsOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java
similarity index 71%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java
index 27a8ef8a6..b5faa3cb3 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.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/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * The request for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
  * 
* * Protobuf type {@code google.datastore.v1.ReserveIdsRequest} */ -public final class ReserveIdsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReserveIdsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.ReserveIdsRequest) ReserveIdsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReserveIdsRequest.newBuilder() to construct. private ReserveIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReserveIdsRequest() { projectId_ = ""; databaseId_ = ""; @@ -45,15 +27,16 @@ private ReserveIdsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReserveIdsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReserveIdsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,36 +56,34 @@ private ReserveIdsRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keys_.add(input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + keys_.add( + input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); - databaseId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + databaseId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,7 +91,8 @@ private ReserveIdsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -119,33 +101,27 @@ private ReserveIdsRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReserveIdsRequest.class, - com.google.datastore.v1.ReserveIdsRequest.Builder.class); + com.google.datastore.v1.ReserveIdsRequest.class, com.google.datastore.v1.ReserveIdsRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -154,29 +130,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -187,14 +163,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int DATABASE_ID_FIELD_NUMBER = 9; private volatile java.lang.Object databaseId_; /** - * - * *
    * If not empty, the ID of the database against which to make the request.
    * 
* * string database_id = 9; - * * @return The databaseId. */ @java.lang.Override @@ -203,29 +176,29 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** - * - * *
    * If not empty, the ID of the database against which to make the request.
    * 
* * string database_id = 9; - * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseIdBytes() { + public com.google.protobuf.ByteString + getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -236,83 +209,69 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getKeysList() { return keys_; } /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List getKeysOrBuilderList() { + public java.util.List + getKeysOrBuilderList() { return keys_; } /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getKeysCount() { return keys_.size(); } /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.datastore.v1.Key getKeys(int index) { return keys_.get(index); } /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +283,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < keys_.size(); i++) { output.writeMessage(1, keys_.get(i)); } @@ -344,7 +304,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, keys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -360,17 +321,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.datastore.v1.ReserveIdsRequest)) { return super.equals(obj); } - com.google.datastore.v1.ReserveIdsRequest other = - (com.google.datastore.v1.ReserveIdsRequest) obj; + com.google.datastore.v1.ReserveIdsRequest other = (com.google.datastore.v1.ReserveIdsRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getDatabaseId().equals(other.getDatabaseId())) return false; - if (!getKeysList().equals(other.getKeysList())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getDatabaseId() + .equals(other.getDatabaseId())) return false; + if (!getKeysList() + .equals(other.getKeysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -395,127 +358,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.ReserveIdsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.ReserveIdsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.ReserveIdsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.ReserveIdsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.ReserveIdsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
    * 
* * Protobuf type {@code google.datastore.v1.ReserveIdsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.ReserveIdsRequest) com.google.datastore.v1.ReserveIdsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReserveIdsRequest.class, - com.google.datastore.v1.ReserveIdsRequest.Builder.class); + com.google.datastore.v1.ReserveIdsRequest.class, com.google.datastore.v1.ReserveIdsRequest.Builder.class); } // Construct using com.google.datastore.v1.ReserveIdsRequest.newBuilder() @@ -523,17 +477,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getKeysFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; } @java.lang.Override @@ -572,8 +526,7 @@ public com.google.datastore.v1.ReserveIdsRequest build() { @java.lang.Override public com.google.datastore.v1.ReserveIdsRequest buildPartial() { - com.google.datastore.v1.ReserveIdsRequest result = - new com.google.datastore.v1.ReserveIdsRequest(this); + com.google.datastore.v1.ReserveIdsRequest result = new com.google.datastore.v1.ReserveIdsRequest(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; result.databaseId_ = databaseId_; @@ -594,39 +547,38 @@ public com.google.datastore.v1.ReserveIdsRequest 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.datastore.v1.ReserveIdsRequest) { - return mergeFrom((com.google.datastore.v1.ReserveIdsRequest) other); + return mergeFrom((com.google.datastore.v1.ReserveIdsRequest)other); } else { super.mergeFrom(other); return this; @@ -661,10 +613,9 @@ public Builder mergeFrom(com.google.datastore.v1.ReserveIdsRequest other) { keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeysFieldBuilder() - : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeysFieldBuilder() : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -698,25 +649,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -725,21 +673,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -747,61 +694,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -809,20 +749,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseId_ = ""; /** - * - * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; - * * @return The databaseId. */ public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -831,21 +769,20 @@ public java.lang.String getDatabaseId() { } } /** - * - * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; - * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString getDatabaseIdBytes() { + public com.google.protobuf.ByteString + getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -853,91 +790,78 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } } /** - * - * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; - * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId(java.lang.String value) { + public Builder setDatabaseId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + databaseId_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; - * * @return This builder for chaining. */ public Builder clearDatabaseId() { - + databaseId_ = getDefaultInstance().getDatabaseId(); onChanged(); return this; } /** - * - * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; - * * @param value The bytes for databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { + public Builder setDatabaseIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseId_ = value; onChanged(); return this; } - private java.util.List keys_ = java.util.Collections.emptyList(); - + private java.util.List keys_ = + java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> - keysBuilder_; + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keysBuilder_; /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getKeysList() { if (keysBuilder_ == null) { @@ -947,15 +871,12 @@ public java.util.List getKeysList() { } } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getKeysCount() { if (keysBuilder_ == null) { @@ -965,15 +886,12 @@ public int getKeysCount() { } } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.v1.Key getKeys(int index) { if (keysBuilder_ == null) { @@ -983,17 +901,15 @@ public com.google.datastore.v1.Key getKeys(int index) { } } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKeys(int index, com.google.datastore.v1.Key value) { + public Builder setKeys( + int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1007,17 +923,15 @@ public Builder setKeys(int index, com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder setKeys( + int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.set(index, builderForValue.build()); @@ -1028,15 +942,12 @@ public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderFor return this; } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addKeys(com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { @@ -1052,17 +963,15 @@ public Builder addKeys(com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(int index, com.google.datastore.v1.Key value) { + public Builder addKeys( + int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1076,17 +985,15 @@ public Builder addKeys(int index, com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys( + com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); @@ -1097,17 +1004,15 @@ public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { return this; } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys( + int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(index, builderForValue.build()); @@ -1118,20 +1023,19 @@ public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderFor return this; } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addAllKeys(java.lang.Iterable values) { + public Builder addAllKeys( + java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); @@ -1139,15 +1043,12 @@ public Builder addAllKeys(java.lang.Iterable * Required. A list of keys with complete key paths whose numeric IDs should not be * auto-allocated. *
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearKeys() { if (keysBuilder_ == null) { @@ -1160,15 +1061,12 @@ public Builder clearKeys() { return this; } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeKeys(int index) { if (keysBuilder_ == null) { @@ -1181,49 +1079,42 @@ public Builder removeKeys(int index) { return this; } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) { + public com.google.datastore.v1.Key.Builder getKeysBuilder( + int index) { return getKeysFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index) { if (keysBuilder_ == null) { - return keys_.get(index); - } else { + return keys_.get(index); } else { return keysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getKeysOrBuilderList() { + public java.util.List + getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { @@ -1231,68 +1122,59 @@ public java.util.List getKeysOrB } } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.datastore.v1.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance()); + return getKeysFieldBuilder().addBuilder( + com.google.datastore.v1.Key.getDefaultInstance()); } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) { - return getKeysFieldBuilder() - .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance()); + public com.google.datastore.v1.Key.Builder addKeysBuilder( + int index) { + return getKeysFieldBuilder().addBuilder( + index, com.google.datastore.v1.Key.getDefaultInstance()); } /** - * - * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getKeysBuilderList() { + public java.util.List + getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder>( - keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>( + keys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); keys_ = null; } return keysBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1302,12 +1184,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.ReserveIdsRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.ReserveIdsRequest) private static final com.google.datastore.v1.ReserveIdsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.ReserveIdsRequest(); } @@ -1316,16 +1198,16 @@ public static com.google.datastore.v1.ReserveIdsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReserveIdsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReserveIdsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReserveIdsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReserveIdsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1340,4 +1222,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.ReserveIdsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java index b410d83d6..175f621d0 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java @@ -1,136 +1,98 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface ReserveIdsRequestOrBuilder - extends +public interface ReserveIdsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.ReserveIdsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * If not empty, the ID of the database against which to make the request.
    * 
* * string database_id = 9; - * * @return The databaseId. */ java.lang.String getDatabaseId(); /** - * - * *
    * If not empty, the ID of the database against which to make the request.
    * 
* * string database_id = 9; - * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString getDatabaseIdBytes(); + com.google.protobuf.ByteString + getDatabaseIdBytes(); /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getKeysList(); + java.util.List + getKeysList(); /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.datastore.v1.Key getKeys(int index); /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getKeysCount(); /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getKeysOrBuilderList(); + java.util.List + getKeysOrBuilderList(); /** - * - * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index); + com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( + int index); } diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java similarity index 66% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java index b889a46f1..e1439b965 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The response for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
  * 
* * Protobuf type {@code google.datastore.v1.ReserveIdsResponse} */ -public final class ReserveIdsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReserveIdsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.ReserveIdsResponse) ReserveIdsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReserveIdsResponse.newBuilder() to construct. private ReserveIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReserveIdsResponse() {} + private ReserveIdsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReserveIdsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReserveIdsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private ReserveIdsResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,30 +66,27 @@ private ReserveIdsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReserveIdsResponse.class, - com.google.datastore.v1.ReserveIdsResponse.Builder.class); + com.google.datastore.v1.ReserveIdsResponse.class, com.google.datastore.v1.ReserveIdsResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,7 +98,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -135,13 +117,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.ReserveIdsResponse)) { return super.equals(obj); } - com.google.datastore.v1.ReserveIdsResponse other = - (com.google.datastore.v1.ReserveIdsResponse) obj; + com.google.datastore.v1.ReserveIdsResponse other = (com.google.datastore.v1.ReserveIdsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -159,127 +140,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.ReserveIdsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.ReserveIdsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.ReserveIdsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.ReserveIdsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.ReserveIdsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
    * 
* * Protobuf type {@code google.datastore.v1.ReserveIdsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.ReserveIdsResponse) com.google.datastore.v1.ReserveIdsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReserveIdsResponse.class, - com.google.datastore.v1.ReserveIdsResponse.Builder.class); + com.google.datastore.v1.ReserveIdsResponse.class, com.google.datastore.v1.ReserveIdsResponse.Builder.class); } // Construct using com.google.datastore.v1.ReserveIdsResponse.newBuilder() @@ -287,15 +259,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -303,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; } @java.lang.Override @@ -324,8 +297,7 @@ public com.google.datastore.v1.ReserveIdsResponse build() { @java.lang.Override public com.google.datastore.v1.ReserveIdsResponse buildPartial() { - com.google.datastore.v1.ReserveIdsResponse result = - new com.google.datastore.v1.ReserveIdsResponse(this); + com.google.datastore.v1.ReserveIdsResponse result = new com.google.datastore.v1.ReserveIdsResponse(this); onBuilt(); return result; } @@ -334,39 +306,38 @@ public com.google.datastore.v1.ReserveIdsResponse 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.datastore.v1.ReserveIdsResponse) { - return mergeFrom((com.google.datastore.v1.ReserveIdsResponse) other); + return mergeFrom((com.google.datastore.v1.ReserveIdsResponse)other); } else { super.mergeFrom(other); return this; @@ -403,9 +374,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -415,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.ReserveIdsResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.ReserveIdsResponse) private static final com.google.datastore.v1.ReserveIdsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.ReserveIdsResponse(); } @@ -429,16 +400,16 @@ public static com.google.datastore.v1.ReserveIdsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReserveIdsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReserveIdsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReserveIdsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReserveIdsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -453,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.ReserveIdsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java new file mode 100644 index 000000000..3a99406d3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/v1/datastore.proto + +package com.google.datastore.v1; + +public interface ReserveIdsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.datastore.v1.ReserveIdsResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java similarity index 72% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java index 75c24d616..3978fbfd5 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The request for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
  * 
* * Protobuf type {@code google.datastore.v1.RollbackRequest} */ -public final class RollbackRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RollbackRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.RollbackRequest) RollbackRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RollbackRequest.newBuilder() to construct. private RollbackRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RollbackRequest() { projectId_ = ""; transaction_ = com.google.protobuf.ByteString.EMPTY; @@ -44,15 +26,16 @@ private RollbackRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RollbackRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RollbackRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,25 +54,24 @@ private RollbackRequest( case 0: done = true; break; - case 10: - { - transaction_ = input.readBytes(); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { - projectId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + transaction_ = input.readBytes(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,39 +79,34 @@ private RollbackRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RollbackRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RollbackRequest.class, - com.google.datastore.v1.RollbackRequest.Builder.class); + com.google.datastore.v1.RollbackRequest.class, com.google.datastore.v1.RollbackRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -171,15 +148,12 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int TRANSACTION_FIELD_NUMBER = 1; private com.google.protobuf.ByteString transaction_; /** - * - * *
    * Required. The transaction identifier, returned by a call to
    * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The transaction. */ @java.lang.Override @@ -188,7 +162,6 @@ public com.google.protobuf.ByteString getTransaction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,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 { if (!transaction_.isEmpty()) { output.writeBytes(1, transaction_); } @@ -217,7 +191,8 @@ public int getSerializedSize() { size = 0; if (!transaction_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, transaction_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, transaction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -230,15 +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.datastore.v1.RollbackRequest)) { return super.equals(obj); } com.google.datastore.v1.RollbackRequest other = (com.google.datastore.v1.RollbackRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getTransaction().equals(other.getTransaction())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getTransaction() + .equals(other.getTransaction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -259,127 +236,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.RollbackRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.RollbackRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RollbackRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RollbackRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RollbackRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RollbackRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RollbackRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RollbackRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.RollbackRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.RollbackRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.RollbackRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.RollbackRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.RollbackRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.RollbackRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.RollbackRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
    * 
* * Protobuf type {@code google.datastore.v1.RollbackRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.RollbackRequest) com.google.datastore.v1.RollbackRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RollbackRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RollbackRequest.class, - com.google.datastore.v1.RollbackRequest.Builder.class); + com.google.datastore.v1.RollbackRequest.class, com.google.datastore.v1.RollbackRequest.Builder.class); } // Construct using com.google.datastore.v1.RollbackRequest.newBuilder() @@ -387,15 +355,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RollbackRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_descriptor; } @java.lang.Override @@ -428,8 +397,7 @@ public com.google.datastore.v1.RollbackRequest build() { @java.lang.Override public com.google.datastore.v1.RollbackRequest buildPartial() { - com.google.datastore.v1.RollbackRequest result = - new com.google.datastore.v1.RollbackRequest(this); + com.google.datastore.v1.RollbackRequest result = new com.google.datastore.v1.RollbackRequest(this); result.projectId_ = projectId_; result.transaction_ = transaction_; onBuilt(); @@ -440,39 +408,38 @@ public com.google.datastore.v1.RollbackRequest 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.datastore.v1.RollbackRequest) { - return mergeFrom((com.google.datastore.v1.RollbackRequest) other); + return mergeFrom((com.google.datastore.v1.RollbackRequest)other); } else { super.mergeFrom(other); return this; @@ -519,20 +486,18 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -541,21 +506,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -563,61 +527,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -625,15 +582,12 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString transaction_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The transaction identifier, returned by a call to
      * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
      * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The transaction. */ @java.lang.Override @@ -641,48 +595,42 @@ public com.google.protobuf.ByteString getTransaction() { return transaction_; } /** - * - * *
      * Required. The transaction identifier, returned by a call to
      * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
      * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The transaction to set. * @return This builder for chaining. */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transaction_ = value; onChanged(); return this; } /** - * - * *
      * Required. The transaction identifier, returned by a call to
      * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
      * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTransaction() { - + transaction_ = getDefaultInstance().getTransaction(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +640,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.RollbackRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.RollbackRequest) private static final com.google.datastore.v1.RollbackRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.RollbackRequest(); } @@ -706,16 +654,16 @@ public static com.google.datastore.v1.RollbackRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RollbackRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RollbackRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RollbackRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +678,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.RollbackRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java index 86319d919..06e3d744e 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java @@ -1,63 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface RollbackRequestOrBuilder - extends +public interface RollbackRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.RollbackRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The transaction identifier, returned by a call to
    * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The transaction. */ com.google.protobuf.ByteString getTransaction(); diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java similarity index 67% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java index 0d96f1969..e33d047c0 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The response for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
  * (an empty message).
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.datastore.v1.RollbackResponse}
  */
-public final class RollbackResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RollbackResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.RollbackResponse)
     RollbackResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RollbackResponse.newBuilder() to construct.
   private RollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private RollbackResponse() {}
+  private RollbackResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RollbackResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RollbackResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,13 +53,13 @@ private RollbackResponse(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,30 +67,27 @@ private RollbackResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.v1.DatastoreProto
-        .internal_static_google_datastore_v1_RollbackResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.DatastoreProto
-        .internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable
+    return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.v1.RollbackResponse.class,
-            com.google.datastore.v1.RollbackResponse.Builder.class);
+            com.google.datastore.v1.RollbackResponse.class, com.google.datastore.v1.RollbackResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -118,7 +99,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     unknownFields.writeTo(output);
   }
 
@@ -136,7 +118,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.datastore.v1.RollbackResponse)) {
       return super.equals(obj);
@@ -159,104 +141,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.RollbackResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.RollbackResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.datastore.v1.RollbackResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.datastore.v1.RollbackResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.datastore.v1.RollbackResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.datastore.v1.RollbackResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 response for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
    * (an empty message).
@@ -264,23 +239,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.v1.RollbackResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.RollbackResponse)
       com.google.datastore.v1.RollbackResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.v1.DatastoreProto
-          .internal_static_google_datastore_v1_RollbackResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.DatastoreProto
-          .internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable
+      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.RollbackResponse.class,
-              com.google.datastore.v1.RollbackResponse.Builder.class);
+              com.google.datastore.v1.RollbackResponse.class, com.google.datastore.v1.RollbackResponse.Builder.class);
     }
 
     // Construct using com.google.datastore.v1.RollbackResponse.newBuilder()
@@ -288,15 +261,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -304,9 +278,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.v1.DatastoreProto
-          .internal_static_google_datastore_v1_RollbackResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_descriptor;
     }
 
     @java.lang.Override
@@ -325,8 +299,7 @@ public com.google.datastore.v1.RollbackResponse build() {
 
     @java.lang.Override
     public com.google.datastore.v1.RollbackResponse buildPartial() {
-      com.google.datastore.v1.RollbackResponse result =
-          new com.google.datastore.v1.RollbackResponse(this);
+      com.google.datastore.v1.RollbackResponse result = new com.google.datastore.v1.RollbackResponse(this);
       onBuilt();
       return result;
     }
@@ -335,39 +308,38 @@ public com.google.datastore.v1.RollbackResponse 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.datastore.v1.RollbackResponse) {
-        return mergeFrom((com.google.datastore.v1.RollbackResponse) other);
+        return mergeFrom((com.google.datastore.v1.RollbackResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -404,9 +376,9 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -416,12 +388,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.RollbackResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.RollbackResponse)
   private static final com.google.datastore.v1.RollbackResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.RollbackResponse();
   }
@@ -430,16 +402,16 @@ public static com.google.datastore.v1.RollbackResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public RollbackResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new RollbackResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public RollbackResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new RollbackResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -454,4 +426,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.RollbackResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java
new file mode 100644
index 000000000..5259ab5a8
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/v1/datastore.proto
+
+package com.google.datastore.v1;
+
+public interface RollbackResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.datastore.v1.RollbackResponse)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
similarity index 72%
rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
index 6da75072d..f35d6d7a1 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
- *
- *
  * 
  * The request for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
  * 
* * Protobuf type {@code google.datastore.v1.RunQueryRequest} */ -public final class RunQueryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunQueryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.RunQueryRequest) RunQueryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunQueryRequest.newBuilder() to construct. private RunQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunQueryRequest() { projectId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RunQueryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,82 +53,73 @@ private RunQueryRequest( case 0: done = true; break; - case 10: - { - com.google.datastore.v1.ReadOptions.Builder subBuilder = null; - if (readOptions_ != null) { - subBuilder = readOptions_.toBuilder(); - } - readOptions_ = - input.readMessage( - com.google.datastore.v1.ReadOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readOptions_); - readOptions_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.v1.ReadOptions.Builder subBuilder = null; + if (readOptions_ != null) { + subBuilder = readOptions_.toBuilder(); } - case 18: - { - com.google.datastore.v1.PartitionId.Builder subBuilder = null; - if (partitionId_ != null) { - subBuilder = partitionId_.toBuilder(); - } - partitionId_ = - input.readMessage( - com.google.datastore.v1.PartitionId.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(partitionId_); - partitionId_ = subBuilder.buildPartial(); - } - - break; + readOptions_ = input.readMessage(com.google.datastore.v1.ReadOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readOptions_); + readOptions_ = subBuilder.buildPartial(); } - case 26: - { - com.google.datastore.v1.Query.Builder subBuilder = null; - if (queryTypeCase_ == 3) { - subBuilder = ((com.google.datastore.v1.Query) queryType_).toBuilder(); - } - queryType_ = - input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Query) queryType_); - queryType_ = subBuilder.buildPartial(); - } - queryTypeCase_ = 3; - break; + + break; + } + case 18: { + com.google.datastore.v1.PartitionId.Builder subBuilder = null; + if (partitionId_ != null) { + subBuilder = partitionId_.toBuilder(); } - case 58: - { - com.google.datastore.v1.GqlQuery.Builder subBuilder = null; - if (queryTypeCase_ == 7) { - subBuilder = ((com.google.datastore.v1.GqlQuery) queryType_).toBuilder(); - } - queryType_ = - input.readMessage(com.google.datastore.v1.GqlQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.GqlQuery) queryType_); - queryType_ = subBuilder.buildPartial(); - } - queryTypeCase_ = 7; - break; + partitionId_ = input.readMessage(com.google.datastore.v1.PartitionId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partitionId_); + partitionId_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; + break; + } + case 26: { + com.google.datastore.v1.Query.Builder subBuilder = null; + if (queryTypeCase_ == 3) { + subBuilder = ((com.google.datastore.v1.Query) queryType_).toBuilder(); + } + queryType_ = + input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Query) queryType_); + queryType_ = subBuilder.buildPartial(); + } + queryTypeCase_ = 3; + break; + } + case 58: { + com.google.datastore.v1.GqlQuery.Builder subBuilder = null; + if (queryTypeCase_ == 7) { + subBuilder = ((com.google.datastore.v1.GqlQuery) queryType_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + queryType_ = + input.readMessage(com.google.datastore.v1.GqlQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.GqlQuery) queryType_); + queryType_ = subBuilder.buildPartial(); + } + queryTypeCase_ = 7; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -153,40 +127,35 @@ private RunQueryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RunQueryRequest.class, - com.google.datastore.v1.RunQueryRequest.Builder.class); + com.google.datastore.v1.RunQueryRequest.class, com.google.datastore.v1.RunQueryRequest.Builder.class); } private int queryTypeCase_ = 0; private java.lang.Object queryType_; - public enum QueryTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { QUERY(3), GQL_QUERY(7), QUERYTYPE_NOT_SET(0); private final int value; - private QueryTypeCase(int value) { this.value = value; } @@ -202,37 +171,31 @@ public static QueryTypeCase valueOf(int value) { public static QueryTypeCase forNumber(int value) { switch (value) { - case 3: - return QUERY; - case 7: - return GQL_QUERY; - case 0: - return QUERYTYPE_NOT_SET; - default: - return null; + case 3: return QUERY; + case 7: return GQL_QUERY; + case 0: return QUERYTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public QueryTypeCase getQueryTypeCase() { - return QueryTypeCase.forNumber(queryTypeCase_); + public QueryTypeCase + getQueryTypeCase() { + return QueryTypeCase.forNumber( + queryTypeCase_); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -241,29 +204,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -274,8 +237,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int PARTITION_ID_FIELD_NUMBER = 2; private com.google.datastore.v1.PartitionId partitionId_; /** - * - * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -284,7 +245,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
    * 
* * .google.datastore.v1.PartitionId partition_id = 2; - * * @return Whether the partitionId field is set. */ @java.lang.Override @@ -292,8 +252,6 @@ public boolean hasPartitionId() { return partitionId_ != null; } /** - * - * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -302,18 +260,13 @@ public boolean hasPartitionId() {
    * 
* * .google.datastore.v1.PartitionId partition_id = 2; - * * @return The partitionId. */ @java.lang.Override public com.google.datastore.v1.PartitionId getPartitionId() { - return partitionId_ == null - ? com.google.datastore.v1.PartitionId.getDefaultInstance() - : partitionId_; + return partitionId_ == null ? com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_; } /** - * - * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -331,14 +284,11 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
   public static final int READ_OPTIONS_FIELD_NUMBER = 1;
   private com.google.datastore.v1.ReadOptions readOptions_;
   /**
-   *
-   *
    * 
    * The options for this query.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return Whether the readOptions field is set. */ @java.lang.Override @@ -346,25 +296,18 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** - * - * *
    * The options for this query.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return The readOptions. */ @java.lang.Override public com.google.datastore.v1.ReadOptions getReadOptions() { - return readOptions_ == null - ? com.google.datastore.v1.ReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; } /** - * - * *
    * The options for this query.
    * 
@@ -378,14 +321,11 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { public static final int QUERY_FIELD_NUMBER = 3; /** - * - * *
    * The query to run.
    * 
* * .google.datastore.v1.Query query = 3; - * * @return Whether the query field is set. */ @java.lang.Override @@ -393,26 +333,21 @@ public boolean hasQuery() { return queryTypeCase_ == 3; } /** - * - * *
    * The query to run.
    * 
* * .google.datastore.v1.Query query = 3; - * * @return The query. */ @java.lang.Override public com.google.datastore.v1.Query getQuery() { if (queryTypeCase_ == 3) { - return (com.google.datastore.v1.Query) queryType_; + return (com.google.datastore.v1.Query) queryType_; } return com.google.datastore.v1.Query.getDefaultInstance(); } /** - * - * *
    * The query to run.
    * 
@@ -422,21 +357,18 @@ public com.google.datastore.v1.Query getQuery() { @java.lang.Override public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { if (queryTypeCase_ == 3) { - return (com.google.datastore.v1.Query) queryType_; + return (com.google.datastore.v1.Query) queryType_; } return com.google.datastore.v1.Query.getDefaultInstance(); } public static final int GQL_QUERY_FIELD_NUMBER = 7; /** - * - * *
    * The GQL query to run.
    * 
* * .google.datastore.v1.GqlQuery gql_query = 7; - * * @return Whether the gqlQuery field is set. */ @java.lang.Override @@ -444,26 +376,21 @@ public boolean hasGqlQuery() { return queryTypeCase_ == 7; } /** - * - * *
    * The GQL query to run.
    * 
* * .google.datastore.v1.GqlQuery gql_query = 7; - * * @return The gqlQuery. */ @java.lang.Override public com.google.datastore.v1.GqlQuery getGqlQuery() { if (queryTypeCase_ == 7) { - return (com.google.datastore.v1.GqlQuery) queryType_; + return (com.google.datastore.v1.GqlQuery) queryType_; } return com.google.datastore.v1.GqlQuery.getDefaultInstance(); } /** - * - * *
    * The GQL query to run.
    * 
@@ -473,13 +400,12 @@ public com.google.datastore.v1.GqlQuery getGqlQuery() { @java.lang.Override public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() { if (queryTypeCase_ == 7) { - return (com.google.datastore.v1.GqlQuery) queryType_; + return (com.google.datastore.v1.GqlQuery) queryType_; } return com.google.datastore.v1.GqlQuery.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -491,7 +417,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (readOptions_ != null) { output.writeMessage(1, getReadOptions()); } @@ -517,20 +444,20 @@ public int getSerializedSize() { size = 0; if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReadOptions()); } if (partitionId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPartitionId()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPartitionId()); } if (queryTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.datastore.v1.Query) queryType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.datastore.v1.Query) queryType_); } if (queryTypeCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.datastore.v1.GqlQuery) queryType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.datastore.v1.GqlQuery) queryType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -543,29 +470,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.RunQueryRequest)) { return super.equals(obj); } com.google.datastore.v1.RunQueryRequest other = (com.google.datastore.v1.RunQueryRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (hasPartitionId() != other.hasPartitionId()) return false; if (hasPartitionId()) { - if (!getPartitionId().equals(other.getPartitionId())) return false; + if (!getPartitionId() + .equals(other.getPartitionId())) return false; } if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions().equals(other.getReadOptions())) return false; + if (!getReadOptions() + .equals(other.getReadOptions())) return false; } if (!getQueryTypeCase().equals(other.getQueryTypeCase())) return false; switch (queryTypeCase_) { case 3: - if (!getQuery().equals(other.getQuery())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; break; case 7: - if (!getGqlQuery().equals(other.getGqlQuery())) return false; + if (!getGqlQuery() + .equals(other.getGqlQuery())) return false; break; case 0: default: @@ -608,127 +540,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.RunQueryRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.RunQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RunQueryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RunQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RunQueryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RunQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RunQueryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RunQueryRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.RunQueryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.RunQueryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.RunQueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.RunQueryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.RunQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.RunQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.RunQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
    * 
* * Protobuf type {@code google.datastore.v1.RunQueryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.RunQueryRequest) com.google.datastore.v1.RunQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RunQueryRequest.class, - com.google.datastore.v1.RunQueryRequest.Builder.class); + com.google.datastore.v1.RunQueryRequest.class, com.google.datastore.v1.RunQueryRequest.Builder.class); } // Construct using com.google.datastore.v1.RunQueryRequest.newBuilder() @@ -736,15 +659,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -768,9 +692,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_descriptor; } @java.lang.Override @@ -789,8 +713,7 @@ public com.google.datastore.v1.RunQueryRequest build() { @java.lang.Override public com.google.datastore.v1.RunQueryRequest buildPartial() { - com.google.datastore.v1.RunQueryRequest result = - new com.google.datastore.v1.RunQueryRequest(this); + com.google.datastore.v1.RunQueryRequest result = new com.google.datastore.v1.RunQueryRequest(this); result.projectId_ = projectId_; if (partitionIdBuilder_ == null) { result.partitionId_ = partitionId_; @@ -825,39 +748,38 @@ public com.google.datastore.v1.RunQueryRequest 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.datastore.v1.RunQueryRequest) { - return mergeFrom((com.google.datastore.v1.RunQueryRequest) other); + return mergeFrom((com.google.datastore.v1.RunQueryRequest)other); } else { super.mergeFrom(other); return this; @@ -877,20 +799,17 @@ public Builder mergeFrom(com.google.datastore.v1.RunQueryRequest other) { mergeReadOptions(other.getReadOptions()); } switch (other.getQueryTypeCase()) { - case QUERY: - { - mergeQuery(other.getQuery()); - break; - } - case GQL_QUERY: - { - mergeGqlQuery(other.getGqlQuery()); - break; - } - case QUERYTYPE_NOT_SET: - { - break; - } + case QUERY: { + mergeQuery(other.getQuery()); + break; + } + case GQL_QUERY: { + mergeGqlQuery(other.getGqlQuery()); + break; + } + case QUERYTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -920,12 +839,12 @@ public Builder mergeFrom( } return this; } - private int queryTypeCase_ = 0; private java.lang.Object queryType_; - - public QueryTypeCase getQueryTypeCase() { - return QueryTypeCase.forNumber(queryTypeCase_); + public QueryTypeCase + getQueryTypeCase() { + return QueryTypeCase.forNumber( + queryTypeCase_); } public Builder clearQueryType() { @@ -935,22 +854,21 @@ public Builder clearQueryType() { return this; } + private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -959,21 +877,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -981,61 +898,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1043,13 +953,8 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private com.google.datastore.v1.PartitionId partitionId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PartitionId, - com.google.datastore.v1.PartitionId.Builder, - com.google.datastore.v1.PartitionIdOrBuilder> - partitionIdBuilder_; + com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder> partitionIdBuilder_; /** - * - * *
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1058,15 +963,12 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.datastore.v1.PartitionId partition_id = 2; - * * @return Whether the partitionId field is set. */ public boolean hasPartitionId() { return partitionIdBuilder_ != null || partitionId_ != null; } /** - * - * *
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1075,21 +977,16 @@ public boolean hasPartitionId() {
      * 
* * .google.datastore.v1.PartitionId partition_id = 2; - * * @return The partitionId. */ public com.google.datastore.v1.PartitionId getPartitionId() { if (partitionIdBuilder_ == null) { - return partitionId_ == null - ? com.google.datastore.v1.PartitionId.getDefaultInstance() - : partitionId_; + return partitionId_ == null ? com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_; } else { return partitionIdBuilder_.getMessage(); } } /** - * - * *
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1113,8 +1010,6 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1124,7 +1019,8 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId value) {
      *
      * .google.datastore.v1.PartitionId partition_id = 2;
      */
-    public Builder setPartitionId(com.google.datastore.v1.PartitionId.Builder builderForValue) {
+    public Builder setPartitionId(
+        com.google.datastore.v1.PartitionId.Builder builderForValue) {
       if (partitionIdBuilder_ == null) {
         partitionId_ = builderForValue.build();
         onChanged();
@@ -1135,8 +1031,6 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1150,9 +1044,7 @@ public Builder mergePartitionId(com.google.datastore.v1.PartitionId value) {
       if (partitionIdBuilder_ == null) {
         if (partitionId_ != null) {
           partitionId_ =
-              com.google.datastore.v1.PartitionId.newBuilder(partitionId_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.datastore.v1.PartitionId.newBuilder(partitionId_).mergeFrom(value).buildPartial();
         } else {
           partitionId_ = value;
         }
@@ -1164,8 +1056,6 @@ public Builder mergePartitionId(com.google.datastore.v1.PartitionId value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1187,8 +1077,6 @@ public Builder clearPartitionId() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1199,13 +1087,11 @@ public Builder clearPartitionId() {
      * .google.datastore.v1.PartitionId partition_id = 2;
      */
     public com.google.datastore.v1.PartitionId.Builder getPartitionIdBuilder() {
-
+      
       onChanged();
       return getPartitionIdFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1219,14 +1105,11 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
       if (partitionIdBuilder_ != null) {
         return partitionIdBuilder_.getMessageOrBuilder();
       } else {
-        return partitionId_ == null
-            ? com.google.datastore.v1.PartitionId.getDefaultInstance()
-            : partitionId_;
+        return partitionId_ == null ?
+            com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_;
       }
     }
     /**
-     *
-     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1237,17 +1120,14 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
      * .google.datastore.v1.PartitionId partition_id = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.PartitionId,
-            com.google.datastore.v1.PartitionId.Builder,
-            com.google.datastore.v1.PartitionIdOrBuilder>
+        com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder> 
         getPartitionIdFieldBuilder() {
       if (partitionIdBuilder_ == null) {
-        partitionIdBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.PartitionId,
-                com.google.datastore.v1.PartitionId.Builder,
-                com.google.datastore.v1.PartitionIdOrBuilder>(
-                getPartitionId(), getParentForChildren(), isClean());
+        partitionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder>(
+                getPartitionId(),
+                getParentForChildren(),
+                isClean());
         partitionId_ = null;
       }
       return partitionIdBuilder_;
@@ -1255,47 +1135,34 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
 
     private com.google.datastore.v1.ReadOptions readOptions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.ReadOptions,
-            com.google.datastore.v1.ReadOptions.Builder,
-            com.google.datastore.v1.ReadOptionsOrBuilder>
-        readOptionsBuilder_;
+        com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder> readOptionsBuilder_;
     /**
-     *
-     *
      * 
      * The options for this query.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return readOptionsBuilder_ != null || readOptions_ != null; } /** - * - * *
      * The options for this query.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return The readOptions. */ public com.google.datastore.v1.ReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null - ? com.google.datastore.v1.ReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** - * - * *
      * The options for this query.
      * 
@@ -1316,15 +1183,14 @@ public Builder setReadOptions(com.google.datastore.v1.ReadOptions value) { return this; } /** - * - * *
      * The options for this query.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; */ - public Builder setReadOptions(com.google.datastore.v1.ReadOptions.Builder builderForValue) { + public Builder setReadOptions( + com.google.datastore.v1.ReadOptions.Builder builderForValue) { if (readOptionsBuilder_ == null) { readOptions_ = builderForValue.build(); onChanged(); @@ -1335,8 +1201,6 @@ public Builder setReadOptions(com.google.datastore.v1.ReadOptions.Builder builde return this; } /** - * - * *
      * The options for this query.
      * 
@@ -1347,9 +1211,7 @@ public Builder mergeReadOptions(com.google.datastore.v1.ReadOptions value) { if (readOptionsBuilder_ == null) { if (readOptions_ != null) { readOptions_ = - com.google.datastore.v1.ReadOptions.newBuilder(readOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.v1.ReadOptions.newBuilder(readOptions_).mergeFrom(value).buildPartial(); } else { readOptions_ = value; } @@ -1361,8 +1223,6 @@ public Builder mergeReadOptions(com.google.datastore.v1.ReadOptions value) { return this; } /** - * - * *
      * The options for this query.
      * 
@@ -1381,8 +1241,6 @@ public Builder clearReadOptions() { return this; } /** - * - * *
      * The options for this query.
      * 
@@ -1390,13 +1248,11 @@ public Builder clearReadOptions() { * .google.datastore.v1.ReadOptions read_options = 1; */ public com.google.datastore.v1.ReadOptions.Builder getReadOptionsBuilder() { - + onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * The options for this query.
      * 
@@ -1407,14 +1263,11 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null - ? com.google.datastore.v1.ReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? + com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; } } /** - * - * *
      * The options for this query.
      * 
@@ -1422,36 +1275,27 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { * .google.datastore.v1.ReadOptions read_options = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, - com.google.datastore.v1.ReadOptions.Builder, - com.google.datastore.v1.ReadOptionsOrBuilder> + com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, - com.google.datastore.v1.ReadOptions.Builder, - com.google.datastore.v1.ReadOptionsOrBuilder>( - getReadOptions(), getParentForChildren(), isClean()); + readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder>( + getReadOptions(), + getParentForChildren(), + isClean()); readOptions_ = null; } return readOptionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, - com.google.datastore.v1.Query.Builder, - com.google.datastore.v1.QueryOrBuilder> - queryBuilder_; + com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> queryBuilder_; /** - * - * *
      * The query to run.
      * 
* * .google.datastore.v1.Query query = 3; - * * @return Whether the query field is set. */ @java.lang.Override @@ -1459,14 +1303,11 @@ public boolean hasQuery() { return queryTypeCase_ == 3; } /** - * - * *
      * The query to run.
      * 
* * .google.datastore.v1.Query query = 3; - * * @return The query. */ @java.lang.Override @@ -1484,8 +1325,6 @@ public com.google.datastore.v1.Query getQuery() { } } /** - * - * *
      * The query to run.
      * 
@@ -1506,15 +1345,14 @@ public Builder setQuery(com.google.datastore.v1.Query value) { return this; } /** - * - * *
      * The query to run.
      * 
* * .google.datastore.v1.Query query = 3; */ - public Builder setQuery(com.google.datastore.v1.Query.Builder builderForValue) { + public Builder setQuery( + com.google.datastore.v1.Query.Builder builderForValue) { if (queryBuilder_ == null) { queryType_ = builderForValue.build(); onChanged(); @@ -1525,8 +1363,6 @@ public Builder setQuery(com.google.datastore.v1.Query.Builder builderForValue) { return this; } /** - * - * *
      * The query to run.
      * 
@@ -1535,12 +1371,10 @@ public Builder setQuery(com.google.datastore.v1.Query.Builder builderForValue) { */ public Builder mergeQuery(com.google.datastore.v1.Query value) { if (queryBuilder_ == null) { - if (queryTypeCase_ == 3 - && queryType_ != com.google.datastore.v1.Query.getDefaultInstance()) { - queryType_ = - com.google.datastore.v1.Query.newBuilder((com.google.datastore.v1.Query) queryType_) - .mergeFrom(value) - .buildPartial(); + if (queryTypeCase_ == 3 && + queryType_ != com.google.datastore.v1.Query.getDefaultInstance()) { + queryType_ = com.google.datastore.v1.Query.newBuilder((com.google.datastore.v1.Query) queryType_) + .mergeFrom(value).buildPartial(); } else { queryType_ = value; } @@ -1556,8 +1390,6 @@ public Builder mergeQuery(com.google.datastore.v1.Query value) { return this; } /** - * - * *
      * The query to run.
      * 
@@ -1581,8 +1413,6 @@ public Builder clearQuery() { return this; } /** - * - * *
      * The query to run.
      * 
@@ -1593,8 +1423,6 @@ public com.google.datastore.v1.Query.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** - * - * *
      * The query to run.
      * 
@@ -1613,8 +1441,6 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { } } /** - * - * *
      * The query to run.
      * 
@@ -1622,42 +1448,32 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { * .google.datastore.v1.Query query = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, - com.google.datastore.v1.Query.Builder, - com.google.datastore.v1.QueryOrBuilder> + com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { if (!(queryTypeCase_ == 3)) { queryType_ = com.google.datastore.v1.Query.getDefaultInstance(); } - queryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, - com.google.datastore.v1.Query.Builder, - com.google.datastore.v1.QueryOrBuilder>( - (com.google.datastore.v1.Query) queryType_, getParentForChildren(), isClean()); + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder>( + (com.google.datastore.v1.Query) queryType_, + getParentForChildren(), + isClean()); queryType_ = null; } queryTypeCase_ = 3; - onChanged(); - ; + onChanged();; return queryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.GqlQuery, - com.google.datastore.v1.GqlQuery.Builder, - com.google.datastore.v1.GqlQueryOrBuilder> - gqlQueryBuilder_; + com.google.datastore.v1.GqlQuery, com.google.datastore.v1.GqlQuery.Builder, com.google.datastore.v1.GqlQueryOrBuilder> gqlQueryBuilder_; /** - * - * *
      * The GQL query to run.
      * 
* * .google.datastore.v1.GqlQuery gql_query = 7; - * * @return Whether the gqlQuery field is set. */ @java.lang.Override @@ -1665,14 +1481,11 @@ public boolean hasGqlQuery() { return queryTypeCase_ == 7; } /** - * - * *
      * The GQL query to run.
      * 
* * .google.datastore.v1.GqlQuery gql_query = 7; - * * @return The gqlQuery. */ @java.lang.Override @@ -1690,8 +1503,6 @@ public com.google.datastore.v1.GqlQuery getGqlQuery() { } } /** - * - * *
      * The GQL query to run.
      * 
@@ -1712,15 +1523,14 @@ public Builder setGqlQuery(com.google.datastore.v1.GqlQuery value) { return this; } /** - * - * *
      * The GQL query to run.
      * 
* * .google.datastore.v1.GqlQuery gql_query = 7; */ - public Builder setGqlQuery(com.google.datastore.v1.GqlQuery.Builder builderForValue) { + public Builder setGqlQuery( + com.google.datastore.v1.GqlQuery.Builder builderForValue) { if (gqlQueryBuilder_ == null) { queryType_ = builderForValue.build(); onChanged(); @@ -1731,8 +1541,6 @@ public Builder setGqlQuery(com.google.datastore.v1.GqlQuery.Builder builderForVa return this; } /** - * - * *
      * The GQL query to run.
      * 
@@ -1741,13 +1549,10 @@ public Builder setGqlQuery(com.google.datastore.v1.GqlQuery.Builder builderForVa */ public Builder mergeGqlQuery(com.google.datastore.v1.GqlQuery value) { if (gqlQueryBuilder_ == null) { - if (queryTypeCase_ == 7 - && queryType_ != com.google.datastore.v1.GqlQuery.getDefaultInstance()) { - queryType_ = - com.google.datastore.v1.GqlQuery.newBuilder( - (com.google.datastore.v1.GqlQuery) queryType_) - .mergeFrom(value) - .buildPartial(); + if (queryTypeCase_ == 7 && + queryType_ != com.google.datastore.v1.GqlQuery.getDefaultInstance()) { + queryType_ = com.google.datastore.v1.GqlQuery.newBuilder((com.google.datastore.v1.GqlQuery) queryType_) + .mergeFrom(value).buildPartial(); } else { queryType_ = value; } @@ -1763,8 +1568,6 @@ public Builder mergeGqlQuery(com.google.datastore.v1.GqlQuery value) { return this; } /** - * - * *
      * The GQL query to run.
      * 
@@ -1788,8 +1591,6 @@ public Builder clearGqlQuery() { return this; } /** - * - * *
      * The GQL query to run.
      * 
@@ -1800,8 +1601,6 @@ public com.google.datastore.v1.GqlQuery.Builder getGqlQueryBuilder() { return getGqlQueryFieldBuilder().getBuilder(); } /** - * - * *
      * The GQL query to run.
      * 
@@ -1820,8 +1619,6 @@ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() { } } /** - * - * *
      * The GQL query to run.
      * 
@@ -1829,30 +1626,26 @@ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() { * .google.datastore.v1.GqlQuery gql_query = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.GqlQuery, - com.google.datastore.v1.GqlQuery.Builder, - com.google.datastore.v1.GqlQueryOrBuilder> + com.google.datastore.v1.GqlQuery, com.google.datastore.v1.GqlQuery.Builder, com.google.datastore.v1.GqlQueryOrBuilder> getGqlQueryFieldBuilder() { if (gqlQueryBuilder_ == null) { if (!(queryTypeCase_ == 7)) { queryType_ = com.google.datastore.v1.GqlQuery.getDefaultInstance(); } - gqlQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.GqlQuery, - com.google.datastore.v1.GqlQuery.Builder, - com.google.datastore.v1.GqlQueryOrBuilder>( - (com.google.datastore.v1.GqlQuery) queryType_, getParentForChildren(), isClean()); + gqlQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.GqlQuery, com.google.datastore.v1.GqlQuery.Builder, com.google.datastore.v1.GqlQueryOrBuilder>( + (com.google.datastore.v1.GqlQuery) queryType_, + getParentForChildren(), + isClean()); queryType_ = null; } queryTypeCase_ = 7; - onChanged(); - ; + onChanged();; return gqlQueryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1862,12 +1655,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.RunQueryRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.RunQueryRequest) private static final com.google.datastore.v1.RunQueryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.RunQueryRequest(); } @@ -1876,16 +1669,16 @@ public static com.google.datastore.v1.RunQueryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunQueryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunQueryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1900,4 +1693,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.RunQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java index 3b54516e3..8347d9f43 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface RunQueryRequestOrBuilder - extends +public interface RunQueryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.RunQueryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -59,13 +36,10 @@ public interface RunQueryRequestOrBuilder
    * 
* * .google.datastore.v1.PartitionId partition_id = 2; - * * @return Whether the partitionId field is set. */ boolean hasPartitionId(); /** - * - * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -74,13 +48,10 @@ public interface RunQueryRequestOrBuilder
    * 
* * .google.datastore.v1.PartitionId partition_id = 2; - * * @return The partitionId. */ com.google.datastore.v1.PartitionId getPartitionId(); /** - * - * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -93,32 +64,24 @@ public interface RunQueryRequestOrBuilder
   com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder();
 
   /**
-   *
-   *
    * 
    * The options for this query.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** - * - * *
    * The options for this query.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; - * * @return The readOptions. */ com.google.datastore.v1.ReadOptions getReadOptions(); /** - * - * *
    * The options for this query.
    * 
@@ -128,32 +91,24 @@ public interface RunQueryRequestOrBuilder com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder(); /** - * - * *
    * The query to run.
    * 
* * .google.datastore.v1.Query query = 3; - * * @return Whether the query field is set. */ boolean hasQuery(); /** - * - * *
    * The query to run.
    * 
* * .google.datastore.v1.Query query = 3; - * * @return The query. */ com.google.datastore.v1.Query getQuery(); /** - * - * *
    * The query to run.
    * 
@@ -163,32 +118,24 @@ public interface RunQueryRequestOrBuilder com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder(); /** - * - * *
    * The GQL query to run.
    * 
* * .google.datastore.v1.GqlQuery gql_query = 7; - * * @return Whether the gqlQuery field is set. */ boolean hasGqlQuery(); /** - * - * *
    * The GQL query to run.
    * 
* * .google.datastore.v1.GqlQuery gql_query = 7; - * * @return The gqlQuery. */ com.google.datastore.v1.GqlQuery getGqlQuery(); /** - * - * *
    * The GQL query to run.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java similarity index 70% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java index cc025af6b..fefa01e6a 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * The response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
  * 
* * Protobuf type {@code google.datastore.v1.RunQueryResponse} */ -public final class RunQueryResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunQueryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.RunQueryResponse) RunQueryResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunQueryResponse.newBuilder() to construct. private RunQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RunQueryResponse() {} + private RunQueryResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunQueryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RunQueryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,43 +52,39 @@ private RunQueryResponse( case 0: done = true; break; - case 10: - { - com.google.datastore.v1.QueryResultBatch.Builder subBuilder = null; - if (batch_ != null) { - subBuilder = batch_.toBuilder(); - } - batch_ = - input.readMessage( - com.google.datastore.v1.QueryResultBatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(batch_); - batch_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.datastore.v1.QueryResultBatch.Builder subBuilder = null; + if (batch_ != null) { + subBuilder = batch_.toBuilder(); + } + batch_ = input.readMessage(com.google.datastore.v1.QueryResultBatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(batch_); + batch_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.datastore.v1.Query.Builder subBuilder = null; + if (query_ != null) { + subBuilder = query_.toBuilder(); } - case 18: - { - com.google.datastore.v1.Query.Builder subBuilder = null; - if (query_ != null) { - subBuilder = query_.toBuilder(); - } - query_ = input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(query_); - query_ = subBuilder.buildPartial(); - } - - break; + query_ = input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(query_); + query_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,39 +92,34 @@ private RunQueryResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RunQueryResponse.class, - com.google.datastore.v1.RunQueryResponse.Builder.class); + com.google.datastore.v1.RunQueryResponse.class, com.google.datastore.v1.RunQueryResponse.Builder.class); } public static final int BATCH_FIELD_NUMBER = 1; private com.google.datastore.v1.QueryResultBatch batch_; /** - * - * *
    * A batch of query results (always present).
    * 
* * .google.datastore.v1.QueryResultBatch batch = 1; - * * @return Whether the batch field is set. */ @java.lang.Override @@ -152,14 +127,11 @@ public boolean hasBatch() { return batch_ != null; } /** - * - * *
    * A batch of query results (always present).
    * 
* * .google.datastore.v1.QueryResultBatch batch = 1; - * * @return The batch. */ @java.lang.Override @@ -167,8 +139,6 @@ public com.google.datastore.v1.QueryResultBatch getBatch() { return batch_ == null ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_; } /** - * - * *
    * A batch of query results (always present).
    * 
@@ -183,14 +153,11 @@ public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() { public static final int QUERY_FIELD_NUMBER = 2; private com.google.datastore.v1.Query query_; /** - * - * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
* * .google.datastore.v1.Query query = 2; - * * @return Whether the query field is set. */ @java.lang.Override @@ -198,14 +165,11 @@ public boolean hasQuery() { return query_ != null; } /** - * - * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
* * .google.datastore.v1.Query query = 2; - * * @return The query. */ @java.lang.Override @@ -213,8 +177,6 @@ public com.google.datastore.v1.Query getQuery() { return query_ == null ? com.google.datastore.v1.Query.getDefaultInstance() : query_; } /** - * - * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
@@ -227,7 +189,6 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (batch_ != null) { output.writeMessage(1, getBatch()); } @@ -256,10 +218,12 @@ public int getSerializedSize() { size = 0; if (batch_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBatch()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBatch()); } if (query_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQuery()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,7 +233,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.RunQueryResponse)) { return super.equals(obj); @@ -278,11 +242,13 @@ public boolean equals(final java.lang.Object obj) { if (hasBatch() != other.hasBatch()) return false; if (hasBatch()) { - if (!getBatch().equals(other.getBatch())) return false; + if (!getBatch() + .equals(other.getBatch())) return false; } if (hasQuery() != other.hasQuery()) return false; if (hasQuery()) { - if (!getQuery().equals(other.getQuery())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -308,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.RunQueryResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.RunQueryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RunQueryResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RunQueryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RunQueryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RunQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.RunQueryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.RunQueryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.RunQueryResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.RunQueryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.RunQueryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.RunQueryResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.RunQueryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.RunQueryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.RunQueryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
    * 
* * Protobuf type {@code google.datastore.v1.RunQueryResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.RunQueryResponse) com.google.datastore.v1.RunQueryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RunQueryResponse.class, - com.google.datastore.v1.RunQueryResponse.Builder.class); + com.google.datastore.v1.RunQueryResponse.class, com.google.datastore.v1.RunQueryResponse.Builder.class); } // Construct using com.google.datastore.v1.RunQueryResponse.newBuilder() @@ -436,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_RunQueryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor; } @java.lang.Override @@ -485,8 +443,7 @@ public com.google.datastore.v1.RunQueryResponse build() { @java.lang.Override public com.google.datastore.v1.RunQueryResponse buildPartial() { - com.google.datastore.v1.RunQueryResponse result = - new com.google.datastore.v1.RunQueryResponse(this); + com.google.datastore.v1.RunQueryResponse result = new com.google.datastore.v1.RunQueryResponse(this); if (batchBuilder_ == null) { result.batch_ = batch_; } else { @@ -505,39 +462,38 @@ public com.google.datastore.v1.RunQueryResponse 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.datastore.v1.RunQueryResponse) { - return mergeFrom((com.google.datastore.v1.RunQueryResponse) other); + return mergeFrom((com.google.datastore.v1.RunQueryResponse)other); } else { super.mergeFrom(other); return this; @@ -583,47 +539,34 @@ public Builder mergeFrom( private com.google.datastore.v1.QueryResultBatch batch_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.QueryResultBatch, - com.google.datastore.v1.QueryResultBatch.Builder, - com.google.datastore.v1.QueryResultBatchOrBuilder> - batchBuilder_; + com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder> batchBuilder_; /** - * - * *
      * A batch of query results (always present).
      * 
* * .google.datastore.v1.QueryResultBatch batch = 1; - * * @return Whether the batch field is set. */ public boolean hasBatch() { return batchBuilder_ != null || batch_ != null; } /** - * - * *
      * A batch of query results (always present).
      * 
* * .google.datastore.v1.QueryResultBatch batch = 1; - * * @return The batch. */ public com.google.datastore.v1.QueryResultBatch getBatch() { if (batchBuilder_ == null) { - return batch_ == null - ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() - : batch_; + return batch_ == null ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_; } else { return batchBuilder_.getMessage(); } } /** - * - * *
      * A batch of query results (always present).
      * 
@@ -644,15 +587,14 @@ public Builder setBatch(com.google.datastore.v1.QueryResultBatch value) { return this; } /** - * - * *
      * A batch of query results (always present).
      * 
* * .google.datastore.v1.QueryResultBatch batch = 1; */ - public Builder setBatch(com.google.datastore.v1.QueryResultBatch.Builder builderForValue) { + public Builder setBatch( + com.google.datastore.v1.QueryResultBatch.Builder builderForValue) { if (batchBuilder_ == null) { batch_ = builderForValue.build(); onChanged(); @@ -663,8 +605,6 @@ public Builder setBatch(com.google.datastore.v1.QueryResultBatch.Builder builder return this; } /** - * - * *
      * A batch of query results (always present).
      * 
@@ -675,9 +615,7 @@ public Builder mergeBatch(com.google.datastore.v1.QueryResultBatch value) { if (batchBuilder_ == null) { if (batch_ != null) { batch_ = - com.google.datastore.v1.QueryResultBatch.newBuilder(batch_) - .mergeFrom(value) - .buildPartial(); + com.google.datastore.v1.QueryResultBatch.newBuilder(batch_).mergeFrom(value).buildPartial(); } else { batch_ = value; } @@ -689,8 +627,6 @@ public Builder mergeBatch(com.google.datastore.v1.QueryResultBatch value) { return this; } /** - * - * *
      * A batch of query results (always present).
      * 
@@ -709,8 +645,6 @@ public Builder clearBatch() { return this; } /** - * - * *
      * A batch of query results (always present).
      * 
@@ -718,13 +652,11 @@ public Builder clearBatch() { * .google.datastore.v1.QueryResultBatch batch = 1; */ public com.google.datastore.v1.QueryResultBatch.Builder getBatchBuilder() { - + onChanged(); return getBatchFieldBuilder().getBuilder(); } /** - * - * *
      * A batch of query results (always present).
      * 
@@ -735,14 +667,11 @@ public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() { if (batchBuilder_ != null) { return batchBuilder_.getMessageOrBuilder(); } else { - return batch_ == null - ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() - : batch_; + return batch_ == null ? + com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_; } } /** - * - * *
      * A batch of query results (always present).
      * 
@@ -750,17 +679,14 @@ public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() { * .google.datastore.v1.QueryResultBatch batch = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.QueryResultBatch, - com.google.datastore.v1.QueryResultBatch.Builder, - com.google.datastore.v1.QueryResultBatchOrBuilder> + com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder> getBatchFieldBuilder() { if (batchBuilder_ == null) { - batchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.QueryResultBatch, - com.google.datastore.v1.QueryResultBatch.Builder, - com.google.datastore.v1.QueryResultBatchOrBuilder>( - getBatch(), getParentForChildren(), isClean()); + batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder>( + getBatch(), + getParentForChildren(), + isClean()); batch_ = null; } return batchBuilder_; @@ -768,33 +694,24 @@ public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() { private com.google.datastore.v1.Query query_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, - com.google.datastore.v1.Query.Builder, - com.google.datastore.v1.QueryOrBuilder> - queryBuilder_; + com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> queryBuilder_; /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
* * .google.datastore.v1.Query query = 2; - * * @return Whether the query field is set. */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
* * .google.datastore.v1.Query query = 2; - * * @return The query. */ public com.google.datastore.v1.Query getQuery() { @@ -805,8 +722,6 @@ public com.google.datastore.v1.Query getQuery() { } } /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -827,15 +742,14 @@ public Builder setQuery(com.google.datastore.v1.Query value) { return this; } /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
* * .google.datastore.v1.Query query = 2; */ - public Builder setQuery(com.google.datastore.v1.Query.Builder builderForValue) { + public Builder setQuery( + com.google.datastore.v1.Query.Builder builderForValue) { if (queryBuilder_ == null) { query_ = builderForValue.build(); onChanged(); @@ -846,8 +760,6 @@ public Builder setQuery(com.google.datastore.v1.Query.Builder builderForValue) { return this; } /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -857,7 +769,8 @@ public Builder setQuery(com.google.datastore.v1.Query.Builder builderForValue) { public Builder mergeQuery(com.google.datastore.v1.Query value) { if (queryBuilder_ == null) { if (query_ != null) { - query_ = com.google.datastore.v1.Query.newBuilder(query_).mergeFrom(value).buildPartial(); + query_ = + com.google.datastore.v1.Query.newBuilder(query_).mergeFrom(value).buildPartial(); } else { query_ = value; } @@ -869,8 +782,6 @@ public Builder mergeQuery(com.google.datastore.v1.Query value) { return this; } /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -889,8 +800,6 @@ public Builder clearQuery() { return this; } /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -898,13 +807,11 @@ public Builder clearQuery() { * .google.datastore.v1.Query query = 2; */ public com.google.datastore.v1.Query.Builder getQueryBuilder() { - + onChanged(); return getQueryFieldBuilder().getBuilder(); } /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -915,12 +822,11 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { if (queryBuilder_ != null) { return queryBuilder_.getMessageOrBuilder(); } else { - return query_ == null ? com.google.datastore.v1.Query.getDefaultInstance() : query_; + return query_ == null ? + com.google.datastore.v1.Query.getDefaultInstance() : query_; } } /** - * - * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -928,24 +834,21 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { * .google.datastore.v1.Query query = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, - com.google.datastore.v1.Query.Builder, - com.google.datastore.v1.QueryOrBuilder> + com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { - queryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, - com.google.datastore.v1.Query.Builder, - com.google.datastore.v1.QueryOrBuilder>( - getQuery(), getParentForChildren(), isClean()); + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder>( + getQuery(), + getParentForChildren(), + isClean()); query_ = null; } return queryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -955,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.RunQueryResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.RunQueryResponse) private static final com.google.datastore.v1.RunQueryResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.RunQueryResponse(); } @@ -969,16 +872,16 @@ public static com.google.datastore.v1.RunQueryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunQueryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunQueryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunQueryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -993,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.RunQueryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java index 849dc5c98..ca8abb064 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface RunQueryResponseOrBuilder - extends +public interface RunQueryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.RunQueryResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A batch of query results (always present).
    * 
* * .google.datastore.v1.QueryResultBatch batch = 1; - * * @return Whether the batch field is set. */ boolean hasBatch(); /** - * - * *
    * A batch of query results (always present).
    * 
* * .google.datastore.v1.QueryResultBatch batch = 1; - * * @return The batch. */ com.google.datastore.v1.QueryResultBatch getBatch(); /** - * - * *
    * A batch of query results (always present).
    * 
@@ -59,32 +35,24 @@ public interface RunQueryResponseOrBuilder com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder(); /** - * - * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
* * .google.datastore.v1.Query query = 2; - * * @return Whether the query field is set. */ boolean hasQuery(); /** - * - * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
* * .google.datastore.v1.Query query = 2; - * * @return The query. */ com.google.datastore.v1.Query getQuery(); /** - * - * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java similarity index 72% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java index 27a3efa73..460c6b7c7 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** - * - * *
  * Options for beginning a new transaction.
  * Transactions can be created explicitly with calls to
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.datastore.v1.TransactionOptions}
  */
-public final class TransactionOptions extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TransactionOptions extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.TransactionOptions)
     TransactionOptionsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TransactionOptions.newBuilder() to construct.
   private TransactionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TransactionOptions() {}
+  private TransactionOptions() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TransactionOptions();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TransactionOptions(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,49 +55,41 @@ private TransactionOptions(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.datastore.v1.TransactionOptions.ReadWrite.Builder subBuilder = null;
-              if (modeCase_ == 1) {
-                subBuilder =
-                    ((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_).toBuilder();
-              }
-              mode_ =
-                  input.readMessage(
-                      com.google.datastore.v1.TransactionOptions.ReadWrite.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_);
-                mode_ = subBuilder.buildPartial();
-              }
-              modeCase_ = 1;
-              break;
+          case 10: {
+            com.google.datastore.v1.TransactionOptions.ReadWrite.Builder subBuilder = null;
+            if (modeCase_ == 1) {
+              subBuilder = ((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_).toBuilder();
             }
-          case 18:
-            {
-              com.google.datastore.v1.TransactionOptions.ReadOnly.Builder subBuilder = null;
-              if (modeCase_ == 2) {
-                subBuilder =
-                    ((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_).toBuilder();
-              }
-              mode_ =
-                  input.readMessage(
-                      com.google.datastore.v1.TransactionOptions.ReadOnly.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_);
-                mode_ = subBuilder.buildPartial();
-              }
-              modeCase_ = 2;
-              break;
+            mode_ =
+                input.readMessage(com.google.datastore.v1.TransactionOptions.ReadWrite.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_);
+              mode_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            modeCase_ = 1;
+            break;
+          }
+          case 18: {
+            com.google.datastore.v1.TransactionOptions.ReadOnly.Builder subBuilder = null;
+            if (modeCase_ == 2) {
+              subBuilder = ((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_).toBuilder();
+            }
+            mode_ =
+                input.readMessage(com.google.datastore.v1.TransactionOptions.ReadOnly.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_);
+              mode_ = subBuilder.buildPartial();
+            }
+            modeCase_ = 2;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -121,80 +97,72 @@ private TransactionOptions(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.datastore.v1.DatastoreProto
-        .internal_static_google_datastore_v1_TransactionOptions_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.DatastoreProto
-        .internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable
+    return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.v1.TransactionOptions.class,
-            com.google.datastore.v1.TransactionOptions.Builder.class);
+            com.google.datastore.v1.TransactionOptions.class, com.google.datastore.v1.TransactionOptions.Builder.class);
   }
 
-  public interface ReadWriteOrBuilder
-      extends
+  public interface ReadWriteOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.datastore.v1.TransactionOptions.ReadWrite)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The transaction identifier of the transaction being retried.
      * 
* * bytes previous_transaction = 1; - * * @return The previousTransaction. */ com.google.protobuf.ByteString getPreviousTransaction(); } /** - * - * *
    * Options specific to read / write transactions.
    * 
* * Protobuf type {@code google.datastore.v1.TransactionOptions.ReadWrite} */ - public static final class ReadWrite extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReadWrite extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.TransactionOptions.ReadWrite) ReadWriteOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadWrite.newBuilder() to construct. private ReadWrite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadWrite() { previousTransaction_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadWrite(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReadWrite( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -213,18 +181,18 @@ private ReadWrite( case 0: done = true; break; - case 10: - { - previousTransaction_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + + previousTransaction_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -232,39 +200,34 @@ private ReadWrite( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.TransactionOptions.ReadWrite.class, - com.google.datastore.v1.TransactionOptions.ReadWrite.Builder.class); + com.google.datastore.v1.TransactionOptions.ReadWrite.class, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder.class); } public static final int PREVIOUS_TRANSACTION_FIELD_NUMBER = 1; private com.google.protobuf.ByteString previousTransaction_; /** - * - * *
      * The transaction identifier of the transaction being retried.
      * 
* * bytes previous_transaction = 1; - * * @return The previousTransaction. */ @java.lang.Override @@ -273,7 +236,6 @@ public com.google.protobuf.ByteString getPreviousTransaction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +247,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!previousTransaction_.isEmpty()) { output.writeBytes(1, previousTransaction_); } @@ -299,7 +262,8 @@ public int getSerializedSize() { size = 0; if (!previousTransaction_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, previousTransaction_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, previousTransaction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -309,15 +273,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.datastore.v1.TransactionOptions.ReadWrite)) { return super.equals(obj); } - com.google.datastore.v1.TransactionOptions.ReadWrite other = - (com.google.datastore.v1.TransactionOptions.ReadWrite) obj; + com.google.datastore.v1.TransactionOptions.ReadWrite other = (com.google.datastore.v1.TransactionOptions.ReadWrite) obj; - if (!getPreviousTransaction().equals(other.getPreviousTransaction())) return false; + if (!getPreviousTransaction() + .equals(other.getPreviousTransaction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,94 +301,87 @@ public int hashCode() { } public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.datastore.v1.TransactionOptions.ReadWrite prototype) { + public static Builder newBuilder(com.google.datastore.v1.TransactionOptions.ReadWrite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -434,32 +391,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Options specific to read / write transactions.
      * 
* * Protobuf type {@code google.datastore.v1.TransactionOptions.ReadWrite} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.TransactionOptions.ReadWrite) com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.TransactionOptions.ReadWrite.class, - com.google.datastore.v1.TransactionOptions.ReadWrite.Builder.class); + com.google.datastore.v1.TransactionOptions.ReadWrite.class, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder.class); } // Construct using com.google.datastore.v1.TransactionOptions.ReadWrite.newBuilder() @@ -467,15 +419,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -485,9 +438,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; } @java.lang.Override @@ -506,8 +459,7 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite build() { @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadWrite buildPartial() { - com.google.datastore.v1.TransactionOptions.ReadWrite result = - new com.google.datastore.v1.TransactionOptions.ReadWrite(this); + com.google.datastore.v1.TransactionOptions.ReadWrite result = new com.google.datastore.v1.TransactionOptions.ReadWrite(this); result.previousTransaction_ = previousTransaction_; onBuilt(); return result; @@ -517,41 +469,38 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.datastore.v1.TransactionOptions.ReadWrite) { - return mergeFrom((com.google.datastore.v1.TransactionOptions.ReadWrite) other); + return mergeFrom((com.google.datastore.v1.TransactionOptions.ReadWrite)other); } else { super.mergeFrom(other); return this; @@ -559,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.v1.TransactionOptions.ReadWrite other) { - if (other == com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) - return this; + if (other == com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) return this; if (other.getPreviousTransaction() != com.google.protobuf.ByteString.EMPTY) { setPreviousTransaction(other.getPreviousTransaction()); } @@ -583,8 +531,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.datastore.v1.TransactionOptions.ReadWrite) e.getUnfinishedMessage(); + parsedMessage = (com.google.datastore.v1.TransactionOptions.ReadWrite) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -594,17 +541,13 @@ public Builder mergeFrom( return this; } - private com.google.protobuf.ByteString previousTransaction_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString previousTransaction_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * The transaction identifier of the transaction being retried.
        * 
* * bytes previous_transaction = 1; - * * @return The previousTransaction. */ @java.lang.Override @@ -612,44 +555,37 @@ public com.google.protobuf.ByteString getPreviousTransaction() { return previousTransaction_; } /** - * - * *
        * The transaction identifier of the transaction being retried.
        * 
* * bytes previous_transaction = 1; - * * @param value The previousTransaction to set. * @return This builder for chaining. */ public Builder setPreviousTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + previousTransaction_ = value; onChanged(); return this; } /** - * - * *
        * The transaction identifier of the transaction being retried.
        * 
* * bytes previous_transaction = 1; - * * @return This builder for chaining. */ public Builder clearPreviousTransaction() { - + previousTransaction_ = getDefaultInstance().getPreviousTransaction(); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -662,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.TransactionOptions.ReadWrite) } // @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions.ReadWrite) private static final com.google.datastore.v1.TransactionOptions.ReadWrite DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.TransactionOptions.ReadWrite(); } @@ -676,16 +612,16 @@ public static com.google.datastore.v1.TransactionOptions.ReadWrite getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadWrite parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReadWrite(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadWrite parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadWrite(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -700,42 +636,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.TransactionOptions.ReadWrite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ReadOnlyOrBuilder - extends + public interface ReadOnlyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.TransactionOptions.ReadOnly) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
      * 
* * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
      * 
* * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
@@ -746,37 +674,36 @@ public interface ReadOnlyOrBuilder
     com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Options specific to read-only transactions.
    * 
* * Protobuf type {@code google.datastore.v1.TransactionOptions.ReadOnly} */ - public static final class ReadOnly extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReadOnly extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.datastore.v1.TransactionOptions.ReadOnly) ReadOnlyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadOnly.newBuilder() to construct. private ReadOnly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReadOnly() {} + private ReadOnly() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadOnly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReadOnly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -795,28 +722,26 @@ private ReadOnly( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -824,40 +749,35 @@ private ReadOnly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.TransactionOptions.ReadOnly.class, - com.google.datastore.v1.TransactionOptions.ReadOnly.Builder.class); + com.google.datastore.v1.TransactionOptions.ReadOnly.class, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder.class); } public static final int READ_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp readTime_; /** - * - * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
      * 
* * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -865,15 +785,12 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
      * 
* * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ @java.lang.Override @@ -881,8 +798,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
@@ -896,7 +811,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -908,7 +822,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (readTime_ != null) {
         output.writeMessage(1, getReadTime());
       }
@@ -922,7 +837,8 @@ public int getSerializedSize() {
 
       size = 0;
       if (readTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getReadTime());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -932,17 +848,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.datastore.v1.TransactionOptions.ReadOnly)) {
         return super.equals(obj);
       }
-      com.google.datastore.v1.TransactionOptions.ReadOnly other =
-          (com.google.datastore.v1.TransactionOptions.ReadOnly) obj;
+      com.google.datastore.v1.TransactionOptions.ReadOnly other = (com.google.datastore.v1.TransactionOptions.ReadOnly) obj;
 
       if (hasReadTime() != other.hasReadTime()) return false;
       if (hasReadTime()) {
-        if (!getReadTime().equals(other.getReadTime())) return false;
+        if (!getReadTime()
+            .equals(other.getReadTime())) return false;
       }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -965,94 +881,87 @@ public int hashCode() {
     }
 
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.datastore.v1.TransactionOptions.ReadOnly parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.datastore.v1.TransactionOptions.ReadOnly parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.datastore.v1.TransactionOptions.ReadOnly prototype) {
+    public static Builder newBuilder(com.google.datastore.v1.TransactionOptions.ReadOnly prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1062,32 +971,27 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Options specific to read-only transactions.
      * 
* * Protobuf type {@code google.datastore.v1.TransactionOptions.ReadOnly} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.TransactionOptions.ReadOnly) com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.TransactionOptions.ReadOnly.class, - com.google.datastore.v1.TransactionOptions.ReadOnly.Builder.class); + com.google.datastore.v1.TransactionOptions.ReadOnly.class, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder.class); } // Construct using com.google.datastore.v1.TransactionOptions.ReadOnly.newBuilder() @@ -1095,15 +999,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1117,9 +1022,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto - .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; } @java.lang.Override @@ -1138,8 +1043,7 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly build() { @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadOnly buildPartial() { - com.google.datastore.v1.TransactionOptions.ReadOnly result = - new com.google.datastore.v1.TransactionOptions.ReadOnly(this); + com.google.datastore.v1.TransactionOptions.ReadOnly result = new com.google.datastore.v1.TransactionOptions.ReadOnly(this); if (readTimeBuilder_ == null) { result.readTime_ = readTime_; } else { @@ -1153,41 +1057,38 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.datastore.v1.TransactionOptions.ReadOnly) { - return mergeFrom((com.google.datastore.v1.TransactionOptions.ReadOnly) other); + return mergeFrom((com.google.datastore.v1.TransactionOptions.ReadOnly)other); } else { super.mergeFrom(other); return this; @@ -1195,8 +1096,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.v1.TransactionOptions.ReadOnly other) { - if (other == com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance()) - return this; + if (other == com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance()) return this; if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } @@ -1219,8 +1119,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.datastore.v1.TransactionOptions.ReadOnly) e.getUnfinishedMessage(); + parsedMessage = (com.google.datastore.v1.TransactionOptions.ReadOnly) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1232,35 +1131,26 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
        * 
* * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
        * 
* * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1271,8 +1161,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1294,8 +1182,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1303,7 +1189,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp read_time = 1;
        */
-      public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setReadTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (readTimeBuilder_ == null) {
           readTime_ = builderForValue.build();
           onChanged();
@@ -1314,8 +1201,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
         return this;
       }
       /**
-       *
-       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1327,7 +1212,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
         if (readTimeBuilder_ == null) {
           if (readTime_ != null) {
             readTime_ =
-                com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
           } else {
             readTime_ = value;
           }
@@ -1339,8 +1224,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1360,8 +1243,6 @@ public Builder clearReadTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1370,13 +1251,11 @@ public Builder clearReadTime() {
        * .google.protobuf.Timestamp read_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+        
         onChanged();
         return getReadTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1388,12 +1267,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
         if (readTimeBuilder_ != null) {
           return readTimeBuilder_.getMessageOrBuilder();
         } else {
-          return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+          return readTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
         }
       }
       /**
-       *
-       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1402,22 +1280,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * .google.protobuf.Timestamp read_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getReadTimeFieldBuilder() {
         if (readTimeBuilder_ == null) {
-          readTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getReadTime(), getParentForChildren(), isClean());
+          readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getReadTime(),
+                  getParentForChildren(),
+                  isClean());
           readTime_ = null;
         }
         return readTimeBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1430,12 +1304,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.datastore.v1.TransactionOptions.ReadOnly)
     }
 
     // @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions.ReadOnly)
     private static final com.google.datastore.v1.TransactionOptions.ReadOnly DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.datastore.v1.TransactionOptions.ReadOnly();
     }
@@ -1444,16 +1318,16 @@ public static com.google.datastore.v1.TransactionOptions.ReadOnly getDefaultInst
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public ReadOnly parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            return new ReadOnly(input, extensionRegistry);
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public ReadOnly parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new ReadOnly(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1468,20 +1342,18 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.datastore.v1.TransactionOptions.ReadOnly getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private int modeCase_ = 0;
   private java.lang.Object mode_;
-
   public enum ModeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     READ_WRITE(1),
     READ_ONLY(2),
     MODE_NOT_SET(0);
     private final int value;
-
     private ModeCase(int value) {
       this.value = value;
     }
@@ -1497,36 +1369,30 @@ public static ModeCase valueOf(int value) {
 
     public static ModeCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return READ_WRITE;
-        case 2:
-          return READ_ONLY;
-        case 0:
-          return MODE_NOT_SET;
-        default:
-          return null;
+        case 1: return READ_WRITE;
+        case 2: return READ_ONLY;
+        case 0: return MODE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ModeCase getModeCase() {
-    return ModeCase.forNumber(modeCase_);
+  public ModeCase
+  getModeCase() {
+    return ModeCase.forNumber(
+        modeCase_);
   }
 
   public static final int READ_WRITE_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The transaction should allow both reads and writes.
    * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; - * * @return Whether the readWrite field is set. */ @java.lang.Override @@ -1534,26 +1400,21 @@ public boolean hasReadWrite() { return modeCase_ == 1; } /** - * - * *
    * The transaction should allow both reads and writes.
    * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; - * * @return The readWrite. */ @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { if (modeCase_ == 1) { - return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; + return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } /** - * - * *
    * The transaction should allow both reads and writes.
    * 
@@ -1563,21 +1424,18 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder() { if (modeCase_ == 1) { - return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; + return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } public static final int READ_ONLY_FIELD_NUMBER = 2; /** - * - * *
    * The transaction should only allow reads.
    * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; - * * @return Whether the readOnly field is set. */ @java.lang.Override @@ -1585,26 +1443,21 @@ public boolean hasReadOnly() { return modeCase_ == 2; } /** - * - * *
    * The transaction should only allow reads.
    * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; - * * @return The readOnly. */ @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadOnly getReadOnly() { if (modeCase_ == 2) { - return (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_; + return (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_; } return com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance(); } /** - * - * *
    * The transaction should only allow reads.
    * 
@@ -1614,13 +1467,12 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly getReadOnly() { @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder() { if (modeCase_ == 2) { - return (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_; + return (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_; } return com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1632,7 +1484,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (modeCase_ == 1) { output.writeMessage(1, (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_); } @@ -1649,14 +1502,12 @@ public int getSerializedSize() { size = 0; if (modeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_); } if (modeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1666,21 +1517,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.datastore.v1.TransactionOptions)) { return super.equals(obj); } - com.google.datastore.v1.TransactionOptions other = - (com.google.datastore.v1.TransactionOptions) obj; + com.google.datastore.v1.TransactionOptions other = (com.google.datastore.v1.TransactionOptions) obj; if (!getModeCase().equals(other.getModeCase())) return false; switch (modeCase_) { case 1: - if (!getReadWrite().equals(other.getReadWrite())) return false; + if (!getReadWrite() + .equals(other.getReadWrite())) return false; break; case 2: - if (!getReadOnly().equals(other.getReadOnly())) return false; + if (!getReadOnly() + .equals(other.getReadOnly())) return false; break; case 0: default: @@ -1713,104 +1565,97 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.TransactionOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.TransactionOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.TransactionOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.TransactionOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.TransactionOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.TransactionOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.TransactionOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.datastore.v1.TransactionOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.TransactionOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.TransactionOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.TransactionOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 beginning a new transaction.
    * Transactions can be created explicitly with calls to
@@ -1820,23 +1665,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.v1.TransactionOptions}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.TransactionOptions)
       com.google.datastore.v1.TransactionOptionsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.v1.DatastoreProto
-          .internal_static_google_datastore_v1_TransactionOptions_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.DatastoreProto
-          .internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable
+      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.TransactionOptions.class,
-              com.google.datastore.v1.TransactionOptions.Builder.class);
+              com.google.datastore.v1.TransactionOptions.class, com.google.datastore.v1.TransactionOptions.Builder.class);
     }
 
     // Construct using com.google.datastore.v1.TransactionOptions.newBuilder()
@@ -1844,15 +1687,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1862,9 +1706,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.v1.DatastoreProto
-          .internal_static_google_datastore_v1_TransactionOptions_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_descriptor;
     }
 
     @java.lang.Override
@@ -1883,8 +1727,7 @@ public com.google.datastore.v1.TransactionOptions build() {
 
     @java.lang.Override
     public com.google.datastore.v1.TransactionOptions buildPartial() {
-      com.google.datastore.v1.TransactionOptions result =
-          new com.google.datastore.v1.TransactionOptions(this);
+      com.google.datastore.v1.TransactionOptions result = new com.google.datastore.v1.TransactionOptions(this);
       if (modeCase_ == 1) {
         if (readWriteBuilder_ == null) {
           result.mode_ = mode_;
@@ -1908,39 +1751,38 @@ public com.google.datastore.v1.TransactionOptions 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.datastore.v1.TransactionOptions) {
-        return mergeFrom((com.google.datastore.v1.TransactionOptions) other);
+        return mergeFrom((com.google.datastore.v1.TransactionOptions)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1950,20 +1792,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.datastore.v1.TransactionOptions other) {
       if (other == com.google.datastore.v1.TransactionOptions.getDefaultInstance()) return this;
       switch (other.getModeCase()) {
-        case READ_WRITE:
-          {
-            mergeReadWrite(other.getReadWrite());
-            break;
-          }
-        case READ_ONLY:
-          {
-            mergeReadOnly(other.getReadOnly());
-            break;
-          }
-        case MODE_NOT_SET:
-          {
-            break;
-          }
+        case READ_WRITE: {
+          mergeReadWrite(other.getReadWrite());
+          break;
+        }
+        case READ_ONLY: {
+          mergeReadOnly(other.getReadOnly());
+          break;
+        }
+        case MODE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1993,12 +1832,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int modeCase_ = 0;
     private java.lang.Object mode_;
-
-    public ModeCase getModeCase() {
-      return ModeCase.forNumber(modeCase_);
+    public ModeCase
+        getModeCase() {
+      return ModeCase.forNumber(
+          modeCase_);
     }
 
     public Builder clearMode() {
@@ -2008,20 +1847,15 @@ public Builder clearMode() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.TransactionOptions.ReadWrite,
-            com.google.datastore.v1.TransactionOptions.ReadWrite.Builder,
-            com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder>
-        readWriteBuilder_;
+        com.google.datastore.v1.TransactionOptions.ReadWrite, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder> readWriteBuilder_;
     /**
-     *
-     *
      * 
      * The transaction should allow both reads and writes.
      * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; - * * @return Whether the readWrite field is set. */ @java.lang.Override @@ -2029,14 +1863,11 @@ public boolean hasReadWrite() { return modeCase_ == 1; } /** - * - * *
      * The transaction should allow both reads and writes.
      * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; - * * @return The readWrite. */ @java.lang.Override @@ -2054,8 +1885,6 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { } } /** - * - * *
      * The transaction should allow both reads and writes.
      * 
@@ -2076,8 +1905,6 @@ public Builder setReadWrite(com.google.datastore.v1.TransactionOptions.ReadWrite return this; } /** - * - * *
      * The transaction should allow both reads and writes.
      * 
@@ -2096,8 +1923,6 @@ public Builder setReadWrite( return this; } /** - * - * *
      * The transaction should allow both reads and writes.
      * 
@@ -2106,13 +1931,10 @@ public Builder setReadWrite( */ public Builder mergeReadWrite(com.google.datastore.v1.TransactionOptions.ReadWrite value) { if (readWriteBuilder_ == null) { - if (modeCase_ == 1 - && mode_ != com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) { - mode_ = - com.google.datastore.v1.TransactionOptions.ReadWrite.newBuilder( - (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_) - .mergeFrom(value) - .buildPartial(); + if (modeCase_ == 1 && + mode_ != com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) { + mode_ = com.google.datastore.v1.TransactionOptions.ReadWrite.newBuilder((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_) + .mergeFrom(value).buildPartial(); } else { mode_ = value; } @@ -2128,8 +1950,6 @@ public Builder mergeReadWrite(com.google.datastore.v1.TransactionOptions.ReadWri return this; } /** - * - * *
      * The transaction should allow both reads and writes.
      * 
@@ -2153,8 +1973,6 @@ public Builder clearReadWrite() { return this; } /** - * - * *
      * The transaction should allow both reads and writes.
      * 
@@ -2165,8 +1983,6 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite.Builder getReadWrite return getReadWriteFieldBuilder().getBuilder(); } /** - * - * *
      * The transaction should allow both reads and writes.
      * 
@@ -2185,8 +2001,6 @@ public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWrit } } /** - * - * *
      * The transaction should allow both reads and writes.
      * 
@@ -2194,44 +2008,32 @@ public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWrit * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadWrite, - com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, - com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder> + com.google.datastore.v1.TransactionOptions.ReadWrite, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder> getReadWriteFieldBuilder() { if (readWriteBuilder_ == null) { if (!(modeCase_ == 1)) { mode_ = com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } - readWriteBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadWrite, - com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, - com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder>( + readWriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.TransactionOptions.ReadWrite, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder>( (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_, getParentForChildren(), isClean()); mode_ = null; } modeCase_ = 1; - onChanged(); - ; + onChanged();; return readWriteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadOnly, - com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, - com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder> - readOnlyBuilder_; + com.google.datastore.v1.TransactionOptions.ReadOnly, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder> readOnlyBuilder_; /** - * - * *
      * The transaction should only allow reads.
      * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; - * * @return Whether the readOnly field is set. */ @java.lang.Override @@ -2239,14 +2041,11 @@ public boolean hasReadOnly() { return modeCase_ == 2; } /** - * - * *
      * The transaction should only allow reads.
      * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; - * * @return The readOnly. */ @java.lang.Override @@ -2264,8 +2063,6 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly getReadOnly() { } } /** - * - * *
      * The transaction should only allow reads.
      * 
@@ -2286,8 +2083,6 @@ public Builder setReadOnly(com.google.datastore.v1.TransactionOptions.ReadOnly v return this; } /** - * - * *
      * The transaction should only allow reads.
      * 
@@ -2306,8 +2101,6 @@ public Builder setReadOnly( return this; } /** - * - * *
      * The transaction should only allow reads.
      * 
@@ -2316,13 +2109,10 @@ public Builder setReadOnly( */ public Builder mergeReadOnly(com.google.datastore.v1.TransactionOptions.ReadOnly value) { if (readOnlyBuilder_ == null) { - if (modeCase_ == 2 - && mode_ != com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance()) { - mode_ = - com.google.datastore.v1.TransactionOptions.ReadOnly.newBuilder( - (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_) - .mergeFrom(value) - .buildPartial(); + if (modeCase_ == 2 && + mode_ != com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance()) { + mode_ = com.google.datastore.v1.TransactionOptions.ReadOnly.newBuilder((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_) + .mergeFrom(value).buildPartial(); } else { mode_ = value; } @@ -2338,8 +2128,6 @@ public Builder mergeReadOnly(com.google.datastore.v1.TransactionOptions.ReadOnly return this; } /** - * - * *
      * The transaction should only allow reads.
      * 
@@ -2363,8 +2151,6 @@ public Builder clearReadOnly() { return this; } /** - * - * *
      * The transaction should only allow reads.
      * 
@@ -2375,8 +2161,6 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly.Builder getReadOnlyBu return getReadOnlyFieldBuilder().getBuilder(); } /** - * - * *
      * The transaction should only allow reads.
      * 
@@ -2395,8 +2179,6 @@ public com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder getReadOnlyO } } /** - * - * *
      * The transaction should only allow reads.
      * 
@@ -2404,32 +2186,26 @@ public com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder getReadOnlyO * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadOnly, - com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, - com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder> + com.google.datastore.v1.TransactionOptions.ReadOnly, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder> getReadOnlyFieldBuilder() { if (readOnlyBuilder_ == null) { if (!(modeCase_ == 2)) { mode_ = com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance(); } - readOnlyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadOnly, - com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, - com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder>( + readOnlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.TransactionOptions.ReadOnly, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder>( (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_, getParentForChildren(), isClean()); mode_ = null; } modeCase_ = 2; - onChanged(); - ; + onChanged();; return readOnlyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2439,12 +2215,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.TransactionOptions) } // @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions) private static final com.google.datastore.v1.TransactionOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.TransactionOptions(); } @@ -2453,16 +2229,16 @@ public static com.google.datastore.v1.TransactionOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransactionOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2477,4 +2253,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.TransactionOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java similarity index 72% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java index a716d733f..494e99246 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface TransactionOptionsOrBuilder - extends +public interface TransactionOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.TransactionOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The transaction should allow both reads and writes.
    * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; - * * @return Whether the readWrite field is set. */ boolean hasReadWrite(); /** - * - * *
    * The transaction should allow both reads and writes.
    * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; - * * @return The readWrite. */ com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite(); /** - * - * *
    * The transaction should allow both reads and writes.
    * 
@@ -59,32 +35,24 @@ public interface TransactionOptionsOrBuilder com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder(); /** - * - * *
    * The transaction should only allow reads.
    * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; - * * @return Whether the readOnly field is set. */ boolean hasReadOnly(); /** - * - * *
    * The transaction should only allow reads.
    * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; - * * @return The readOnly. */ com.google.datastore.v1.TransactionOptions.ReadOnly getReadOnly(); /** - * - * *
    * The transaction should only allow reads.
    * 
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java similarity index 75% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java index 9c1dc9ae8..5351881de 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/entity.proto package com.google.datastore.v1; /** - * - * *
  * A message that can hold any of the supported value types and associated
  * metadata.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.datastore.v1.Value}
  */
-public final class Value extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Value extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.Value)
     ValueOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Value.newBuilder() to construct.
   private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Value() {}
+  private Value() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Value();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Value(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,135 +53,125 @@ private Value(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              valueType_ = input.readBool();
-              valueTypeCase_ = 1;
-              break;
-            }
-          case 16:
-            {
-              valueType_ = input.readInt64();
-              valueTypeCase_ = 2;
-              break;
-            }
-          case 25:
-            {
-              valueType_ = input.readDouble();
-              valueTypeCase_ = 3;
-              break;
-            }
-          case 42:
-            {
-              com.google.datastore.v1.Key.Builder subBuilder = null;
-              if (valueTypeCase_ == 5) {
-                subBuilder = ((com.google.datastore.v1.Key) valueType_).toBuilder();
-              }
-              valueType_ =
-                  input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.datastore.v1.Key) valueType_);
-                valueType_ = subBuilder.buildPartial();
-              }
-              valueTypeCase_ = 5;
-              break;
+          case 8: {
+            valueType_ = input.readBool();
+            valueTypeCase_ = 1;
+            break;
+          }
+          case 16: {
+            valueType_ = input.readInt64();
+            valueTypeCase_ = 2;
+            break;
+          }
+          case 25: {
+            valueType_ = input.readDouble();
+            valueTypeCase_ = 3;
+            break;
+          }
+          case 42: {
+            com.google.datastore.v1.Key.Builder subBuilder = null;
+            if (valueTypeCase_ == 5) {
+              subBuilder = ((com.google.datastore.v1.Key) valueType_).toBuilder();
             }
-          case 50:
-            {
-              com.google.datastore.v1.Entity.Builder subBuilder = null;
-              if (valueTypeCase_ == 6) {
-                subBuilder = ((com.google.datastore.v1.Entity) valueType_).toBuilder();
-              }
-              valueType_ =
-                  input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.datastore.v1.Entity) valueType_);
-                valueType_ = subBuilder.buildPartial();
-              }
-              valueTypeCase_ = 6;
-              break;
+            valueType_ =
+                input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.datastore.v1.Key) valueType_);
+              valueType_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              com.google.type.LatLng.Builder subBuilder = null;
-              if (valueTypeCase_ == 8) {
-                subBuilder = ((com.google.type.LatLng) valueType_).toBuilder();
-              }
-              valueType_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.type.LatLng) valueType_);
-                valueType_ = subBuilder.buildPartial();
-              }
-              valueTypeCase_ = 8;
-              break;
+            valueTypeCase_ = 5;
+            break;
+          }
+          case 50: {
+            com.google.datastore.v1.Entity.Builder subBuilder = null;
+            if (valueTypeCase_ == 6) {
+              subBuilder = ((com.google.datastore.v1.Entity) valueType_).toBuilder();
             }
-          case 74:
-            {
-              com.google.datastore.v1.ArrayValue.Builder subBuilder = null;
-              if (valueTypeCase_ == 9) {
-                subBuilder = ((com.google.datastore.v1.ArrayValue) valueType_).toBuilder();
-              }
-              valueType_ =
-                  input.readMessage(com.google.datastore.v1.ArrayValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.datastore.v1.ArrayValue) valueType_);
-                valueType_ = subBuilder.buildPartial();
-              }
-              valueTypeCase_ = 9;
-              break;
+            valueType_ =
+                input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.datastore.v1.Entity) valueType_);
+              valueType_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (valueTypeCase_ == 10) {
-                subBuilder = ((com.google.protobuf.Timestamp) valueType_).toBuilder();
-              }
-              valueType_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.protobuf.Timestamp) valueType_);
-                valueType_ = subBuilder.buildPartial();
-              }
-              valueTypeCase_ = 10;
-              break;
+            valueTypeCase_ = 6;
+            break;
+          }
+          case 66: {
+            com.google.type.LatLng.Builder subBuilder = null;
+            if (valueTypeCase_ == 8) {
+              subBuilder = ((com.google.type.LatLng) valueType_).toBuilder();
             }
-          case 88:
-            {
-              int rawValue = input.readEnum();
-              valueTypeCase_ = 11;
-              valueType_ = rawValue;
-              break;
+            valueType_ =
+                input.readMessage(com.google.type.LatLng.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.type.LatLng) valueType_);
+              valueType_ = subBuilder.buildPartial();
             }
-          case 112:
-            {
-              meaning_ = input.readInt32();
-              break;
+            valueTypeCase_ = 8;
+            break;
+          }
+          case 74: {
+            com.google.datastore.v1.ArrayValue.Builder subBuilder = null;
+            if (valueTypeCase_ == 9) {
+              subBuilder = ((com.google.datastore.v1.ArrayValue) valueType_).toBuilder();
             }
-          case 138:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              valueTypeCase_ = 17;
-              valueType_ = s;
-              break;
+            valueType_ =
+                input.readMessage(com.google.datastore.v1.ArrayValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.datastore.v1.ArrayValue) valueType_);
+              valueType_ = subBuilder.buildPartial();
             }
-          case 146:
-            {
-              valueType_ = input.readBytes();
-              valueTypeCase_ = 18;
-              break;
+            valueTypeCase_ = 9;
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (valueTypeCase_ == 10) {
+              subBuilder = ((com.google.protobuf.Timestamp) valueType_).toBuilder();
             }
-          case 152:
-            {
-              excludeFromIndexes_ = input.readBool();
-              break;
+            valueType_ =
+                input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.protobuf.Timestamp) valueType_);
+              valueType_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            valueTypeCase_ = 10;
+            break;
+          }
+          case 88: {
+            int rawValue = input.readEnum();
+            valueTypeCase_ = 11;
+            valueType_ = rawValue;
+            break;
+          }
+          case 112: {
+
+            meaning_ = input.readInt32();
+            break;
+          }
+          case 138: {
+            java.lang.String s = input.readStringRequireUtf8();
+            valueTypeCase_ = 17;
+            valueType_ = s;
+            break;
+          }
+          case 146: {
+            valueType_ = input.readBytes();
+            valueTypeCase_ = 18;
+            break;
+          }
+          case 152: {
+
+            excludeFromIndexes_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -205,32 +179,30 @@ private Value(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.EntityProto
-        .internal_static_google_datastore_v1_Value_fieldAccessorTable
+    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.datastore.v1.Value.class, com.google.datastore.v1.Value.Builder.class);
   }
 
   private int valueTypeCase_ = 0;
   private java.lang.Object valueType_;
-
   public enum ValueTypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NULL_VALUE(11),
     BOOLEAN_VALUE(1),
@@ -245,7 +217,6 @@ public enum ValueTypeCase
     ARRAY_VALUE(9),
     VALUETYPE_NOT_SET(0);
     private final int value;
-
     private ValueTypeCase(int value) {
       this.value = value;
     }
@@ -261,68 +232,50 @@ public static ValueTypeCase valueOf(int value) {
 
     public static ValueTypeCase forNumber(int value) {
       switch (value) {
-        case 11:
-          return NULL_VALUE;
-        case 1:
-          return BOOLEAN_VALUE;
-        case 2:
-          return INTEGER_VALUE;
-        case 3:
-          return DOUBLE_VALUE;
-        case 10:
-          return TIMESTAMP_VALUE;
-        case 5:
-          return KEY_VALUE;
-        case 17:
-          return STRING_VALUE;
-        case 18:
-          return BLOB_VALUE;
-        case 8:
-          return GEO_POINT_VALUE;
-        case 6:
-          return ENTITY_VALUE;
-        case 9:
-          return ARRAY_VALUE;
-        case 0:
-          return VALUETYPE_NOT_SET;
-        default:
-          return null;
+        case 11: return NULL_VALUE;
+        case 1: return BOOLEAN_VALUE;
+        case 2: return INTEGER_VALUE;
+        case 3: return DOUBLE_VALUE;
+        case 10: return TIMESTAMP_VALUE;
+        case 5: return KEY_VALUE;
+        case 17: return STRING_VALUE;
+        case 18: return BLOB_VALUE;
+        case 8: return GEO_POINT_VALUE;
+        case 6: return ENTITY_VALUE;
+        case 9: return ARRAY_VALUE;
+        case 0: return VALUETYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ValueTypeCase getValueTypeCase() {
-    return ValueTypeCase.forNumber(valueTypeCase_);
+  public ValueTypeCase
+  getValueTypeCase() {
+    return ValueTypeCase.forNumber(
+        valueTypeCase_);
   }
 
   public static final int NULL_VALUE_FIELD_NUMBER = 11;
   /**
-   *
-   *
    * 
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; - * * @return Whether the nullValue field is set. */ public boolean hasNullValue() { return valueTypeCase_ == 11; } /** - * - * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; - * * @return The enum numeric value on the wire for nullValue. */ public int getNullValueValue() { @@ -332,21 +285,18 @@ public int getNullValueValue() { return 0; } /** - * - * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; - * * @return The nullValue. */ public com.google.protobuf.NullValue getNullValue() { if (valueTypeCase_ == 11) { @SuppressWarnings("deprecation") - com.google.protobuf.NullValue result = - com.google.protobuf.NullValue.valueOf((java.lang.Integer) valueType_); + com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf( + (java.lang.Integer) valueType_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; @@ -354,14 +304,11 @@ public com.google.protobuf.NullValue getNullValue() { public static final int BOOLEAN_VALUE_FIELD_NUMBER = 1; /** - * - * *
    * A boolean value.
    * 
* * bool boolean_value = 1; - * * @return Whether the booleanValue field is set. */ @java.lang.Override @@ -369,14 +316,11 @@ public boolean hasBooleanValue() { return valueTypeCase_ == 1; } /** - * - * *
    * A boolean value.
    * 
* * bool boolean_value = 1; - * * @return The booleanValue. */ @java.lang.Override @@ -389,14 +333,11 @@ public boolean getBooleanValue() { public static final int INTEGER_VALUE_FIELD_NUMBER = 2; /** - * - * *
    * An integer value.
    * 
* * int64 integer_value = 2; - * * @return Whether the integerValue field is set. */ @java.lang.Override @@ -404,14 +345,11 @@ public boolean hasIntegerValue() { return valueTypeCase_ == 2; } /** - * - * *
    * An integer value.
    * 
* * int64 integer_value = 2; - * * @return The integerValue. */ @java.lang.Override @@ -424,14 +362,11 @@ public long getIntegerValue() { public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; /** - * - * *
    * A double value.
    * 
* * double double_value = 3; - * * @return Whether the doubleValue field is set. */ @java.lang.Override @@ -439,14 +374,11 @@ public boolean hasDoubleValue() { return valueTypeCase_ == 3; } /** - * - * *
    * A double value.
    * 
* * double double_value = 3; - * * @return The doubleValue. */ @java.lang.Override @@ -459,8 +391,6 @@ public double getDoubleValue() { public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 10; /** - * - * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -468,7 +398,6 @@ public double getDoubleValue() {
    * 
* * .google.protobuf.Timestamp timestamp_value = 10; - * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -476,8 +405,6 @@ public boolean hasTimestampValue() { return valueTypeCase_ == 10; } /** - * - * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -485,19 +412,16 @@ public boolean hasTimestampValue() {
    * 
* * .google.protobuf.Timestamp timestamp_value = 10; - * * @return The timestampValue. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestampValue() { if (valueTypeCase_ == 10) { - return (com.google.protobuf.Timestamp) valueType_; + return (com.google.protobuf.Timestamp) valueType_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -509,21 +433,18 @@ public com.google.protobuf.Timestamp getTimestampValue() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
     if (valueTypeCase_ == 10) {
-      return (com.google.protobuf.Timestamp) valueType_;
+       return (com.google.protobuf.Timestamp) valueType_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int KEY_VALUE_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * A key value.
    * 
* * .google.datastore.v1.Key key_value = 5; - * * @return Whether the keyValue field is set. */ @java.lang.Override @@ -531,26 +452,21 @@ public boolean hasKeyValue() { return valueTypeCase_ == 5; } /** - * - * *
    * A key value.
    * 
* * .google.datastore.v1.Key key_value = 5; - * * @return The keyValue. */ @java.lang.Override public com.google.datastore.v1.Key getKeyValue() { if (valueTypeCase_ == 5) { - return (com.google.datastore.v1.Key) valueType_; + return (com.google.datastore.v1.Key) valueType_; } return com.google.datastore.v1.Key.getDefaultInstance(); } /** - * - * *
    * A key value.
    * 
@@ -560,15 +476,13 @@ public com.google.datastore.v1.Key getKeyValue() { @java.lang.Override public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() { if (valueTypeCase_ == 5) { - return (com.google.datastore.v1.Key) valueType_; + return (com.google.datastore.v1.Key) valueType_; } return com.google.datastore.v1.Key.getDefaultInstance(); } public static final int STRING_VALUE_FIELD_NUMBER = 17; /** - * - * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -576,15 +490,12 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() {
    * 
* * string string_value = 17; - * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueTypeCase_ == 17; } /** - * - * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -592,7 +503,6 @@ public boolean hasStringValue() {
    * 
* * string string_value = 17; - * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -603,7 +513,8 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueTypeCase_ == 17) { valueType_ = s; @@ -612,8 +523,6 @@ public java.lang.String getStringValue() { } } /** - * - * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -621,17 +530,18 @@ public java.lang.String getStringValue() {
    * 
* * string string_value = 17; - * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (valueTypeCase_ == 17) { ref = valueType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (valueTypeCase_ == 17) { valueType_ = b; } @@ -643,8 +553,6 @@ public com.google.protobuf.ByteString getStringValueBytes() { public static final int BLOB_VALUE_FIELD_NUMBER = 18; /** - * - * *
    * A blob value.
    * May have at most 1,000,000 bytes.
@@ -653,7 +561,6 @@ public com.google.protobuf.ByteString getStringValueBytes() {
    * 
* * bytes blob_value = 18; - * * @return Whether the blobValue field is set. */ @java.lang.Override @@ -661,8 +568,6 @@ public boolean hasBlobValue() { return valueTypeCase_ == 18; } /** - * - * *
    * A blob value.
    * May have at most 1,000,000 bytes.
@@ -671,7 +576,6 @@ public boolean hasBlobValue() {
    * 
* * bytes blob_value = 18; - * * @return The blobValue. */ @java.lang.Override @@ -684,14 +588,11 @@ public com.google.protobuf.ByteString getBlobValue() { public static final int GEO_POINT_VALUE_FIELD_NUMBER = 8; /** - * - * *
    * A geo point value representing a point on the surface of Earth.
    * 
* * .google.type.LatLng geo_point_value = 8; - * * @return Whether the geoPointValue field is set. */ @java.lang.Override @@ -699,26 +600,21 @@ public boolean hasGeoPointValue() { return valueTypeCase_ == 8; } /** - * - * *
    * A geo point value representing a point on the surface of Earth.
    * 
* * .google.type.LatLng geo_point_value = 8; - * * @return The geoPointValue. */ @java.lang.Override public com.google.type.LatLng getGeoPointValue() { if (valueTypeCase_ == 8) { - return (com.google.type.LatLng) valueType_; + return (com.google.type.LatLng) valueType_; } return com.google.type.LatLng.getDefaultInstance(); } /** - * - * *
    * A geo point value representing a point on the surface of Earth.
    * 
@@ -728,15 +624,13 @@ public com.google.type.LatLng getGeoPointValue() { @java.lang.Override public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() { if (valueTypeCase_ == 8) { - return (com.google.type.LatLng) valueType_; + return (com.google.type.LatLng) valueType_; } return com.google.type.LatLng.getDefaultInstance(); } public static final int ENTITY_VALUE_FIELD_NUMBER = 6; /** - * - * *
    * An entity value.
    * - May have no key.
@@ -745,7 +639,6 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() {
    * 
* * .google.datastore.v1.Entity entity_value = 6; - * * @return Whether the entityValue field is set. */ @java.lang.Override @@ -753,8 +646,6 @@ public boolean hasEntityValue() { return valueTypeCase_ == 6; } /** - * - * *
    * An entity value.
    * - May have no key.
@@ -763,19 +654,16 @@ public boolean hasEntityValue() {
    * 
* * .google.datastore.v1.Entity entity_value = 6; - * * @return The entityValue. */ @java.lang.Override public com.google.datastore.v1.Entity getEntityValue() { if (valueTypeCase_ == 6) { - return (com.google.datastore.v1.Entity) valueType_; + return (com.google.datastore.v1.Entity) valueType_; } return com.google.datastore.v1.Entity.getDefaultInstance(); } /** - * - * *
    * An entity value.
    * - May have no key.
@@ -788,15 +676,13 @@ public com.google.datastore.v1.Entity getEntityValue() {
   @java.lang.Override
   public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
     if (valueTypeCase_ == 6) {
-      return (com.google.datastore.v1.Entity) valueType_;
+       return (com.google.datastore.v1.Entity) valueType_;
     }
     return com.google.datastore.v1.Entity.getDefaultInstance();
   }
 
   public static final int ARRAY_VALUE_FIELD_NUMBER = 9;
   /**
-   *
-   *
    * 
    * An array value.
    * Cannot contain another array value.
@@ -805,7 +691,6 @@ public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
    * 
* * .google.datastore.v1.ArrayValue array_value = 9; - * * @return Whether the arrayValue field is set. */ @java.lang.Override @@ -813,8 +698,6 @@ public boolean hasArrayValue() { return valueTypeCase_ == 9; } /** - * - * *
    * An array value.
    * Cannot contain another array value.
@@ -823,19 +706,16 @@ public boolean hasArrayValue() {
    * 
* * .google.datastore.v1.ArrayValue array_value = 9; - * * @return The arrayValue. */ @java.lang.Override public com.google.datastore.v1.ArrayValue getArrayValue() { if (valueTypeCase_ == 9) { - return (com.google.datastore.v1.ArrayValue) valueType_; + return (com.google.datastore.v1.ArrayValue) valueType_; } return com.google.datastore.v1.ArrayValue.getDefaultInstance(); } /** - * - * *
    * An array value.
    * Cannot contain another array value.
@@ -848,7 +728,7 @@ public com.google.datastore.v1.ArrayValue getArrayValue() {
   @java.lang.Override
   public com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() {
     if (valueTypeCase_ == 9) {
-      return (com.google.datastore.v1.ArrayValue) valueType_;
+       return (com.google.datastore.v1.ArrayValue) valueType_;
     }
     return com.google.datastore.v1.ArrayValue.getDefaultInstance();
   }
@@ -856,14 +736,11 @@ public com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() {
   public static final int MEANING_FIELD_NUMBER = 14;
   private int meaning_;
   /**
-   *
-   *
    * 
    * The `meaning` field should only be populated for backwards compatibility.
    * 
* * int32 meaning = 14; - * * @return The meaning. */ @java.lang.Override @@ -874,15 +751,12 @@ public int getMeaning() { public static final int EXCLUDE_FROM_INDEXES_FIELD_NUMBER = 19; private boolean excludeFromIndexes_; /** - * - * *
    * If the value should be excluded from all indexes including those defined
    * explicitly.
    * 
* * bool exclude_from_indexes = 19; - * * @return The excludeFromIndexes. */ @java.lang.Override @@ -891,7 +765,6 @@ public boolean getExcludeFromIndexes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -903,15 +776,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (valueTypeCase_ == 1) { - output.writeBool(1, (boolean) ((java.lang.Boolean) valueType_)); + output.writeBool( + 1, (boolean)((java.lang.Boolean) valueType_)); } if (valueTypeCase_ == 2) { - output.writeInt64(2, (long) ((java.lang.Long) valueType_)); + output.writeInt64( + 2, (long)((java.lang.Long) valueType_)); } if (valueTypeCase_ == 3) { - output.writeDouble(3, (double) ((java.lang.Double) valueType_)); + output.writeDouble( + 3, (double)((java.lang.Double) valueType_)); } if (valueTypeCase_ == 5) { output.writeMessage(5, (com.google.datastore.v1.Key) valueType_); @@ -938,7 +815,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 17, valueType_); } if (valueTypeCase_ == 18) { - output.writeBytes(18, (com.google.protobuf.ByteString) valueType_); + output.writeBytes( + 18, (com.google.protobuf.ByteString) valueType_); } if (excludeFromIndexes_ != false) { output.writeBool(19, excludeFromIndexes_); @@ -953,63 +831,59 @@ public int getSerializedSize() { size = 0; if (valueTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 1, (boolean) ((java.lang.Boolean) valueType_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) valueType_)); } if (valueTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size( - 2, (long) ((java.lang.Long) valueType_)); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) valueType_)); } if (valueTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 3, (double) ((java.lang.Double) valueType_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 3, (double)((java.lang.Double) valueType_)); } if (valueTypeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.datastore.v1.Key) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.datastore.v1.Key) valueType_); } if (valueTypeCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.datastore.v1.Entity) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.datastore.v1.Entity) valueType_); } if (valueTypeCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.type.LatLng) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.type.LatLng) valueType_); } if (valueTypeCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.datastore.v1.ArrayValue) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.datastore.v1.ArrayValue) valueType_); } if (valueTypeCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.protobuf.Timestamp) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.protobuf.Timestamp) valueType_); } if (valueTypeCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 11, ((java.lang.Integer) valueType_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, ((java.lang.Integer) valueType_)); } if (meaning_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, meaning_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, meaning_); } if (valueTypeCase_ == 17) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, valueType_); } if (valueTypeCase_ == 18) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 18, (com.google.protobuf.ByteString) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 18, (com.google.protobuf.ByteString) valueType_); } if (excludeFromIndexes_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, excludeFromIndexes_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, excludeFromIndexes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1019,50 +893,63 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.Value)) { return super.equals(obj); } com.google.datastore.v1.Value other = (com.google.datastore.v1.Value) obj; - if (getMeaning() != other.getMeaning()) return false; - if (getExcludeFromIndexes() != other.getExcludeFromIndexes()) return false; + if (getMeaning() + != other.getMeaning()) return false; + if (getExcludeFromIndexes() + != other.getExcludeFromIndexes()) return false; if (!getValueTypeCase().equals(other.getValueTypeCase())) return false; switch (valueTypeCase_) { case 11: - if (getNullValueValue() != other.getNullValueValue()) return false; + if (getNullValueValue() + != other.getNullValueValue()) return false; break; case 1: - if (getBooleanValue() != other.getBooleanValue()) return false; + if (getBooleanValue() + != other.getBooleanValue()) return false; break; case 2: - if (getIntegerValue() != other.getIntegerValue()) return false; + if (getIntegerValue() + != other.getIntegerValue()) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getDoubleValue())) return false; break; case 10: - if (!getTimestampValue().equals(other.getTimestampValue())) return false; + if (!getTimestampValue() + .equals(other.getTimestampValue())) return false; break; case 5: - if (!getKeyValue().equals(other.getKeyValue())) return false; + if (!getKeyValue() + .equals(other.getKeyValue())) return false; break; case 17: - if (!getStringValue().equals(other.getStringValue())) return false; + if (!getStringValue() + .equals(other.getStringValue())) return false; break; case 18: - if (!getBlobValue().equals(other.getBlobValue())) return false; + if (!getBlobValue() + .equals(other.getBlobValue())) return false; break; case 8: - if (!getGeoPointValue().equals(other.getGeoPointValue())) return false; + if (!getGeoPointValue() + .equals(other.getGeoPointValue())) return false; break; case 6: - if (!getEntityValue().equals(other.getEntityValue())) return false; + if (!getEntityValue() + .equals(other.getEntityValue())) return false; break; case 9: - if (!getArrayValue().equals(other.getArrayValue())) return false; + if (!getArrayValue() + .equals(other.getArrayValue())) return false; break; case 0: default: @@ -1081,7 +968,8 @@ public int hashCode() { hash = (37 * hash) + MEANING_FIELD_NUMBER; hash = (53 * hash) + getMeaning(); hash = (37 * hash) + EXCLUDE_FROM_INDEXES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExcludeFromIndexes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExcludeFromIndexes()); switch (valueTypeCase_) { case 11: hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER; @@ -1089,18 +977,18 @@ public int hashCode() { break; case 1: hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBooleanValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBooleanValue()); break; case 2: hash = (37 * hash) + INTEGER_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntegerValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIntegerValue()); break; case 3: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 10: hash = (37 * hash) + TIMESTAMP_VALUE_FIELD_NUMBER; @@ -1138,103 +1026,97 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.Value parseFrom(java.nio.ByteBuffer data) + public static com.google.datastore.v1.Value parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Value parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.datastore.v1.Value parseFrom(com.google.protobuf.ByteString data) + public static com.google.datastore.v1.Value parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Value parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.v1.Value parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Value parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.Value parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.v1.Value parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.datastore.v1.Value parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.datastore.v1.Value parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.datastore.v1.Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.Value prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A message that can hold any of the supported value types and associated
    * metadata.
@@ -1242,20 +1124,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.datastore.v1.Value}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.Value)
       com.google.datastore.v1.ValueOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Value_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Value_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.datastore.v1.Value.class, com.google.datastore.v1.Value.Builder.class);
     }
@@ -1265,15 +1146,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1287,9 +1169,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.datastore.v1.EntityProto
-          .internal_static_google_datastore_v1_Value_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_descriptor;
     }
 
     @java.lang.Override
@@ -1373,39 +1255,38 @@ public com.google.datastore.v1.Value buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.datastore.v1.Value) {
-        return mergeFrom((com.google.datastore.v1.Value) other);
+        return mergeFrom((com.google.datastore.v1.Value)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1421,67 +1302,55 @@ public Builder mergeFrom(com.google.datastore.v1.Value other) {
         setExcludeFromIndexes(other.getExcludeFromIndexes());
       }
       switch (other.getValueTypeCase()) {
-        case NULL_VALUE:
-          {
-            setNullValueValue(other.getNullValueValue());
-            break;
-          }
-        case BOOLEAN_VALUE:
-          {
-            setBooleanValue(other.getBooleanValue());
-            break;
-          }
-        case INTEGER_VALUE:
-          {
-            setIntegerValue(other.getIntegerValue());
-            break;
-          }
-        case DOUBLE_VALUE:
-          {
-            setDoubleValue(other.getDoubleValue());
-            break;
-          }
-        case TIMESTAMP_VALUE:
-          {
-            mergeTimestampValue(other.getTimestampValue());
-            break;
-          }
-        case KEY_VALUE:
-          {
-            mergeKeyValue(other.getKeyValue());
-            break;
-          }
-        case STRING_VALUE:
-          {
-            valueTypeCase_ = 17;
-            valueType_ = other.valueType_;
-            onChanged();
-            break;
-          }
-        case BLOB_VALUE:
-          {
-            setBlobValue(other.getBlobValue());
-            break;
-          }
-        case GEO_POINT_VALUE:
-          {
-            mergeGeoPointValue(other.getGeoPointValue());
-            break;
-          }
-        case ENTITY_VALUE:
-          {
-            mergeEntityValue(other.getEntityValue());
-            break;
-          }
-        case ARRAY_VALUE:
-          {
-            mergeArrayValue(other.getArrayValue());
-            break;
-          }
-        case VALUETYPE_NOT_SET:
-          {
-            break;
-          }
+        case NULL_VALUE: {
+          setNullValueValue(other.getNullValueValue());
+          break;
+        }
+        case BOOLEAN_VALUE: {
+          setBooleanValue(other.getBooleanValue());
+          break;
+        }
+        case INTEGER_VALUE: {
+          setIntegerValue(other.getIntegerValue());
+          break;
+        }
+        case DOUBLE_VALUE: {
+          setDoubleValue(other.getDoubleValue());
+          break;
+        }
+        case TIMESTAMP_VALUE: {
+          mergeTimestampValue(other.getTimestampValue());
+          break;
+        }
+        case KEY_VALUE: {
+          mergeKeyValue(other.getKeyValue());
+          break;
+        }
+        case STRING_VALUE: {
+          valueTypeCase_ = 17;
+          valueType_ = other.valueType_;
+          onChanged();
+          break;
+        }
+        case BLOB_VALUE: {
+          setBlobValue(other.getBlobValue());
+          break;
+        }
+        case GEO_POINT_VALUE: {
+          mergeGeoPointValue(other.getGeoPointValue());
+          break;
+        }
+        case ENTITY_VALUE: {
+          mergeEntityValue(other.getEntityValue());
+          break;
+        }
+        case ARRAY_VALUE: {
+          mergeArrayValue(other.getArrayValue());
+          break;
+        }
+        case VALUETYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1511,12 +1380,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int valueTypeCase_ = 0;
     private java.lang.Object valueType_;
-
-    public ValueTypeCase getValueTypeCase() {
-      return ValueTypeCase.forNumber(valueTypeCase_);
+    public ValueTypeCase
+        getValueTypeCase() {
+      return ValueTypeCase.forNumber(
+          valueTypeCase_);
     }
 
     public Builder clearValueType() {
@@ -1526,15 +1395,13 @@ public Builder clearValueType() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; - * * @return Whether the nullValue field is set. */ @java.lang.Override @@ -1542,14 +1409,11 @@ public boolean hasNullValue() { return valueTypeCase_ == 11; } /** - * - * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; - * * @return The enum numeric value on the wire for nullValue. */ @java.lang.Override @@ -1560,14 +1424,11 @@ public int getNullValueValue() { return 0; } /** - * - * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; - * * @param value The enum numeric value on the wire for nullValue to set. * @return This builder for chaining. */ @@ -1578,35 +1439,29 @@ public Builder setNullValueValue(int value) { return this; } /** - * - * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; - * * @return The nullValue. */ @java.lang.Override public com.google.protobuf.NullValue getNullValue() { if (valueTypeCase_ == 11) { @SuppressWarnings("deprecation") - com.google.protobuf.NullValue result = - com.google.protobuf.NullValue.valueOf((java.lang.Integer) valueType_); + com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf( + (java.lang.Integer) valueType_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } /** - * - * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; - * * @param value The nullValue to set. * @return This builder for chaining. */ @@ -1620,14 +1475,11 @@ public Builder setNullValue(com.google.protobuf.NullValue value) { return this; } /** - * - * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; - * * @return This builder for chaining. */ public Builder clearNullValue() { @@ -1640,28 +1492,22 @@ public Builder clearNullValue() { } /** - * - * *
      * A boolean value.
      * 
* * bool boolean_value = 1; - * * @return Whether the booleanValue field is set. */ public boolean hasBooleanValue() { return valueTypeCase_ == 1; } /** - * - * *
      * A boolean value.
      * 
* * bool boolean_value = 1; - * * @return The booleanValue. */ public boolean getBooleanValue() { @@ -1671,14 +1517,11 @@ public boolean getBooleanValue() { return false; } /** - * - * *
      * A boolean value.
      * 
* * bool boolean_value = 1; - * * @param value The booleanValue to set. * @return This builder for chaining. */ @@ -1689,14 +1532,11 @@ public Builder setBooleanValue(boolean value) { return this; } /** - * - * *
      * A boolean value.
      * 
* * bool boolean_value = 1; - * * @return This builder for chaining. */ public Builder clearBooleanValue() { @@ -1709,28 +1549,22 @@ public Builder clearBooleanValue() { } /** - * - * *
      * An integer value.
      * 
* * int64 integer_value = 2; - * * @return Whether the integerValue field is set. */ public boolean hasIntegerValue() { return valueTypeCase_ == 2; } /** - * - * *
      * An integer value.
      * 
* * int64 integer_value = 2; - * * @return The integerValue. */ public long getIntegerValue() { @@ -1740,14 +1574,11 @@ public long getIntegerValue() { return 0L; } /** - * - * *
      * An integer value.
      * 
* * int64 integer_value = 2; - * * @param value The integerValue to set. * @return This builder for chaining. */ @@ -1758,14 +1589,11 @@ public Builder setIntegerValue(long value) { return this; } /** - * - * *
      * An integer value.
      * 
* * int64 integer_value = 2; - * * @return This builder for chaining. */ public Builder clearIntegerValue() { @@ -1778,28 +1606,22 @@ public Builder clearIntegerValue() { } /** - * - * *
      * A double value.
      * 
* * double double_value = 3; - * * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return valueTypeCase_ == 3; } /** - * - * *
      * A double value.
      * 
* * double double_value = 3; - * * @return The doubleValue. */ public double getDoubleValue() { @@ -1809,14 +1631,11 @@ public double getDoubleValue() { return 0D; } /** - * - * *
      * A double value.
      * 
* * double double_value = 3; - * * @param value The doubleValue to set. * @return This builder for chaining. */ @@ -1827,14 +1646,11 @@ public Builder setDoubleValue(double value) { return this; } /** - * - * *
      * A double value.
      * 
* * double double_value = 3; - * * @return This builder for chaining. */ public Builder clearDoubleValue() { @@ -1847,13 +1663,8 @@ public Builder clearDoubleValue() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - timestampValueBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampValueBuilder_; /** - * - * *
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1861,7 +1672,6 @@ public Builder clearDoubleValue() {
      * 
* * .google.protobuf.Timestamp timestamp_value = 10; - * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -1869,8 +1679,6 @@ public boolean hasTimestampValue() { return valueTypeCase_ == 10; } /** - * - * *
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1878,7 +1686,6 @@ public boolean hasTimestampValue() {
      * 
* * .google.protobuf.Timestamp timestamp_value = 10; - * * @return The timestampValue. */ @java.lang.Override @@ -1896,8 +1703,6 @@ public com.google.protobuf.Timestamp getTimestampValue() { } } /** - * - * *
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1920,8 +1725,6 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1930,7 +1733,8 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp timestamp_value = 10;
      */
-    public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setTimestampValue(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (timestampValueBuilder_ == null) {
         valueType_ = builderForValue.build();
         onChanged();
@@ -1941,8 +1745,6 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1953,12 +1755,10 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderFo
      */
     public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) {
       if (timestampValueBuilder_ == null) {
-        if (valueTypeCase_ == 10
-            && valueType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          valueType_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) valueType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (valueTypeCase_ == 10 &&
+            valueType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          valueType_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) valueType_)
+              .mergeFrom(value).buildPartial();
         } else {
           valueType_ = value;
         }
@@ -1974,8 +1774,6 @@ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -2001,8 +1799,6 @@ public Builder clearTimestampValue() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -2015,8 +1811,6 @@ public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() {
       return getTimestampValueFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -2037,8 +1831,6 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -2048,42 +1840,32 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
      * .google.protobuf.Timestamp timestamp_value = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getTimestampValueFieldBuilder() {
       if (timestampValueBuilder_ == null) {
         if (!(valueTypeCase_ == 10)) {
           valueType_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        timestampValueBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) valueType_, getParentForChildren(), isClean());
+        timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) valueType_,
+                getParentForChildren(),
+                isClean());
         valueType_ = null;
       }
       valueTypeCase_ = 10;
-      onChanged();
-      ;
+      onChanged();;
       return timestampValueBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key,
-            com.google.datastore.v1.Key.Builder,
-            com.google.datastore.v1.KeyOrBuilder>
-        keyValueBuilder_;
+        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keyValueBuilder_;
     /**
-     *
-     *
      * 
      * A key value.
      * 
* * .google.datastore.v1.Key key_value = 5; - * * @return Whether the keyValue field is set. */ @java.lang.Override @@ -2091,14 +1873,11 @@ public boolean hasKeyValue() { return valueTypeCase_ == 5; } /** - * - * *
      * A key value.
      * 
* * .google.datastore.v1.Key key_value = 5; - * * @return The keyValue. */ @java.lang.Override @@ -2116,8 +1895,6 @@ public com.google.datastore.v1.Key getKeyValue() { } } /** - * - * *
      * A key value.
      * 
@@ -2138,15 +1915,14 @@ public Builder setKeyValue(com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * A key value.
      * 
* * .google.datastore.v1.Key key_value = 5; */ - public Builder setKeyValue(com.google.datastore.v1.Key.Builder builderForValue) { + public Builder setKeyValue( + com.google.datastore.v1.Key.Builder builderForValue) { if (keyValueBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2157,8 +1933,6 @@ public Builder setKeyValue(com.google.datastore.v1.Key.Builder builderForValue) return this; } /** - * - * *
      * A key value.
      * 
@@ -2167,11 +1941,10 @@ public Builder setKeyValue(com.google.datastore.v1.Key.Builder builderForValue) */ public Builder mergeKeyValue(com.google.datastore.v1.Key value) { if (keyValueBuilder_ == null) { - if (valueTypeCase_ == 5 && valueType_ != com.google.datastore.v1.Key.getDefaultInstance()) { - valueType_ = - com.google.datastore.v1.Key.newBuilder((com.google.datastore.v1.Key) valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 5 && + valueType_ != com.google.datastore.v1.Key.getDefaultInstance()) { + valueType_ = com.google.datastore.v1.Key.newBuilder((com.google.datastore.v1.Key) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -2187,8 +1960,6 @@ public Builder mergeKeyValue(com.google.datastore.v1.Key value) { return this; } /** - * - * *
      * A key value.
      * 
@@ -2212,8 +1983,6 @@ public Builder clearKeyValue() { return this; } /** - * - * *
      * A key value.
      * 
@@ -2224,8 +1993,6 @@ public com.google.datastore.v1.Key.Builder getKeyValueBuilder() { return getKeyValueFieldBuilder().getBuilder(); } /** - * - * *
      * A key value.
      * 
@@ -2244,8 +2011,6 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() { } } /** - * - * *
      * A key value.
      * 
@@ -2253,31 +2018,25 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() { * .google.datastore.v1.Key key_value = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder> + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> getKeyValueFieldBuilder() { if (keyValueBuilder_ == null) { if (!(valueTypeCase_ == 5)) { valueType_ = com.google.datastore.v1.Key.getDefaultInstance(); } - keyValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Key, - com.google.datastore.v1.Key.Builder, - com.google.datastore.v1.KeyOrBuilder>( - (com.google.datastore.v1.Key) valueType_, getParentForChildren(), isClean()); + keyValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>( + (com.google.datastore.v1.Key) valueType_, + getParentForChildren(), + isClean()); valueType_ = null; } valueTypeCase_ = 5; - onChanged(); - ; + onChanged();; return keyValueBuilder_; } /** - * - * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2285,7 +2044,6 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() {
      * 
* * string string_value = 17; - * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -2293,8 +2051,6 @@ public boolean hasStringValue() { return valueTypeCase_ == 17; } /** - * - * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2302,7 +2058,6 @@ public boolean hasStringValue() {
      * 
* * string string_value = 17; - * * @return The stringValue. */ @java.lang.Override @@ -2312,7 +2067,8 @@ public java.lang.String getStringValue() { ref = valueType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueTypeCase_ == 17) { valueType_ = s; @@ -2323,8 +2079,6 @@ public java.lang.String getStringValue() { } } /** - * - * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2332,18 +2086,19 @@ public java.lang.String getStringValue() {
      * 
* * string string_value = 17; - * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (valueTypeCase_ == 17) { ref = valueType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (valueTypeCase_ == 17) { valueType_ = b; } @@ -2353,8 +2108,6 @@ public com.google.protobuf.ByteString getStringValueBytes() { } } /** - * - * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2362,22 +2115,20 @@ public com.google.protobuf.ByteString getStringValueBytes() {
      * 
* * string string_value = 17; - * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue(java.lang.String value) { + public Builder setStringValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - valueTypeCase_ = 17; + throw new NullPointerException(); + } + valueTypeCase_ = 17; valueType_ = value; onChanged(); return this; } /** - * - * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2385,7 +2136,6 @@ public Builder setStringValue(java.lang.String value) {
      * 
* * string string_value = 17; - * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -2397,8 +2147,6 @@ public Builder clearStringValue() { return this; } /** - * - * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2406,15 +2154,15 @@ public Builder clearStringValue() {
      * 
* * string string_value = 17; - * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); valueTypeCase_ = 17; valueType_ = value; onChanged(); @@ -2422,8 +2170,6 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * A blob value.
      * May have at most 1,000,000 bytes.
@@ -2432,15 +2178,12 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes blob_value = 18; - * * @return Whether the blobValue field is set. */ public boolean hasBlobValue() { return valueTypeCase_ == 18; } /** - * - * *
      * A blob value.
      * May have at most 1,000,000 bytes.
@@ -2449,7 +2192,6 @@ public boolean hasBlobValue() {
      * 
* * bytes blob_value = 18; - * * @return The blobValue. */ public com.google.protobuf.ByteString getBlobValue() { @@ -2459,8 +2201,6 @@ public com.google.protobuf.ByteString getBlobValue() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * A blob value.
      * May have at most 1,000,000 bytes.
@@ -2469,22 +2209,19 @@ public com.google.protobuf.ByteString getBlobValue() {
      * 
* * bytes blob_value = 18; - * * @param value The blobValue to set. * @return This builder for chaining. */ public Builder setBlobValue(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - valueTypeCase_ = 18; + throw new NullPointerException(); + } + valueTypeCase_ = 18; valueType_ = value; onChanged(); return this; } /** - * - * *
      * A blob value.
      * May have at most 1,000,000 bytes.
@@ -2493,7 +2230,6 @@ public Builder setBlobValue(com.google.protobuf.ByteString value) {
      * 
* * bytes blob_value = 18; - * * @return This builder for chaining. */ public Builder clearBlobValue() { @@ -2506,17 +2242,13 @@ public Builder clearBlobValue() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - geoPointValueBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> geoPointValueBuilder_; /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
* * .google.type.LatLng geo_point_value = 8; - * * @return Whether the geoPointValue field is set. */ @java.lang.Override @@ -2524,14 +2256,11 @@ public boolean hasGeoPointValue() { return valueTypeCase_ == 8; } /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
* * .google.type.LatLng geo_point_value = 8; - * * @return The geoPointValue. */ @java.lang.Override @@ -2549,8 +2278,6 @@ public com.google.type.LatLng getGeoPointValue() { } } /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2571,15 +2298,14 @@ public Builder setGeoPointValue(com.google.type.LatLng value) { return this; } /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
* * .google.type.LatLng geo_point_value = 8; */ - public Builder setGeoPointValue(com.google.type.LatLng.Builder builderForValue) { + public Builder setGeoPointValue( + com.google.type.LatLng.Builder builderForValue) { if (geoPointValueBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2590,8 +2316,6 @@ public Builder setGeoPointValue(com.google.type.LatLng.Builder builderForValue) return this; } /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2600,11 +2324,10 @@ public Builder setGeoPointValue(com.google.type.LatLng.Builder builderForValue) */ public Builder mergeGeoPointValue(com.google.type.LatLng value) { if (geoPointValueBuilder_ == null) { - if (valueTypeCase_ == 8 && valueType_ != com.google.type.LatLng.getDefaultInstance()) { - valueType_ = - com.google.type.LatLng.newBuilder((com.google.type.LatLng) valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 8 && + valueType_ != com.google.type.LatLng.getDefaultInstance()) { + valueType_ = com.google.type.LatLng.newBuilder((com.google.type.LatLng) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -2620,8 +2343,6 @@ public Builder mergeGeoPointValue(com.google.type.LatLng value) { return this; } /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2645,8 +2366,6 @@ public Builder clearGeoPointValue() { return this; } /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2657,8 +2376,6 @@ public com.google.type.LatLng.Builder getGeoPointValueBuilder() { return getGeoPointValueFieldBuilder().getBuilder(); } /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2677,8 +2394,6 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() { } } /** - * - * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2686,34 +2401,27 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() { * .google.type.LatLng geo_point_value = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getGeoPointValueFieldBuilder() { if (geoPointValueBuilder_ == null) { if (!(valueTypeCase_ == 8)) { valueType_ = com.google.type.LatLng.getDefaultInstance(); } - geoPointValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>( - (com.google.type.LatLng) valueType_, getParentForChildren(), isClean()); + geoPointValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + (com.google.type.LatLng) valueType_, + getParentForChildren(), + isClean()); valueType_ = null; } valueTypeCase_ = 8; - onChanged(); - ; + onChanged();; return geoPointValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, - com.google.datastore.v1.Entity.Builder, - com.google.datastore.v1.EntityOrBuilder> - entityValueBuilder_; + com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> entityValueBuilder_; /** - * - * *
      * An entity value.
      * - May have no key.
@@ -2722,7 +2430,6 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() {
      * 
* * .google.datastore.v1.Entity entity_value = 6; - * * @return Whether the entityValue field is set. */ @java.lang.Override @@ -2730,8 +2437,6 @@ public boolean hasEntityValue() { return valueTypeCase_ == 6; } /** - * - * *
      * An entity value.
      * - May have no key.
@@ -2740,7 +2445,6 @@ public boolean hasEntityValue() {
      * 
* * .google.datastore.v1.Entity entity_value = 6; - * * @return The entityValue. */ @java.lang.Override @@ -2758,8 +2462,6 @@ public com.google.datastore.v1.Entity getEntityValue() { } } /** - * - * *
      * An entity value.
      * - May have no key.
@@ -2783,8 +2485,6 @@ public Builder setEntityValue(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity value.
      * - May have no key.
@@ -2794,7 +2494,8 @@ public Builder setEntityValue(com.google.datastore.v1.Entity value) {
      *
      * .google.datastore.v1.Entity entity_value = 6;
      */
-    public Builder setEntityValue(com.google.datastore.v1.Entity.Builder builderForValue) {
+    public Builder setEntityValue(
+        com.google.datastore.v1.Entity.Builder builderForValue) {
       if (entityValueBuilder_ == null) {
         valueType_ = builderForValue.build();
         onChanged();
@@ -2805,8 +2506,6 @@ public Builder setEntityValue(com.google.datastore.v1.Entity.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity value.
      * - May have no key.
@@ -2818,12 +2517,10 @@ public Builder setEntityValue(com.google.datastore.v1.Entity.Builder builderForV
      */
     public Builder mergeEntityValue(com.google.datastore.v1.Entity value) {
       if (entityValueBuilder_ == null) {
-        if (valueTypeCase_ == 6
-            && valueType_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
-          valueType_ =
-              com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) valueType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (valueTypeCase_ == 6 &&
+            valueType_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
+          valueType_ = com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) valueType_)
+              .mergeFrom(value).buildPartial();
         } else {
           valueType_ = value;
         }
@@ -2839,8 +2536,6 @@ public Builder mergeEntityValue(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity value.
      * - May have no key.
@@ -2867,8 +2562,6 @@ public Builder clearEntityValue() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity value.
      * - May have no key.
@@ -2882,8 +2575,6 @@ public com.google.datastore.v1.Entity.Builder getEntityValueBuilder() {
       return getEntityValueFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An entity value.
      * - May have no key.
@@ -2905,8 +2596,6 @@ public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * An entity value.
      * - May have no key.
@@ -2917,36 +2606,27 @@ public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
      * .google.datastore.v1.Entity entity_value = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity,
-            com.google.datastore.v1.Entity.Builder,
-            com.google.datastore.v1.EntityOrBuilder>
+        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> 
         getEntityValueFieldBuilder() {
       if (entityValueBuilder_ == null) {
         if (!(valueTypeCase_ == 6)) {
           valueType_ = com.google.datastore.v1.Entity.getDefaultInstance();
         }
-        entityValueBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.Entity,
-                com.google.datastore.v1.Entity.Builder,
-                com.google.datastore.v1.EntityOrBuilder>(
-                (com.google.datastore.v1.Entity) valueType_, getParentForChildren(), isClean());
+        entityValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>(
+                (com.google.datastore.v1.Entity) valueType_,
+                getParentForChildren(),
+                isClean());
         valueType_ = null;
       }
       valueTypeCase_ = 6;
-      onChanged();
-      ;
+      onChanged();;
       return entityValueBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.ArrayValue,
-            com.google.datastore.v1.ArrayValue.Builder,
-            com.google.datastore.v1.ArrayValueOrBuilder>
-        arrayValueBuilder_;
+        com.google.datastore.v1.ArrayValue, com.google.datastore.v1.ArrayValue.Builder, com.google.datastore.v1.ArrayValueOrBuilder> arrayValueBuilder_;
     /**
-     *
-     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -2955,7 +2635,6 @@ public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
      * 
* * .google.datastore.v1.ArrayValue array_value = 9; - * * @return Whether the arrayValue field is set. */ @java.lang.Override @@ -2963,8 +2642,6 @@ public boolean hasArrayValue() { return valueTypeCase_ == 9; } /** - * - * *
      * An array value.
      * Cannot contain another array value.
@@ -2973,7 +2650,6 @@ public boolean hasArrayValue() {
      * 
* * .google.datastore.v1.ArrayValue array_value = 9; - * * @return The arrayValue. */ @java.lang.Override @@ -2991,8 +2667,6 @@ public com.google.datastore.v1.ArrayValue getArrayValue() { } } /** - * - * *
      * An array value.
      * Cannot contain another array value.
@@ -3016,8 +2690,6 @@ public Builder setArrayValue(com.google.datastore.v1.ArrayValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -3027,7 +2699,8 @@ public Builder setArrayValue(com.google.datastore.v1.ArrayValue value) {
      *
      * .google.datastore.v1.ArrayValue array_value = 9;
      */
-    public Builder setArrayValue(com.google.datastore.v1.ArrayValue.Builder builderForValue) {
+    public Builder setArrayValue(
+        com.google.datastore.v1.ArrayValue.Builder builderForValue) {
       if (arrayValueBuilder_ == null) {
         valueType_ = builderForValue.build();
         onChanged();
@@ -3038,8 +2711,6 @@ public Builder setArrayValue(com.google.datastore.v1.ArrayValue.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -3051,13 +2722,10 @@ public Builder setArrayValue(com.google.datastore.v1.ArrayValue.Builder builderF
      */
     public Builder mergeArrayValue(com.google.datastore.v1.ArrayValue value) {
       if (arrayValueBuilder_ == null) {
-        if (valueTypeCase_ == 9
-            && valueType_ != com.google.datastore.v1.ArrayValue.getDefaultInstance()) {
-          valueType_ =
-              com.google.datastore.v1.ArrayValue.newBuilder(
-                      (com.google.datastore.v1.ArrayValue) valueType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (valueTypeCase_ == 9 &&
+            valueType_ != com.google.datastore.v1.ArrayValue.getDefaultInstance()) {
+          valueType_ = com.google.datastore.v1.ArrayValue.newBuilder((com.google.datastore.v1.ArrayValue) valueType_)
+              .mergeFrom(value).buildPartial();
         } else {
           valueType_ = value;
         }
@@ -3073,8 +2741,6 @@ public Builder mergeArrayValue(com.google.datastore.v1.ArrayValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -3101,8 +2767,6 @@ public Builder clearArrayValue() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -3116,8 +2780,6 @@ public com.google.datastore.v1.ArrayValue.Builder getArrayValueBuilder() {
       return getArrayValueFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -3139,8 +2801,6 @@ public com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -3151,38 +2811,31 @@ public com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() {
      * .google.datastore.v1.ArrayValue array_value = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.ArrayValue,
-            com.google.datastore.v1.ArrayValue.Builder,
-            com.google.datastore.v1.ArrayValueOrBuilder>
+        com.google.datastore.v1.ArrayValue, com.google.datastore.v1.ArrayValue.Builder, com.google.datastore.v1.ArrayValueOrBuilder> 
         getArrayValueFieldBuilder() {
       if (arrayValueBuilder_ == null) {
         if (!(valueTypeCase_ == 9)) {
           valueType_ = com.google.datastore.v1.ArrayValue.getDefaultInstance();
         }
-        arrayValueBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.datastore.v1.ArrayValue,
-                com.google.datastore.v1.ArrayValue.Builder,
-                com.google.datastore.v1.ArrayValueOrBuilder>(
-                (com.google.datastore.v1.ArrayValue) valueType_, getParentForChildren(), isClean());
+        arrayValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.datastore.v1.ArrayValue, com.google.datastore.v1.ArrayValue.Builder, com.google.datastore.v1.ArrayValueOrBuilder>(
+                (com.google.datastore.v1.ArrayValue) valueType_,
+                getParentForChildren(),
+                isClean());
         valueType_ = null;
       }
       valueTypeCase_ = 9;
-      onChanged();
-      ;
+      onChanged();;
       return arrayValueBuilder_;
     }
 
-    private int meaning_;
+    private int meaning_ ;
     /**
-     *
-     *
      * 
      * The `meaning` field should only be populated for backwards compatibility.
      * 
* * int32 meaning = 14; - * * @return The meaning. */ @java.lang.Override @@ -3190,52 +2843,43 @@ public int getMeaning() { return meaning_; } /** - * - * *
      * The `meaning` field should only be populated for backwards compatibility.
      * 
* * int32 meaning = 14; - * * @param value The meaning to set. * @return This builder for chaining. */ public Builder setMeaning(int value) { - + meaning_ = value; onChanged(); return this; } /** - * - * *
      * The `meaning` field should only be populated for backwards compatibility.
      * 
* * int32 meaning = 14; - * * @return This builder for chaining. */ public Builder clearMeaning() { - + meaning_ = 0; onChanged(); return this; } - private boolean excludeFromIndexes_; + private boolean excludeFromIndexes_ ; /** - * - * *
      * If the value should be excluded from all indexes including those defined
      * explicitly.
      * 
* * bool exclude_from_indexes = 19; - * * @return The excludeFromIndexes. */ @java.lang.Override @@ -3243,45 +2887,39 @@ public boolean getExcludeFromIndexes() { return excludeFromIndexes_; } /** - * - * *
      * If the value should be excluded from all indexes including those defined
      * explicitly.
      * 
* * bool exclude_from_indexes = 19; - * * @param value The excludeFromIndexes to set. * @return This builder for chaining. */ public Builder setExcludeFromIndexes(boolean value) { - + excludeFromIndexes_ = value; onChanged(); return this; } /** - * - * *
      * If the value should be excluded from all indexes including those defined
      * explicitly.
      * 
* * bool exclude_from_indexes = 19; - * * @return This builder for chaining. */ public Builder clearExcludeFromIndexes() { - + excludeFromIndexes_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3291,12 +2929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.datastore.v1.Value) } // @@protoc_insertion_point(class_scope:google.datastore.v1.Value) private static final com.google.datastore.v1.Value DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.datastore.v1.Value(); } @@ -3305,16 +2943,16 @@ public static com.google.datastore.v1.Value getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Value(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Value parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Value(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3329,4 +2967,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java similarity index 88% rename from proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java index 340dd5662..9c3bc8fb4 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java @@ -1,143 +1,98 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/entity.proto package com.google.datastore.v1; -public interface ValueOrBuilder - extends +public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.Value) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; - * * @return Whether the nullValue field is set. */ boolean hasNullValue(); /** - * - * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; - * * @return The enum numeric value on the wire for nullValue. */ int getNullValueValue(); /** - * - * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; - * * @return The nullValue. */ com.google.protobuf.NullValue getNullValue(); /** - * - * *
    * A boolean value.
    * 
* * bool boolean_value = 1; - * * @return Whether the booleanValue field is set. */ boolean hasBooleanValue(); /** - * - * *
    * A boolean value.
    * 
* * bool boolean_value = 1; - * * @return The booleanValue. */ boolean getBooleanValue(); /** - * - * *
    * An integer value.
    * 
* * int64 integer_value = 2; - * * @return Whether the integerValue field is set. */ boolean hasIntegerValue(); /** - * - * *
    * An integer value.
    * 
* * int64 integer_value = 2; - * * @return The integerValue. */ long getIntegerValue(); /** - * - * *
    * A double value.
    * 
* * double double_value = 3; - * * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** - * - * *
    * A double value.
    * 
* * double double_value = 3; - * * @return The doubleValue. */ double getDoubleValue(); /** - * - * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -145,13 +100,10 @@ public interface ValueOrBuilder
    * 
* * .google.protobuf.Timestamp timestamp_value = 10; - * * @return Whether the timestampValue field is set. */ boolean hasTimestampValue(); /** - * - * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -159,13 +111,10 @@ public interface ValueOrBuilder
    * 
* * .google.protobuf.Timestamp timestamp_value = 10; - * * @return The timestampValue. */ com.google.protobuf.Timestamp getTimestampValue(); /** - * - * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -177,32 +126,24 @@ public interface ValueOrBuilder
   com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder();
 
   /**
-   *
-   *
    * 
    * A key value.
    * 
* * .google.datastore.v1.Key key_value = 5; - * * @return Whether the keyValue field is set. */ boolean hasKeyValue(); /** - * - * *
    * A key value.
    * 
* * .google.datastore.v1.Key key_value = 5; - * * @return The keyValue. */ com.google.datastore.v1.Key getKeyValue(); /** - * - * *
    * A key value.
    * 
@@ -212,8 +153,6 @@ public interface ValueOrBuilder com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder(); /** - * - * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -221,13 +160,10 @@ public interface ValueOrBuilder
    * 
* * string string_value = 17; - * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** - * - * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -235,13 +171,10 @@ public interface ValueOrBuilder
    * 
* * string string_value = 17; - * * @return The stringValue. */ java.lang.String getStringValue(); /** - * - * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -249,14 +182,12 @@ public interface ValueOrBuilder
    * 
* * string string_value = 17; - * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString getStringValueBytes(); + com.google.protobuf.ByteString + getStringValueBytes(); /** - * - * *
    * A blob value.
    * May have at most 1,000,000 bytes.
@@ -265,13 +196,10 @@ public interface ValueOrBuilder
    * 
* * bytes blob_value = 18; - * * @return Whether the blobValue field is set. */ boolean hasBlobValue(); /** - * - * *
    * A blob value.
    * May have at most 1,000,000 bytes.
@@ -280,38 +208,29 @@ public interface ValueOrBuilder
    * 
* * bytes blob_value = 18; - * * @return The blobValue. */ com.google.protobuf.ByteString getBlobValue(); /** - * - * *
    * A geo point value representing a point on the surface of Earth.
    * 
* * .google.type.LatLng geo_point_value = 8; - * * @return Whether the geoPointValue field is set. */ boolean hasGeoPointValue(); /** - * - * *
    * A geo point value representing a point on the surface of Earth.
    * 
* * .google.type.LatLng geo_point_value = 8; - * * @return The geoPointValue. */ com.google.type.LatLng getGeoPointValue(); /** - * - * *
    * A geo point value representing a point on the surface of Earth.
    * 
@@ -321,8 +240,6 @@ public interface ValueOrBuilder com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder(); /** - * - * *
    * An entity value.
    * - May have no key.
@@ -331,13 +248,10 @@ public interface ValueOrBuilder
    * 
* * .google.datastore.v1.Entity entity_value = 6; - * * @return Whether the entityValue field is set. */ boolean hasEntityValue(); /** - * - * *
    * An entity value.
    * - May have no key.
@@ -346,13 +260,10 @@ public interface ValueOrBuilder
    * 
* * .google.datastore.v1.Entity entity_value = 6; - * * @return The entityValue. */ com.google.datastore.v1.Entity getEntityValue(); /** - * - * *
    * An entity value.
    * - May have no key.
@@ -365,8 +276,6 @@ public interface ValueOrBuilder
   com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder();
 
   /**
-   *
-   *
    * 
    * An array value.
    * Cannot contain another array value.
@@ -375,13 +284,10 @@ public interface ValueOrBuilder
    * 
* * .google.datastore.v1.ArrayValue array_value = 9; - * * @return Whether the arrayValue field is set. */ boolean hasArrayValue(); /** - * - * *
    * An array value.
    * Cannot contain another array value.
@@ -390,13 +296,10 @@ public interface ValueOrBuilder
    * 
* * .google.datastore.v1.ArrayValue array_value = 9; - * * @return The arrayValue. */ com.google.datastore.v1.ArrayValue getArrayValue(); /** - * - * *
    * An array value.
    * Cannot contain another array value.
@@ -409,28 +312,22 @@ public interface ValueOrBuilder
   com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder();
 
   /**
-   *
-   *
    * 
    * The `meaning` field should only be populated for backwards compatibility.
    * 
* * int32 meaning = 14; - * * @return The meaning. */ int getMeaning(); /** - * - * *
    * If the value should be excluded from all indexes including those defined
    * explicitly.
    * 
* * bool exclude_from_indexes = 19; - * * @return The excludeFromIndexes. */ boolean getExcludeFromIndexes(); diff --git a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto similarity index 100% rename from proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto diff --git a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto similarity index 100% rename from proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto diff --git a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto similarity index 100% rename from proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto rename to owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java deleted file mode 100644 index 810e65ae7..000000000 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java +++ /dev/null @@ -1,405 +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/datastore/admin/v1/datastore_admin.proto - -package com.google.datastore.admin.v1; - -public final class DatastoreAdminProto { - private DatastoreAdminProto() {} - - 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_datastore_admin_v1_CommonMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_Progress_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_EntityFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n/google/datastore/admin/v1/datastore_ad" - + "min.proto\022\031google.datastore.admin.v1\032\034go" - + "ogle/api/annotations.proto\032\027google/api/c" - + "lient.proto\032\037google/api/field_behavior.p" - + "roto\032%google/datastore/admin/v1/index.pr" - + "oto\032)google/datastore/admin/v1/migration" - + ".proto\032#google/longrunning/operations.pr" - + "oto\032\037google/protobuf/timestamp.proto\"\364\003\n" - + "\016CommonMetadata\022.\n\nstart_time\030\001 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(" - + "\0132\032.google.protobuf.Timestamp\022@\n\016operati" - + "on_type\030\003 \001(\0162(.google.datastore.admin.v" - + "1.OperationType\022E\n\006labels\030\004 \003(\01325.google" - + ".datastore.admin.v1.CommonMetadata.Label" - + "sEntry\022>\n\005state\030\005 \001(\0162/.google.datastore" - + ".admin.v1.CommonMetadata.State\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\213\001" - + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014INITIA" - + "LIZING\020\001\022\016\n\nPROCESSING\020\002\022\016\n\nCANCELLING\020\003" - + "\022\016\n\nFINALIZING\020\004\022\016\n\nSUCCESSFUL\020\005\022\n\n\006FAIL" - + "ED\020\006\022\r\n\tCANCELLED\020\007\":\n\010Progress\022\026\n\016work_" - + "completed\030\001 \001(\003\022\026\n\016work_estimated\030\002 \001(\003\"" - + "\215\002\n\025ExportEntitiesRequest\022\027\n\nproject_id\030" - + "\001 \001(\tB\003\340A\002\022L\n\006labels\030\002 \003(\0132<.google.data" - + "store.admin.v1.ExportEntitiesRequest.Lab" - + "elsEntry\022>\n\rentity_filter\030\003 \001(\0132\'.google" - + ".datastore.admin.v1.EntityFilter\022\036\n\021outp" - + "ut_url_prefix\030\004 \001(\tB\003\340A\002\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\002\n\025Impo" - + "rtEntitiesRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" - + "A\002\022L\n\006labels\030\002 \003(\0132<.google.datastore.ad" - + "min.v1.ImportEntitiesRequest.LabelsEntry" - + "\022\026\n\tinput_url\030\003 \001(\tB\003\340A\002\022>\n\rentity_filte" - + "r\030\004 \001(\0132\'.google.datastore.admin.v1.Enti" - + "tyFilter\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\",\n\026ExportEntitiesRespons" - + "e\022\022\n\noutput_url\030\001 \001(\t\"\253\002\n\026ExportEntities" - + "Metadata\0229\n\006common\030\001 \001(\0132).google.datast" - + "ore.admin.v1.CommonMetadata\022>\n\021progress_" - + "entities\030\002 \001(\0132#.google.datastore.admin." - + "v1.Progress\022;\n\016progress_bytes\030\003 \001(\0132#.go" - + "ogle.datastore.admin.v1.Progress\022>\n\renti" - + "ty_filter\030\004 \001(\0132\'.google.datastore.admin" - + ".v1.EntityFilter\022\031\n\021output_url_prefix\030\005 " - + "\001(\t\"\243\002\n\026ImportEntitiesMetadata\0229\n\006common" - + "\030\001 \001(\0132).google.datastore.admin.v1.Commo" - + "nMetadata\022>\n\021progress_entities\030\002 \001(\0132#.g" - + "oogle.datastore.admin.v1.Progress\022;\n\016pro" - + "gress_bytes\030\003 \001(\0132#.google.datastore.adm" - + "in.v1.Progress\022>\n\rentity_filter\030\004 \001(\0132\'." - + "google.datastore.admin.v1.EntityFilter\022\021" - + "\n\tinput_url\030\005 \001(\t\"4\n\014EntityFilter\022\r\n\005kin" - + "ds\030\001 \003(\t\022\025\n\rnamespace_ids\030\002 \003(\t\"Y\n\022Creat" - + "eIndexRequest\022\022\n\nproject_id\030\001 \001(\t\022/\n\005ind" - + "ex\030\003 \001(\0132 .google.datastore.admin.v1.Ind" - + "ex\":\n\022DeleteIndexRequest\022\022\n\nproject_id\030\001" - + " \001(\t\022\020\n\010index_id\030\003 \001(\t\"7\n\017GetIndexReques" - + "t\022\022\n\nproject_id\030\001 \001(\t\022\020\n\010index_id\030\003 \001(\t\"" - + "_\n\022ListIndexesRequest\022\022\n\nproject_id\030\001 \001(" - + "\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\n" - + "page_token\030\005 \001(\t\"a\n\023ListIndexesResponse\022" - + "1\n\007indexes\030\001 \003(\0132 .google.datastore.admi" - + "n.v1.Index\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n\026" - + "IndexOperationMetadata\0229\n\006common\030\001 \001(\0132)" - + ".google.datastore.admin.v1.CommonMetadat" - + "a\022>\n\021progress_entities\030\002 \001(\0132#.google.da" - + "tastore.admin.v1.Progress\022\020\n\010index_id\030\003 " - + "\001(\t\"\253\001\n#DatastoreFirestoreMigrationMetad" - + "ata\022B\n\017migration_state\030\001 \001(\0162).google.da" - + "tastore.admin.v1.MigrationState\022@\n\016migra" - + "tion_step\030\002 \001(\0162(.google.datastore.admin" - + ".v1.MigrationStep*}\n\rOperationType\022\036\n\032OP" - + "ERATION_TYPE_UNSPECIFIED\020\000\022\023\n\017EXPORT_ENT" - + "ITIES\020\001\022\023\n\017IMPORT_ENTITIES\020\002\022\020\n\014CREATE_I" - + "NDEX\020\003\022\020\n\014DELETE_INDEX\020\0042\204\n\n\016DatastoreAd" - + "min\022\366\001\n\016ExportEntities\0220.google.datastor" - + "e.admin.v1.ExportEntitiesRequest\032\035.googl" - + "e.longrunning.Operation\"\222\001\202\323\344\223\002%\" /v1/pr" - + "ojects/{project_id}:export:\001*\332A1project_" - + "id,labels,entity_filter,output_url_prefi" - + "x\312A0\n\026ExportEntitiesResponse\022\026ExportEnti" - + "tiesMetadata\022\355\001\n\016ImportEntities\0220.google" - + ".datastore.admin.v1.ImportEntitiesReques" - + "t\032\035.google.longrunning.Operation\"\211\001\202\323\344\223\002" - + "%\" /v1/projects/{project_id}:import:\001*\332A" - + ")project_id,labels,input_url,entity_filt" - + "er\312A/\n\025google.protobuf.Empty\022\026ImportEnti" - + "tiesMetadata\022\257\001\n\013CreateIndex\022-.google.da" - + "tastore.admin.v1.CreateIndexRequest\032\035.go" - + "ogle.longrunning.Operation\"R\202\323\344\223\002*\"!/v1/" - + "projects/{project_id}/indexes:\005index\312A\037\n" - + "\005Index\022\026IndexOperationMetadata\022\263\001\n\013Delet" - + "eIndex\022-.google.datastore.admin.v1.Delet" - + "eIndexRequest\032\035.google.longrunning.Opera" - + "tion\"V\202\323\344\223\002.*,/v1/projects/{project_id}/" - + "indexes/{index_id}\312A\037\n\005Index\022\026IndexOpera" - + "tionMetadata\022\216\001\n\010GetIndex\022*.google.datas" - + "tore.admin.v1.GetIndexRequest\032 .google.d" - + "atastore.admin.v1.Index\"4\202\323\344\223\002.\022,/v1/pro" - + "jects/{project_id}/indexes/{index_id}\022\227\001" - + "\n\013ListIndexes\022-.google.datastore.admin.v" - + "1.ListIndexesRequest\032..google.datastore." - + "admin.v1.ListIndexesResponse\")\202\323\344\223\002#\022!/v" - + "1/projects/{project_id}/indexes\032v\312A\030data" - + "store.googleapis.com\322AXhttps://www.googl" - + "eapis.com/auth/cloud-platform,https://ww" - + "w.googleapis.com/auth/datastoreB\340\001\n\035com." - + "google.datastore.admin.v1B\023DatastoreAdmi" - + "nProtoP\001Z>google.golang.org/genproto/goo" - + "gleapis/datastore/admin/v1;admin\252\002\037Googl" - + "e.Cloud.Datastore.Admin.V1\312\002\037Google\\Clou" - + "d\\Datastore\\Admin\\V1\352\002#Google::Cloud::Da" - + "tastore::Admin::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.datastore.admin.v1.IndexProto.getDescriptor(), - com.google.datastore.admin.v1.MigrationProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_datastore_admin_v1_CommonMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_CommonMetadata_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", "OperationType", "Labels", "State", - }); - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor = - internal_static_google_datastore_admin_v1_CommonMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_datastore_admin_v1_Progress_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_Progress_descriptor, - new java.lang.String[] { - "WorkCompleted", "WorkEstimated", - }); - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Labels", "EntityFilter", "OutputUrlPrefix", - }); - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor = - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Labels", "InputUrl", "EntityFilter", - }); - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor = - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor, - new java.lang.String[] { - "OutputUrl", - }); - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor, - new java.lang.String[] { - "Common", "ProgressEntities", "ProgressBytes", "EntityFilter", "OutputUrlPrefix", - }); - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor, - new java.lang.String[] { - "Common", "ProgressEntities", "ProgressBytes", "EntityFilter", "InputUrl", - }); - internal_static_google_datastore_admin_v1_EntityFilter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_EntityFilter_descriptor, - new java.lang.String[] { - "Kinds", "NamespaceIds", - }); - internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Index", - }); - internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor, - new java.lang.String[] { - "ProjectId", "IndexId", - }); - internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor, - new java.lang.String[] { - "ProjectId", "IndexId", - }); - internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Filter", "PageSize", "PageToken", - }); - internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor, - new java.lang.String[] { - "Indexes", "NextPageToken", - }); - internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor, - new java.lang.String[] { - "Common", "ProgressEntities", "IndexId", - }); - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor, - new java.lang.String[] { - "MigrationState", "MigrationStep", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.datastore.admin.v1.IndexProto.getDescriptor(); - com.google.datastore.admin.v1.MigrationProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java deleted file mode 100644 index d30a12ec7..000000000 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java +++ /dev/null @@ -1,103 +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/datastore/admin/v1/index.proto - -package com.google.datastore.admin.v1; - -public final class IndexProto { - private IndexProto() {} - - 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_datastore_admin_v1_Index_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_Index_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n%google/datastore/admin/v1/index.proto\022" - + "\031google.datastore.admin.v1\032\037google/api/f" - + "ield_behavior.proto\"\346\004\n\005Index\022\027\n\nproject" - + "_id\030\001 \001(\tB\003\340A\003\022\025\n\010index_id\030\003 \001(\tB\003\340A\003\022\021\n" - + "\004kind\030\004 \001(\tB\003\340A\002\022D\n\010ancestor\030\005 \001(\0162-.goo" - + "gle.datastore.admin.v1.Index.AncestorMod" - + "eB\003\340A\002\022I\n\nproperties\030\006 \003(\01320.google.data" - + "store.admin.v1.Index.IndexedPropertyB\003\340A" - + "\002\022:\n\005state\030\007 \001(\0162&.google.datastore.admi" - + "n.v1.Index.StateB\003\340A\003\032h\n\017IndexedProperty" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022B\n\tdirection\030\002 \001(\0162*" - + ".google.datastore.admin.v1.Index.Directi" - + "onB\003\340A\002\"J\n\014AncestorMode\022\035\n\031ANCESTOR_MODE" - + "_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\021\n\rALL_ANCESTOR" - + "S\020\002\"E\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIE" - + "D\020\000\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"P\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001" - + "\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERROR\020\004B\327\001\n" - + "\035com.google.datastore.admin.v1B\nIndexPro" - + "toP\001Z>google.golang.org/genproto/googlea" - + "pis/datastore/admin/v1;admin\252\002\037Google.Cl" - + "oud.Datastore.Admin.V1\312\002\037Google\\Cloud\\Da" - + "tastore\\Admin\\V1\352\002#Google::Cloud::Datast" - + "ore::Admin::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_datastore_admin_v1_Index_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_datastore_admin_v1_Index_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_Index_descriptor, - new java.lang.String[] { - "ProjectId", "IndexId", "Kind", "Ancestor", "Properties", "State", - }); - internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor = - internal_static_google_datastore_admin_v1_Index_descriptor.getNestedTypes().get(0); - internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor, - new java.lang.String[] { - "Name", "Direction", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java deleted file mode 100644 index 97561eebd..000000000 --- a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/datastore/admin/v1/migration.proto - -package com.google.datastore.admin.v1; - -public final class MigrationProto { - private MigrationProto() {} - - 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_datastore_admin_v1_MigrationStateEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/datastore/admin/v1/migration.pr" - + "oto\022\031google.datastore.admin.v1\"O\n\023Migrat" - + "ionStateEvent\0228\n\005state\030\001 \001(\0162).google.da" - + "tastore.admin.v1.MigrationState\"\241\005\n\026Migr" - + "ationProgressEvent\0226\n\004step\030\001 \001(\0162(.googl" - + "e.datastore.admin.v1.MigrationStep\022d\n\024pr" - + "epare_step_details\030\002 \001(\0132D.google.datast" - + "ore.admin.v1.MigrationProgressEvent.Prep" - + "areStepDetailsH\000\022s\n\034redirect_writes_step" - + "_details\030\003 \001(\0132K.google.datastore.admin." - + "v1.MigrationProgressEvent.RedirectWrites" - + "StepDetailsH\000\032q\n\022PrepareStepDetails\022[\n\020c" - + "oncurrency_mode\030\001 \001(\0162A.google.datastore" - + ".admin.v1.MigrationProgressEvent.Concurr" - + "encyMode\032x\n\031RedirectWritesStepDetails\022[\n" - + "\020concurrency_mode\030\001 \001(\0162A.google.datasto" - + "re.admin.v1.MigrationProgressEvent.Concu" - + "rrencyMode\"w\n\017ConcurrencyMode\022 \n\034CONCURR" - + "ENCY_MODE_UNSPECIFIED\020\000\022\017\n\013PESSIMISTIC\020\001" - + "\022\016\n\nOPTIMISTIC\020\002\022!\n\035OPTIMISTIC_WITH_ENTI" - + "TY_GROUPS\020\003B\016\n\014step_details*X\n\016Migration" - + "State\022\037\n\033MIGRATION_STATE_UNSPECIFIED\020\000\022\013" - + "\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014\n\010COMPLETE\020\003*\343\001" - + "\n\rMigrationStep\022\036\n\032MIGRATION_STEP_UNSPEC" - + "IFIED\020\000\022\013\n\007PREPARE\020\006\022\t\n\005START\020\001\022\036\n\032APPLY" - + "_WRITES_SYNCHRONOUSLY\020\007\022\023\n\017COPY_AND_VERI" - + "FY\020\002\022(\n$REDIRECT_EVENTUALLY_CONSISTENT_R" - + "EADS\020\003\022&\n\"REDIRECT_STRONGLY_CONSISTENT_R" - + "EADS\020\004\022\023\n\017REDIRECT_WRITES\020\005B\333\001\n\035com.goog" - + "le.datastore.admin.v1B\016MigrationProtoP\001Z" - + ">google.golang.org/genproto/googleapis/d" - + "atastore/admin/v1;admin\252\002\037Google.Cloud.D" - + "atastore.Admin.V1\312\002\037Google\\Cloud\\Datasto" - + "re\\Admin\\V1\352\002#Google::Cloud::Datastore::" - + "Admin::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor, - new java.lang.String[] { - "State", - }); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor, - new java.lang.String[] { - "Step", "PrepareStepDetails", "RedirectWritesStepDetails", "StepDetails", - }); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor = - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor - .getNestedTypes() - .get(0); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor, - new java.lang.String[] { - "ConcurrencyMode", - }); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor = - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor - .getNestedTypes() - .get(1); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor, - new java.lang.String[] { - "ConcurrencyMode", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java deleted file mode 100644 index 950fac3fb..000000000 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.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/datastore/v1/datastore.proto - -package com.google.datastore.v1; - -public interface BeginTransactionResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.datastore.v1.BeginTransactionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The transaction identifier (always present).
-   * 
- * - * bytes transaction = 1; - * - * @return The transaction. - */ - com.google.protobuf.ByteString getTransaction(); -} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java deleted file mode 100644 index 256f06c9a..000000000 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java +++ /dev/null @@ -1,424 +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/datastore/v1/datastore.proto - -package com.google.datastore.v1; - -public final class DatastoreProto { - private DatastoreProto() {} - - 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_datastore_v1_LookupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_LookupResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_RunQueryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_RunQueryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_RollbackRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_RollbackResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_CommitRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_CommitResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_Mutation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_Mutation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_MutationResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_MutationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_ReadOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_TransactionOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n#google/datastore/v1/datastore.proto\022\023g" - + "oogle.datastore.v1\032\034google/api/annotatio" - + "ns.proto\032\027google/api/client.proto\032\037googl" - + "e/api/field_behavior.proto\032 google/datas" - + "tore/v1/entity.proto\032\037google/datastore/v" - + "1/query.proto\032\037google/protobuf/timestamp" - + ".proto\"\215\001\n\rLookupRequest\022\027\n\nproject_id\030\010" - + " \001(\tB\003\340A\002\0226\n\014read_options\030\001 \001(\0132 .google" - + ".datastore.v1.ReadOptions\022+\n\004keys\030\003 \003(\0132" - + "\030.google.datastore.v1.KeyB\003\340A\002\"\321\001\n\016Looku" - + "pResponse\0220\n\005found\030\001 \003(\0132!.google.datast" - + "ore.v1.EntityResult\0222\n\007missing\030\002 \003(\0132!.g" - + "oogle.datastore.v1.EntityResult\022*\n\010defer" - + "red\030\003 \003(\0132\030.google.datastore.v1.Key\022-\n\tr" - + "ead_time\030\007 \001(\0132\032.google.protobuf.Timesta" - + "mp\"\211\002\n\017RunQueryRequest\022\027\n\nproject_id\030\010 \001" - + "(\tB\003\340A\002\0226\n\014partition_id\030\002 \001(\0132 .google.d" - + "atastore.v1.PartitionId\0226\n\014read_options\030" - + "\001 \001(\0132 .google.datastore.v1.ReadOptions\022" - + "+\n\005query\030\003 \001(\0132\032.google.datastore.v1.Que" - + "ryH\000\0222\n\tgql_query\030\007 \001(\0132\035.google.datasto" - + "re.v1.GqlQueryH\000B\014\n\nquery_type\"s\n\020RunQue" - + "ryResponse\0224\n\005batch\030\001 \001(\0132%.google.datas" - + "tore.v1.QueryResultBatch\022)\n\005query\030\002 \001(\0132" - + "\032.google.datastore.v1.Query\"x\n\027BeginTran" - + "sactionRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022" - + "D\n\023transaction_options\030\n \001(\0132\'.google.da" - + "tastore.v1.TransactionOptions\"/\n\030BeginTr" - + "ansactionResponse\022\023\n\013transaction\030\001 \001(\014\"D" - + "\n\017RollbackRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340" - + "A\002\022\030\n\013transaction\030\001 \001(\014B\003\340A\002\"\022\n\020Rollback" - + "Response\"\210\002\n\rCommitRequest\022\027\n\nproject_id" - + "\030\010 \001(\tB\003\340A\002\0225\n\004mode\030\005 \001(\0162\'.google.datas" - + "tore.v1.CommitRequest.Mode\022\025\n\013transactio" - + "n\030\001 \001(\014H\000\0220\n\tmutations\030\006 \003(\0132\035.google.da" - + "tastore.v1.Mutation\"F\n\004Mode\022\024\n\020MODE_UNSP" - + "ECIFIED\020\000\022\021\n\rTRANSACTIONAL\020\001\022\025\n\021NON_TRAN" - + "SACTIONAL\020\002B\026\n\024transaction_selector\"\227\001\n\016" - + "CommitResponse\022=\n\020mutation_results\030\003 \003(\013" - + "2#.google.datastore.v1.MutationResult\022\025\n" - + "\rindex_updates\030\004 \001(\005\022/\n\013commit_time\030\010 \001(" - + "\0132\032.google.protobuf.Timestamp\"Z\n\022Allocat" - + "eIdsRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022+\n\004" - + "keys\030\001 \003(\0132\030.google.datastore.v1.KeyB\003\340A" - + "\002\"=\n\023AllocateIdsResponse\022&\n\004keys\030\001 \003(\0132\030" - + ".google.datastore.v1.Key\"n\n\021ReserveIdsRe" - + "quest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022\023\n\013databa" - + "se_id\030\t \001(\t\022+\n\004keys\030\001 \003(\0132\030.google.datas" - + "tore.v1.KeyB\003\340A\002\"\024\n\022ReserveIdsResponse\"\272" - + "\002\n\010Mutation\022-\n\006insert\030\004 \001(\0132\033.google.dat" - + "astore.v1.EntityH\000\022-\n\006update\030\005 \001(\0132\033.goo" - + "gle.datastore.v1.EntityH\000\022-\n\006upsert\030\006 \001(" - + "\0132\033.google.datastore.v1.EntityH\000\022*\n\006dele" - + "te\030\007 \001(\0132\030.google.datastore.v1.KeyH\000\022\026\n\014" - + "base_version\030\010 \001(\003H\001\0221\n\013update_time\030\013 \001(" - + "\0132\032.google.protobuf.TimestampH\001B\013\n\topera" - + "tionB\035\n\033conflict_detection_strategy\"\224\001\n\016" - + "MutationResult\022%\n\003key\030\003 \001(\0132\030.google.dat" - + "astore.v1.Key\022\017\n\007version\030\004 \001(\003\022/\n\013update" - + "_time\030\006 \001(\0132\032.google.protobuf.Timestamp\022" - + "\031\n\021conflict_detected\030\005 \001(\010\"\206\002\n\013ReadOptio" - + "ns\022L\n\020read_consistency\030\001 \001(\01620.google.da" - + "tastore.v1.ReadOptions.ReadConsistencyH\000" - + "\022\025\n\013transaction\030\002 \001(\014H\000\022/\n\tread_time\030\004 \001" - + "(\0132\032.google.protobuf.TimestampH\000\"M\n\017Read" - + "Consistency\022 \n\034READ_CONSISTENCY_UNSPECIF" - + "IED\020\000\022\n\n\006STRONG\020\001\022\014\n\010EVENTUAL\020\002B\022\n\020consi" - + "stency_type\"\222\002\n\022TransactionOptions\022G\n\nre" - + "ad_write\030\001 \001(\01321.google.datastore.v1.Tra" - + "nsactionOptions.ReadWriteH\000\022E\n\tread_only" - + "\030\002 \001(\01320.google.datastore.v1.Transaction" - + "Options.ReadOnlyH\000\032)\n\tReadWrite\022\034\n\024previ" - + "ous_transaction\030\001 \001(\014\0329\n\010ReadOnly\022-\n\trea" - + "d_time\030\001 \001(\0132\032.google.protobuf.Timestamp" - + "B\006\n\004mode2\223\n\n\tDatastore\022\235\001\n\006Lookup\022\".goog" - + "le.datastore.v1.LookupRequest\032#.google.d" - + "atastore.v1.LookupResponse\"J\202\323\344\223\002%\" /v1/" - + "projects/{project_id}:lookup:\001*\332A\034projec" - + "t_id,read_options,keys\022\206\001\n\010RunQuery\022$.go" - + "ogle.datastore.v1.RunQueryRequest\032%.goog" - + "le.datastore.v1.RunQueryResponse\"-\202\323\344\223\002\'" - + "\"\"/v1/projects/{project_id}:runQuery:\001*\022" - + "\263\001\n\020BeginTransaction\022,.google.datastore." - + "v1.BeginTransactionRequest\032-.google.data" - + "store.v1.BeginTransactionResponse\"B\202\323\344\223\002" - + "/\"*/v1/projects/{project_id}:beginTransa" - + "ction:\001*\332A\nproject_id\022\302\001\n\006Commit\022\".googl" - + "e.datastore.v1.CommitRequest\032#.google.da" - + "tastore.v1.CommitResponse\"o\202\323\344\223\002%\" /v1/p" - + "rojects/{project_id}:commit:\001*\332A%project" - + "_id,mode,transaction,mutations\332A\031project" - + "_id,mode,mutations\022\237\001\n\010Rollback\022$.google" - + ".datastore.v1.RollbackRequest\032%.google.d" - + "atastore.v1.RollbackResponse\"F\202\323\344\223\002\'\"\"/v" - + "1/projects/{project_id}:rollback:\001*\332A\026pr" - + "oject_id,transaction\022\244\001\n\013AllocateIds\022\'.g" - + "oogle.datastore.v1.AllocateIdsRequest\032(." - + "google.datastore.v1.AllocateIdsResponse\"" - + "B\202\323\344\223\002*\"%/v1/projects/{project_id}:alloc" - + "ateIds:\001*\332A\017project_id,keys\022\240\001\n\nReserveI" - + "ds\022&.google.datastore.v1.ReserveIdsReque" - + "st\032\'.google.datastore.v1.ReserveIdsRespo" - + "nse\"A\202\323\344\223\002)\"$/v1/projects/{project_id}:r" - + "eserveIds:\001*\332A\017project_id,keys\032v\312A\030datas" - + "tore.googleapis.com\322AXhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/datastoreB\300\001\n\027com.g" - + "oogle.datastore.v1B\016DatastoreProtoP\001Z - * The name of the kind. - *
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of the kind.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java deleted file mode 100644 index 105bbe4d3..000000000 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java +++ /dev/null @@ -1,52 +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/datastore/v1/query.proto - -package com.google.datastore.v1; - -public interface PropertyReferenceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.datastore.v1.PropertyReference) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name of the property.
-   * If name includes "."s, it may be interpreted as a property name path.
-   * 
- * - * string name = 2; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of the property.
-   * If name includes "."s, it may be interpreted as a property name path.
-   * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java deleted file mode 100644 index d96e6c2d9..000000000 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java +++ /dev/null @@ -1,298 +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/datastore/v1/query.proto - -package com.google.datastore.v1; - -public final class QueryProto { - private QueryProto() {} - - 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_datastore_v1_EntityResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_EntityResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_Query_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_Query_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_KindExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_KindExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_PropertyReference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_Projection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_Projection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_PropertyOrder_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_CompositeFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_PropertyFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_GqlQuery_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_GqlQueryParameter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_QueryResultBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\037google/datastore/v1/query.proto\022\023googl" - + "e.datastore.v1\032 google/datastore/v1/enti" - + "ty.proto\032\037google/protobuf/timestamp.prot" - + "o\032\036google/protobuf/wrappers.proto\"\340\001\n\014En" - + "tityResult\022+\n\006entity\030\001 \001(\0132\033.google.data" - + "store.v1.Entity\022\017\n\007version\030\004 \001(\003\022/\n\013upda" - + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" - + "p\022\016\n\006cursor\030\003 \001(\014\"Q\n\nResultType\022\033\n\027RESUL" - + "T_TYPE_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022\016\n\nPROJEC" - + "TION\020\002\022\014\n\010KEY_ONLY\020\003\"\362\002\n\005Query\0223\n\nprojec" - + "tion\030\002 \003(\0132\037.google.datastore.v1.Project" - + "ion\0221\n\004kind\030\003 \003(\0132#.google.datastore.v1." - + "KindExpression\022+\n\006filter\030\004 \001(\0132\033.google." - + "datastore.v1.Filter\0221\n\005order\030\005 \003(\0132\".goo" - + "gle.datastore.v1.PropertyOrder\022;\n\013distin" - + "ct_on\030\006 \003(\0132&.google.datastore.v1.Proper" - + "tyReference\022\024\n\014start_cursor\030\007 \001(\014\022\022\n\nend" - + "_cursor\030\010 \001(\014\022\016\n\006offset\030\n \001(\005\022*\n\005limit\030\014" - + " \001(\0132\033.google.protobuf.Int32Value\"\036\n\016Kin" - + "dExpression\022\014\n\004name\030\001 \001(\t\"!\n\021PropertyRef" - + "erence\022\014\n\004name\030\002 \001(\t\"F\n\nProjection\0228\n\010pr" - + "operty\030\001 \001(\0132&.google.datastore.v1.Prope" - + "rtyReference\"\321\001\n\rPropertyOrder\0228\n\010proper" - + "ty\030\001 \001(\0132&.google.datastore.v1.PropertyR" - + "eference\022?\n\tdirection\030\002 \001(\0162,.google.dat" - + "astore.v1.PropertyOrder.Direction\"E\n\tDir" - + "ection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\r\n\tASC" - + "ENDING\020\001\022\016\n\nDESCENDING\020\002\"\231\001\n\006Filter\022@\n\020c" - + "omposite_filter\030\001 \001(\0132$.google.datastore" - + ".v1.CompositeFilterH\000\022>\n\017property_filter" - + "\030\002 \001(\0132#.google.datastore.v1.PropertyFil" - + "terH\000B\r\n\013filter_type\"\251\001\n\017CompositeFilter" - + "\0229\n\002op\030\001 \001(\0162-.google.datastore.v1.Compo" - + "siteFilter.Operator\022,\n\007filters\030\002 \003(\0132\033.g" - + "oogle.datastore.v1.Filter\"-\n\010Operator\022\030\n" - + "\024OPERATOR_UNSPECIFIED\020\000\022\007\n\003AND\020\001\"\352\002\n\016Pro" - + "pertyFilter\0228\n\010property\030\001 \001(\0132&.google.d" - + "atastore.v1.PropertyReference\0228\n\002op\030\002 \001(" - + "\0162,.google.datastore.v1.PropertyFilter.O" - + "perator\022)\n\005value\030\003 \001(\0132\032.google.datastor" - + "e.v1.Value\"\270\001\n\010Operator\022\030\n\024OPERATOR_UNSP" - + "ECIFIED\020\000\022\r\n\tLESS_THAN\020\001\022\026\n\022LESS_THAN_OR" - + "_EQUAL\020\002\022\020\n\014GREATER_THAN\020\003\022\031\n\025GREATER_TH" - + "AN_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\006\n\002IN\020\006\022\r\n\tNOT_" - + "EQUAL\020\t\022\020\n\014HAS_ANCESTOR\020\013\022\n\n\006NOT_IN\020\r\"\245\002" - + "\n\010GqlQuery\022\024\n\014query_string\030\001 \001(\t\022\026\n\016allo" - + "w_literals\030\002 \001(\010\022H\n\016named_bindings\030\005 \003(\013" - + "20.google.datastore.v1.GqlQuery.NamedBin" - + "dingsEntry\022C\n\023positional_bindings\030\004 \003(\0132" - + "&.google.datastore.v1.GqlQueryParameter\032" - + "\\\n\022NamedBindingsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005va" - + "lue\030\002 \001(\0132&.google.datastore.v1.GqlQuery" - + "Parameter:\0028\001\"d\n\021GqlQueryParameter\022+\n\005va" - + "lue\030\002 \001(\0132\032.google.datastore.v1.ValueH\000\022" - + "\020\n\006cursor\030\003 \001(\014H\000B\020\n\016parameter_type\"\215\004\n\020" - + "QueryResultBatch\022\027\n\017skipped_results\030\006 \001(" - + "\005\022\026\n\016skipped_cursor\030\003 \001(\014\022H\n\022entity_resu" - + "lt_type\030\001 \001(\0162,.google.datastore.v1.Enti" - + "tyResult.ResultType\0229\n\016entity_results\030\002 " - + "\003(\0132!.google.datastore.v1.EntityResult\022\022" - + "\n\nend_cursor\030\004 \001(\014\022K\n\014more_results\030\005 \001(\016" - + "25.google.datastore.v1.QueryResultBatch." - + "MoreResultsType\022\030\n\020snapshot_version\030\007 \001(" - + "\003\022-\n\tread_time\030\010 \001(\0132\032.google.protobuf.T" - + "imestamp\"\230\001\n\017MoreResultsType\022!\n\035MORE_RES" - + "ULTS_TYPE_UNSPECIFIED\020\000\022\020\n\014NOT_FINISHED\020" - + "\001\022\034\n\030MORE_RESULTS_AFTER_LIMIT\020\002\022\035\n\031MORE_" - + "RESULTS_AFTER_CURSOR\020\004\022\023\n\017NO_MORE_RESULT" - + "S\020\003B\274\001\n\027com.google.datastore.v1B\nQueryPr" - + "otoP\001Z Date: Thu, 23 Jun 2022 02:47:02 +0000 Subject: [PATCH 2/4] =?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 --- README.md | 4 +- .../admin/v1/DatastoreAdminClient.java | 37 +- .../admin/v1/DatastoreAdminSettings.java | 23 +- .../admin/v1/stub/DatastoreAdminStub.java | 6 +- .../v1/stub/DatastoreAdminStubSettings.java | 53 +- ...HttpJsonDatastoreAdminCallableFactory.java | 0 .../v1/stub/HttpJsonDatastoreAdminStub.java | 1 - .../v1/DatastoreAdminClientHttpJsonTest.java | 0 .../admin/v1/DatastoreAdminClient.java | 1031 ---------- .../admin/v1/DatastoreAdminSettings.java | 324 ---- .../datastore/admin/v1/gapic_metadata.json | 36 - .../datastore/admin/v1/package-info.java | 97 - .../admin/v1/stub/DatastoreAdminStub.java | 108 -- .../v1/stub/DatastoreAdminStubSettings.java | 718 ------- .../GrpcDatastoreAdminCallableFactory.java | 113 -- .../admin/v1/stub/GrpcDatastoreAdminStub.java | 386 ---- .../admin/v1/DatastoreAdminClientTest.java | 428 ----- .../admin/v1/MockDatastoreAdmin.java | 59 - .../admin/v1/MockDatastoreAdminImpl.java | 192 -- .../admin/v1/DatastoreAdminGrpc.java | 1056 ---------- .../admin/v1/DatastoreAdminProto.java | 369 ---- .../google/datastore/admin/v1/IndexProto.java | 87 - .../datastore/admin/v1/MigrationProto.java | 113 -- .../v1/BeginTransactionResponseOrBuilder.java | 19 - .../google/datastore/v1/DatastoreProto.java | 387 ---- .../com/google/datastore/v1/EntityProto.java | 151 -- .../datastore/v1/KindExpressionOrBuilder.java | 29 - .../v1/PropertyReferenceOrBuilder.java | 31 - .../com/google/datastore/v1/QueryProto.java | 257 --- .../v1/ReserveIdsResponseOrBuilder.java | 9 - .../v1/RollbackResponseOrBuilder.java | 9 - .../datastore/admin/v1/CommonMetadata.java | 897 +++++---- .../admin/v1/CommonMetadataOrBuilder.java | 77 +- .../admin/v1/CreateIndexRequest.java | 399 ++-- .../admin/v1/CreateIndexRequestOrBuilder.java | 35 +- .../admin/v1/DatastoreAdminProto.java | 405 ++++ .../DatastoreFirestoreMigrationMetadata.java | 392 ++-- ...reFirestoreMigrationMetadataOrBuilder.java | 30 +- .../admin/v1/DeleteIndexRequest.java | 387 ++-- .../admin/v1/DeleteIndexRequestOrBuilder.java | 36 +- .../datastore/admin/v1/EntityFilter.java | 443 +++-- .../admin/v1/EntityFilterOrBuilder.java | 54 +- .../admin/v1/ExportEntitiesMetadata.java | 712 ++++--- .../v1/ExportEntitiesMetadataOrBuilder.java | 59 +- .../admin/v1/ExportEntitiesRequest.java | 750 ++++---- .../v1/ExportEntitiesRequestOrBuilder.java | 75 +- .../admin/v1/ExportEntitiesResponse.java | 311 +-- .../v1/ExportEntitiesResponseOrBuilder.java | 27 +- .../datastore/admin/v1/GetIndexRequest.java | 380 ++-- .../admin/v1/GetIndexRequestOrBuilder.java | 36 +- .../admin/v1/ImportEntitiesMetadata.java | 712 ++++--- .../v1/ImportEntitiesMetadataOrBuilder.java | 59 +- .../admin/v1/ImportEntitiesRequest.java | 750 ++++---- .../v1/ImportEntitiesRequestOrBuilder.java | 75 +- .../com/google/datastore/admin/v1/Index.java | 1478 ++++++++------ .../admin/v1/IndexOperationMetadata.java | 512 +++-- .../v1/IndexOperationMetadataOrBuilder.java | 43 +- .../datastore/admin/v1/IndexOrBuilder.java | 111 +- .../google/datastore/admin/v1/IndexProto.java | 103 + .../admin/v1/ListIndexesRequest.java | 486 +++-- .../admin/v1/ListIndexesRequestOrBuilder.java | 44 +- .../admin/v1/ListIndexesResponse.java | 459 +++-- .../v1/ListIndexesResponseOrBuilder.java | 46 +- .../admin/v1/MigrationProgressEvent.java | 1702 +++++++++++------ .../v1/MigrationProgressEventOrBuilder.java | 73 +- .../datastore/admin/v1/MigrationProto.java | 133 ++ .../datastore/admin/v1/MigrationState.java | 89 +- .../admin/v1/MigrationStateEvent.java | 294 +-- .../v1/MigrationStateEventOrBuilder.java | 24 +- .../datastore/admin/v1/MigrationStep.java | 117 +- .../datastore/admin/v1/OperationType.java | 96 +- .../google/datastore/admin/v1/Progress.java | 292 +-- .../datastore/admin/v1/ProgressOrBuilder.java | 24 +- .../datastore/admin/v1/datastore_admin.proto | 0 .../google/datastore/admin/v1/index.proto | 0 .../google/datastore/admin/v1/migration.proto | 0 .../datastore/v1/AllocateIdsRequest.java | 525 +++-- .../v1/AllocateIdsRequestOrBuilder.java | 61 +- .../datastore/v1/AllocateIdsResponse.java | 377 ++-- .../v1/AllocateIdsResponseOrBuilder.java | 37 +- .../com/google/datastore/v1/ArrayValue.java | 368 ++-- .../datastore/v1/ArrayValueOrBuilder.java | 37 +- .../datastore/v1/BeginTransactionRequest.java | 402 ++-- .../v1/BeginTransactionRequestOrBuilder.java | 35 +- .../v1/BeginTransactionResponse.java | 265 +-- .../v1/BeginTransactionResponseOrBuilder.java | 38 + .../google/datastore/v1/CommitRequest.java | 655 ++++--- .../datastore/v1/CommitRequestOrBuilder.java | 58 +- .../google/datastore/v1/CommitResponse.java | 488 +++-- .../datastore/v1/CommitResponseOrBuilder.java | 47 +- .../google/datastore/v1/CompositeFilter.java | 489 +++-- .../v1/CompositeFilterOrBuilder.java | 43 +- .../google/datastore/v1/DatastoreProto.java | 424 ++++ .../java/com/google/datastore/v1/Entity.java | 547 +++--- .../google/datastore/v1/EntityOrBuilder.java | 57 +- .../com/google/datastore/v1/EntityProto.java | 183 ++ .../com/google/datastore/v1/EntityResult.java | 541 ++++-- .../datastore/v1/EntityResultOrBuilder.java | 40 +- .../java/com/google/datastore/v1/Filter.java | 463 +++-- .../google/datastore/v1/FilterOrBuilder.java | 34 +- .../com/google/datastore/v1/GqlQuery.java | 715 ++++--- .../datastore/v1/GqlQueryOrBuilder.java | 79 +- .../datastore/v1/GqlQueryParameter.java | 432 +++-- .../v1/GqlQueryParameterOrBuilder.java | 32 +- .../java/com/google/datastore/v1/Key.java | 947 +++++---- .../com/google/datastore/v1/KeyOrBuilder.java | 45 +- .../google/datastore/v1/KindExpression.java | 294 +-- .../datastore/v1/KindExpressionOrBuilder.java | 50 + .../google/datastore/v1/LookupRequest.java | 622 +++--- .../datastore/v1/LookupRequestOrBuilder.java | 69 +- .../google/datastore/v1/LookupResponse.java | 754 +++++--- .../datastore/v1/LookupResponseOrBuilder.java | 83 +- .../com/google/datastore/v1/Mutation.java | 910 +++++---- .../datastore/v1/MutationOrBuilder.java | 67 +- .../google/datastore/v1/MutationResult.java | 473 +++-- .../datastore/v1/MutationResultOrBuilder.java | 40 +- .../com/google/datastore/v1/PartitionId.java | 373 ++-- .../datastore/v1/PartitionIdOrBuilder.java | 36 +- .../com/google/datastore/v1/Projection.java | 321 ++-- .../datastore/v1/ProjectionOrBuilder.java | 26 +- .../google/datastore/v1/PropertyFilter.java | 575 ++++-- .../datastore/v1/PropertyFilterOrBuilder.java | 40 +- .../google/datastore/v1/PropertyOrder.java | 447 +++-- .../datastore/v1/PropertyOrderOrBuilder.java | 32 +- .../datastore/v1/PropertyReference.java | 301 +-- .../v1/PropertyReferenceOrBuilder.java | 52 + .../java/com/google/datastore/v1/Query.java | 1083 +++++++---- .../google/datastore/v1/QueryOrBuilder.java | 117 +- .../com/google/datastore/v1/QueryProto.java | 298 +++ .../google/datastore/v1/QueryResultBatch.java | 807 +++++--- .../v1/QueryResultBatchOrBuilder.java | 68 +- .../com/google/datastore/v1/ReadOptions.java | 561 ++++-- .../datastore/v1/ReadOptionsOrBuilder.java | 41 +- .../datastore/v1/ReserveIdsRequest.java | 604 +++--- .../v1/ReserveIdsRequestOrBuilder.java | 70 +- .../datastore/v1/ReserveIdsResponse.java | 225 ++- .../v1/ReserveIdsResponseOrBuilder.java | 24 + .../google/datastore/v1/RollbackRequest.java | 334 ++-- .../v1/RollbackRequestOrBuilder.java | 30 +- .../google/datastore/v1/RollbackResponse.java | 222 ++- .../v1/RollbackResponseOrBuilder.java | 24 + .../google/datastore/v1/RunQueryRequest.java | 767 +++++--- .../v1/RunQueryRequestOrBuilder.java | 59 +- .../google/datastore/v1/RunQueryResponse.java | 411 ++-- .../v1/RunQueryResponseOrBuilder.java | 34 +- .../datastore/v1/TransactionOptions.java | 1060 ++++++---- .../v1/TransactionOptionsOrBuilder.java | 34 +- .../java/com/google/datastore/v1/Value.java | 1270 +++++++----- .../google/datastore/v1/ValueOrBuilder.java | 109 +- .../proto/google/datastore/v1/datastore.proto | 0 .../proto/google/datastore/v1/entity.proto | 0 .../proto/google/datastore/v1/query.proto | 0 152 files changed, 23151 insertions(+), 18490 deletions(-) rename {owl-bot-staging/v1/google-cloud-datastore => google-cloud-datastore}/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-datastore => google-cloud-datastore}/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java (99%) rename {owl-bot-staging/v1/google-cloud-datastore => google-cloud-datastore}/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java (100%) delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/gapic_metadata.json delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/package-info.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminCallableFactory.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminStub.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientTest.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdmin.java delete mode 100644 owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdminImpl.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/CommonMetadata.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java (67%) create mode 100644 proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/EntityFilter.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/Index.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java (58%) create mode 100644 proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java (55%) create mode 100644 proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationState.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/MigrationStep.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/OperationType.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/Progress.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/proto/google/datastore/admin/v1/datastore_admin.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/proto/google/datastore/admin/v1/index.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1 => proto-google-cloud-datastore-admin-v1}/src/main/proto/google/datastore/admin/v1/migration.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ArrayValue.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java (69%) create mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CommitRequest.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CommitResponse.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CompositeFilter.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java (66%) create mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Entity.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/EntityOrBuilder.java (78%) create mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/EntityResult.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Filter.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/FilterOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/GqlQuery.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/GqlQueryParameter.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Key.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/KeyOrBuilder.java (88%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/KindExpression.java (69%) create mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/LookupRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/LookupResponse.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Mutation.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/MutationOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/MutationResult.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PartitionId.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Projection.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyFilter.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyOrder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/PropertyReference.java (69%) create mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Query.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/QueryOrBuilder.java (85%) create mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/QueryResultBatch.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java (86%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReadOptions.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java (66%) create mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RollbackRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RollbackResponse.java (67%) create mode 100644 proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RunQueryRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RunQueryResponse.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/TransactionOptions.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/Value.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/java/com/google/datastore/v1/ValueOrBuilder.java (88%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/proto/google/datastore/v1/datastore.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/proto/google/datastore/v1/entity.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastore-v1 => proto-google-cloud-datastore-v1}/src/main/proto/google/datastore/v1/query.proto (100%) diff --git a/README.md b/README.md index 7781708dd..38a6461b3 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastore' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-datastore:2.8.0' +implementation 'com.google.cloud:google-cloud-datastore:2.9.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.9.0" ``` ## Authentication diff --git a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java index ec653b844..695fdad3e 100644 --- a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java +++ b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -43,7 +44,6 @@ import com.google.datastore.admin.v1.ListIndexesRequest; import com.google.datastore.admin.v1.ListIndexesResponse; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -172,13 +172,28 @@ * DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create(datastoreAdminSettings); * }
* + *

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class DatastoreAdminClient implements BackgroundResource { private final DatastoreAdminSettings settings; private final DatastoreAdminStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of DatastoreAdminClient with default settings. */ public static final DatastoreAdminClient create() throws IOException { @@ -210,13 +225,17 @@ public static final DatastoreAdminClient create(DatastoreAdminStub stub) { protected DatastoreAdminClient(DatastoreAdminSettings settings) throws IOException { this.settings = settings; this.stub = ((DatastoreAdminStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected DatastoreAdminClient(DatastoreAdminStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final DatastoreAdminSettings getSettings() { @@ -231,10 +250,18 @@ public DatastoreAdminStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage diff --git a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java index 4c5934044..6d915b802 100644 --- a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java +++ b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java @@ -23,6 +23,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -167,11 +168,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return DatastoreAdminStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return DatastoreAdminStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DatastoreAdminStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return DatastoreAdminStubSettings.defaultTransportChannelProvider(); } @@ -181,11 +189,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return DatastoreAdminStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -223,6 +237,11 @@ private static Builder createDefault() { return new Builder(DatastoreAdminStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(DatastoreAdminStubSettings.newHttpJsonBuilder()); + } + public DatastoreAdminStubSettings.Builder getStubSettingsBuilder() { return ((DatastoreAdminStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java index d32578ef4..cc758842c 100644 --- a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java +++ b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java @@ -48,7 +48,11 @@ public abstract class DatastoreAdminStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public OperationCallable diff --git a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java index 022f84095..2abc133c6 100644 --- a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java +++ b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -242,6 +245,11 @@ public DatastoreAdminStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcDatastoreAdminStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDatastoreAdminStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -274,18 +282,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(DatastoreAdminStubSettings.class)) @@ -293,11 +308,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DatastoreAdminStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DatastoreAdminStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -455,6 +489,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .exportEntitiesSettings() diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java rename to google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java rename to google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java index 767e767c2..207ca1d45 100644 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java +++ b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java b/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java rename to google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java deleted file mode 100644 index 02fd9edd2..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java +++ /dev/null @@ -1,1031 +0,0 @@ -/* - * 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.datastore.admin.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datastore.admin.v1.stub.DatastoreAdminStub; -import com.google.cloud.datastore.admin.v1.stub.DatastoreAdminStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.datastore.admin.v1.CreateIndexRequest; -import com.google.datastore.admin.v1.DeleteIndexRequest; -import com.google.datastore.admin.v1.EntityFilter; -import com.google.datastore.admin.v1.ExportEntitiesMetadata; -import com.google.datastore.admin.v1.ExportEntitiesRequest; -import com.google.datastore.admin.v1.ExportEntitiesResponse; -import com.google.datastore.admin.v1.GetIndexRequest; -import com.google.datastore.admin.v1.ImportEntitiesMetadata; -import com.google.datastore.admin.v1.ImportEntitiesRequest; -import com.google.datastore.admin.v1.Index; -import com.google.datastore.admin.v1.IndexOperationMetadata; -import com.google.datastore.admin.v1.ListIndexesRequest; -import com.google.datastore.admin.v1.ListIndexesResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Google Cloud Datastore Admin API - * - *

The Datastore Admin API provides several admin services for Cloud Datastore. - * - *

----------------------------------------------------------------------------- ## Concepts - * - *

Project, namespace, kind, and entity as defined in the Google Cloud Datastore API. - * - *

Operation: An Operation represents work being performed in the background. - * - *

EntityFilter: Allows specifying a subset of entities in a project. This is specified as a - * combination of kinds and namespaces (either or both of which may be all). - * - *

----------------------------------------------------------------------------- ## Services - * - *

# Export/Import - * - *

The Export/Import service provides the ability to copy all or a subset of entities to/from - * Google Cloud Storage. - * - *

Exported data may be imported into Cloud Datastore for any Google Cloud Platform project. It - * is not restricted to the export source project. It is possible to export from one project and - * then import into another. - * - *

Exported data can also be loaded into Google BigQuery for analysis. - * - *

Exports and imports are performed asynchronously. An Operation resource is created for each - * export/import. The state (including any errors encountered) of the export/import may be queried - * via the Operation resource. - * - *

# Index - * - *

The index service manages Cloud Datastore composite indexes. - * - *

Index creation and deletion are performed asynchronously. An Operation resource is created for - * each such asynchronous operation. The state of the operation (including any errors encountered) - * may be queried via the Operation resource. - * - *

# Operation - * - *

The Operations collection provides a record of actions performed for the specified project - * (including any operations in progress). Operations are not created directly but through calls on - * other collections or resources. - * - *

An operation that is not yet done may be cancelled. The request to cancel is asynchronous and - * the operation may continue to run for some time after the request to cancel is made. - * - *

An operation that is done may be deleted so that it is no longer listed as part of the - * Operation collection. - * - *

ListOperations returns all pending operations, but not completed operations. - * - *

Operations are created by service DatastoreAdmin, but are accessed via service - * google.longrunning.Operations. - * - *

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

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
- *   GetIndexRequest request =
- *       GetIndexRequest.newBuilder()
- *           .setProjectId("projectId-894832108")
- *           .setIndexId("indexId1943291277")
- *           .build();
- *   Index response = datastoreAdminClient.getIndex(request);
- * }
- * }
- * - *

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

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

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

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

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

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

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * DatastoreAdminSettings datastoreAdminSettings =
- *     DatastoreAdminSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create(datastoreAdminSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * DatastoreAdminSettings datastoreAdminSettings =
- *     DatastoreAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
- * DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create(datastoreAdminSettings);
- * }
- * - *

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

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * DatastoreAdminSettings datastoreAdminSettings =
- *     DatastoreAdminSettings.newBuilder()
- *         .setTransportChannelProvider(
- *             DatastoreAdminSettings.defaultHttpJsonTransportProviderBuilder().build())
- *         .build();
- * DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create(datastoreAdminSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class DatastoreAdminClient implements BackgroundResource { - private final DatastoreAdminSettings settings; - private final DatastoreAdminStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of DatastoreAdminClient with default settings. */ - public static final DatastoreAdminClient create() throws IOException { - return create(DatastoreAdminSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DatastoreAdminClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final DatastoreAdminClient create(DatastoreAdminSettings settings) - throws IOException { - return new DatastoreAdminClient(settings); - } - - /** - * Constructs an instance of DatastoreAdminClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(DatastoreAdminSettings). - */ - public static final DatastoreAdminClient create(DatastoreAdminStub stub) { - return new DatastoreAdminClient(stub); - } - - /** - * Constructs an instance of DatastoreAdminClient, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected DatastoreAdminClient(DatastoreAdminSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DatastoreAdminStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected DatastoreAdminClient(DatastoreAdminStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final DatastoreAdminSettings getSettings() { - return settings; - } - - public DatastoreAdminStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage - * system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the - * export. The export occurs in the background and its progress can be monitored and managed via - * the Operation resource that is created. The output of an export may only be used once the - * associated operation is done. If an export operation is cancelled before completion it may - * leave partial data behind in Google Cloud Storage. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   Map labels = new HashMap<>();
-   *   EntityFilter entityFilter = EntityFilter.newBuilder().build();
-   *   String outputUrlPrefix = "outputUrlPrefix-1132598048";
-   *   ExportEntitiesResponse response =
-   *       datastoreAdminClient
-   *           .exportEntitiesAsync(projectId, labels, entityFilter, outputUrlPrefix)
-   *           .get();
-   * }
-   * }
- * - * @param projectId Required. Project ID against which to make the request. - * @param labels Client-assigned labels. - * @param entityFilter Description of what data from the project is included in the export. - * @param outputUrlPrefix Required. Location for the export metadata and data files. - *

The full resource URL of the external storage location. Currently, only Google Cloud - * Storage is supported. So output_url_prefix should be of the form: - * `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Cloud Storage - * bucket and `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a - * Cloud Datastore namespace). For more information about Cloud Storage namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - *

The resulting files will be nested deeper than the specified URL prefix. The final - * output URL will be provided in the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. That value should be used for subsequent ImportEntities operations. - *

By nesting the data files deeper, the same Cloud Storage bucket can be used in multiple - * ExportEntities operations without conflict. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportEntitiesAsync( - String projectId, - Map labels, - EntityFilter entityFilter, - String outputUrlPrefix) { - ExportEntitiesRequest request = - ExportEntitiesRequest.newBuilder() - .setProjectId(projectId) - .putAllLabels(labels) - .setEntityFilter(entityFilter) - .setOutputUrlPrefix(outputUrlPrefix) - .build(); - return exportEntitiesAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage - * system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the - * export. The export occurs in the background and its progress can be monitored and managed via - * the Operation resource that is created. The output of an export may only be used once the - * associated operation is done. If an export operation is cancelled before completion it may - * leave partial data behind in Google Cloud Storage. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ExportEntitiesRequest request =
-   *       ExportEntitiesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .putAllLabels(new HashMap())
-   *           .setEntityFilter(EntityFilter.newBuilder().build())
-   *           .setOutputUrlPrefix("outputUrlPrefix-1132598048")
-   *           .build();
-   *   ExportEntitiesResponse response = datastoreAdminClient.exportEntitiesAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportEntitiesAsync( - ExportEntitiesRequest request) { - return exportEntitiesOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage - * system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the - * export. The export occurs in the background and its progress can be monitored and managed via - * the Operation resource that is created. The output of an export may only be used once the - * associated operation is done. If an export operation is cancelled before completion it may - * leave partial data behind in Google Cloud Storage. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ExportEntitiesRequest request =
-   *       ExportEntitiesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .putAllLabels(new HashMap())
-   *           .setEntityFilter(EntityFilter.newBuilder().build())
-   *           .setOutputUrlPrefix("outputUrlPrefix-1132598048")
-   *           .build();
-   *   OperationFuture future =
-   *       datastoreAdminClient.exportEntitiesOperationCallable().futureCall(request);
-   *   // Do something.
-   *   ExportEntitiesResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> - exportEntitiesOperationCallable() { - return stub.exportEntitiesOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage - * system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the - * export. The export occurs in the background and its progress can be monitored and managed via - * the Operation resource that is created. The output of an export may only be used once the - * associated operation is done. If an export operation is cancelled before completion it may - * leave partial data behind in Google Cloud Storage. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ExportEntitiesRequest request =
-   *       ExportEntitiesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .putAllLabels(new HashMap())
-   *           .setEntityFilter(EntityFilter.newBuilder().build())
-   *           .setOutputUrlPrefix("outputUrlPrefix-1132598048")
-   *           .build();
-   *   ApiFuture future =
-   *       datastoreAdminClient.exportEntitiesCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable exportEntitiesCallable() { - return stub.exportEntitiesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports entities into Google Cloud Datastore. Existing entities with the same key are - * overwritten. The import occurs in the background and its progress can be monitored and managed - * via the Operation resource that is created. If an ImportEntities operation is cancelled, it is - * possible that a subset of the data has already been imported to Cloud Datastore. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   Map labels = new HashMap<>();
-   *   String inputUrl = "inputUrl470706501";
-   *   EntityFilter entityFilter = EntityFilter.newBuilder().build();
-   *   datastoreAdminClient.importEntitiesAsync(projectId, labels, inputUrl, entityFilter).get();
-   * }
-   * }
- * - * @param projectId Required. Project ID against which to make the request. - * @param labels Client-assigned labels. - * @param inputUrl Required. The full resource URL of the external storage location. Currently, - * only Google Cloud Storage is supported. So input_url should be of the form: - * `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is - * the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage - * namespace path (this is not a Cloud Datastore namespace), and - * `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities - * operation. For more information about Cloud Storage namespace paths, see [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - *

For more information, see - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * @param entityFilter Optionally specify which kinds/namespaces are to be imported. If provided, - * the list must be a subset of the EntityFilter used in creating the export, otherwise a - * FAILED_PRECONDITION error will be returned. If no filter is specified then all entities - * from the export are imported. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture importEntitiesAsync( - String projectId, Map labels, String inputUrl, EntityFilter entityFilter) { - ImportEntitiesRequest request = - ImportEntitiesRequest.newBuilder() - .setProjectId(projectId) - .putAllLabels(labels) - .setInputUrl(inputUrl) - .setEntityFilter(entityFilter) - .build(); - return importEntitiesAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports entities into Google Cloud Datastore. Existing entities with the same key are - * overwritten. The import occurs in the background and its progress can be monitored and managed - * via the Operation resource that is created. If an ImportEntities operation is cancelled, it is - * possible that a subset of the data has already been imported to Cloud Datastore. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ImportEntitiesRequest request =
-   *       ImportEntitiesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .putAllLabels(new HashMap())
-   *           .setInputUrl("inputUrl470706501")
-   *           .setEntityFilter(EntityFilter.newBuilder().build())
-   *           .build();
-   *   datastoreAdminClient.importEntitiesAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture importEntitiesAsync( - ImportEntitiesRequest request) { - return importEntitiesOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports entities into Google Cloud Datastore. Existing entities with the same key are - * overwritten. The import occurs in the background and its progress can be monitored and managed - * via the Operation resource that is created. If an ImportEntities operation is cancelled, it is - * possible that a subset of the data has already been imported to Cloud Datastore. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ImportEntitiesRequest request =
-   *       ImportEntitiesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .putAllLabels(new HashMap())
-   *           .setInputUrl("inputUrl470706501")
-   *           .setEntityFilter(EntityFilter.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       datastoreAdminClient.importEntitiesOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - importEntitiesOperationCallable() { - return stub.importEntitiesOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports entities into Google Cloud Datastore. Existing entities with the same key are - * overwritten. The import occurs in the background and its progress can be monitored and managed - * via the Operation resource that is created. If an ImportEntities operation is cancelled, it is - * possible that a subset of the data has already been imported to Cloud Datastore. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ImportEntitiesRequest request =
-   *       ImportEntitiesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .putAllLabels(new HashMap())
-   *           .setInputUrl("inputUrl470706501")
-   *           .setEntityFilter(EntityFilter.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       datastoreAdminClient.importEntitiesCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable importEntitiesCallable() { - return stub.importEntitiesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates the specified index. A newly created index's initial state is `CREATING`. On completion - * of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be - * `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. - * - *

During index creation, the process could result in an error, in which case the index will - * move to the `ERROR` state. The process can be recovered by fixing the data that caused the - * error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], - * then re-creating the index with [create] - * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. - * - *

Indexes with a single property cannot be created. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   CreateIndexRequest request =
-   *       CreateIndexRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setIndex(Index.newBuilder().build())
-   *           .build();
-   *   Index response = datastoreAdminClient.createIndexAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createIndexAsync( - CreateIndexRequest request) { - return createIndexOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates the specified index. A newly created index's initial state is `CREATING`. On completion - * of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be - * `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. - * - *

During index creation, the process could result in an error, in which case the index will - * move to the `ERROR` state. The process can be recovered by fixing the data that caused the - * error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], - * then re-creating the index with [create] - * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. - * - *

Indexes with a single property cannot be created. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   CreateIndexRequest request =
-   *       CreateIndexRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setIndex(Index.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       datastoreAdminClient.createIndexOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Index response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createIndexOperationCallable() { - return stub.createIndexOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates the specified index. A newly created index's initial state is `CREATING`. On completion - * of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be - * `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. - * - *

During index creation, the process could result in an error, in which case the index will - * move to the `ERROR` state. The process can be recovered by fixing the data that caused the - * error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], - * then re-creating the index with [create] - * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. - * - *

Indexes with a single property cannot be created. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   CreateIndexRequest request =
-   *       CreateIndexRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setIndex(Index.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = datastoreAdminClient.createIndexCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createIndexCallable() { - return stub.createIndexCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. - * On successful execution of the request, the index will be in a `DELETING` - * [state][google.datastore.admin.v1.Index.State]. And on completion of the returned - * [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. - * - *

During index deletion, the process could result in an error, in which case the index will - * move to the `ERROR` state. The process can be recovered by fixing the data that caused the - * error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] - * again. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   DeleteIndexRequest request =
-   *       DeleteIndexRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setIndexId("indexId1943291277")
-   *           .build();
-   *   Index response = datastoreAdminClient.deleteIndexAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteIndexAsync( - DeleteIndexRequest request) { - return deleteIndexOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. - * On successful execution of the request, the index will be in a `DELETING` - * [state][google.datastore.admin.v1.Index.State]. And on completion of the returned - * [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. - * - *

During index deletion, the process could result in an error, in which case the index will - * move to the `ERROR` state. The process can be recovered by fixing the data that caused the - * error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] - * again. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   DeleteIndexRequest request =
-   *       DeleteIndexRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setIndexId("indexId1943291277")
-   *           .build();
-   *   OperationFuture future =
-   *       datastoreAdminClient.deleteIndexOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Index response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - deleteIndexOperationCallable() { - return stub.deleteIndexOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. - * On successful execution of the request, the index will be in a `DELETING` - * [state][google.datastore.admin.v1.Index.State]. And on completion of the returned - * [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. - * - *

During index deletion, the process could result in an error, in which case the index will - * move to the `ERROR` state. The process can be recovered by fixing the data that caused the - * error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] - * again. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   DeleteIndexRequest request =
-   *       DeleteIndexRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setIndexId("indexId1943291277")
-   *           .build();
-   *   ApiFuture future = datastoreAdminClient.deleteIndexCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteIndexCallable() { - return stub.deleteIndexCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an index. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   GetIndexRequest request =
-   *       GetIndexRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setIndexId("indexId1943291277")
-   *           .build();
-   *   Index response = datastoreAdminClient.getIndex(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 Index getIndex(GetIndexRequest request) { - return getIndexCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an index. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   GetIndexRequest request =
-   *       GetIndexRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setIndexId("indexId1943291277")
-   *           .build();
-   *   ApiFuture future = datastoreAdminClient.getIndexCallable().futureCall(request);
-   *   // Do something.
-   *   Index response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getIndexCallable() { - return stub.getIndexCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the indexes that match the specified filters. Datastore uses an eventually consistent - * query to fetch the list of indexes and may occasionally return stale results. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ListIndexesRequest request =
-   *       ListIndexesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Index element : datastoreAdminClient.listIndexes(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) { - return listIndexesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the indexes that match the specified filters. Datastore uses an eventually consistent - * query to fetch the list of indexes and may occasionally return stale results. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ListIndexesRequest request =
-   *       ListIndexesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = datastoreAdminClient.listIndexesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Index element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listIndexesPagedCallable() { - return stub.listIndexesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the indexes that match the specified filters. Datastore uses an eventually consistent - * query to fetch the list of indexes and may occasionally return stale results. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
-   *   ListIndexesRequest request =
-   *       ListIndexesRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListIndexesResponse response = datastoreAdminClient.listIndexesCallable().call(request);
-   *     for (Index element : response.getIndexesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listIndexesCallable() { - return stub.listIndexesCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListIndexesPagedResponse - extends AbstractPagedListResponse< - ListIndexesRequest, ListIndexesResponse, Index, ListIndexesPage, - ListIndexesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListIndexesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListIndexesPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListIndexesPagedResponse(ListIndexesPage page) { - super(page, ListIndexesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListIndexesPage - extends AbstractPage { - - private ListIndexesPage( - PageContext context, - ListIndexesResponse response) { - super(context, response); - } - - private static ListIndexesPage createEmptyPage() { - return new ListIndexesPage(null, null); - } - - @Override - protected ListIndexesPage createPage( - PageContext context, - ListIndexesResponse response) { - return new ListIndexesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListIndexesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListIndexesRequest, ListIndexesResponse, Index, ListIndexesPage, - ListIndexesFixedSizeCollection> { - - private ListIndexesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListIndexesFixedSizeCollection createEmptyCollection() { - return new ListIndexesFixedSizeCollection(null, 0); - } - - @Override - protected ListIndexesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListIndexesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java deleted file mode 100644 index ba3ba11c5..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java +++ /dev/null @@ -1,324 +0,0 @@ -/* - * 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.datastore.admin.v1; - -import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.datastore.admin.v1.stub.DatastoreAdminStubSettings; -import com.google.datastore.admin.v1.CreateIndexRequest; -import com.google.datastore.admin.v1.DeleteIndexRequest; -import com.google.datastore.admin.v1.ExportEntitiesMetadata; -import com.google.datastore.admin.v1.ExportEntitiesRequest; -import com.google.datastore.admin.v1.ExportEntitiesResponse; -import com.google.datastore.admin.v1.GetIndexRequest; -import com.google.datastore.admin.v1.ImportEntitiesMetadata; -import com.google.datastore.admin.v1.ImportEntitiesRequest; -import com.google.datastore.admin.v1.Index; -import com.google.datastore.admin.v1.IndexOperationMetadata; -import com.google.datastore.admin.v1.ListIndexesRequest; -import com.google.datastore.admin.v1.ListIndexesResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DatastoreAdminClient}. - * - *

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

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

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

For example, to set the total timeout of getIndex to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * DatastoreAdminSettings.Builder datastoreAdminSettingsBuilder =
- *     DatastoreAdminSettings.newBuilder();
- * datastoreAdminSettingsBuilder
- *     .getIndexSettings()
- *     .setRetrySettings(
- *         datastoreAdminSettingsBuilder
- *             .getIndexSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DatastoreAdminSettings datastoreAdminSettings = datastoreAdminSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class DatastoreAdminSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to exportEntities. */ - public UnaryCallSettings exportEntitiesSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).exportEntitiesSettings(); - } - - /** Returns the object with the settings used for calls to exportEntities. */ - public OperationCallSettings< - ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> - exportEntitiesOperationSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).exportEntitiesOperationSettings(); - } - - /** Returns the object with the settings used for calls to importEntities. */ - public UnaryCallSettings importEntitiesSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).importEntitiesSettings(); - } - - /** Returns the object with the settings used for calls to importEntities. */ - public OperationCallSettings - importEntitiesOperationSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).importEntitiesOperationSettings(); - } - - /** Returns the object with the settings used for calls to createIndex. */ - public UnaryCallSettings createIndexSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).createIndexSettings(); - } - - /** Returns the object with the settings used for calls to createIndex. */ - public OperationCallSettings - createIndexOperationSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).createIndexOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteIndex. */ - public UnaryCallSettings deleteIndexSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).deleteIndexSettings(); - } - - /** Returns the object with the settings used for calls to deleteIndex. */ - public OperationCallSettings - deleteIndexOperationSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).deleteIndexOperationSettings(); - } - - /** Returns the object with the settings used for calls to getIndex. */ - public UnaryCallSettings getIndexSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).getIndexSettings(); - } - - /** Returns the object with the settings used for calls to listIndexes. */ - public PagedCallSettings - listIndexesSettings() { - return ((DatastoreAdminStubSettings) getStubSettings()).listIndexesSettings(); - } - - public static final DatastoreAdminSettings create(DatastoreAdminStubSettings stub) - throws IOException { - return new DatastoreAdminSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DatastoreAdminStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DatastoreAdminStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DatastoreAdminStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DatastoreAdminStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DatastoreAdminStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DatastoreAdminStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DatastoreAdminStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DatastoreAdminStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DatastoreAdminSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DatastoreAdminSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(DatastoreAdminStubSettings.newBuilder(clientContext)); - } - - protected Builder(DatastoreAdminSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DatastoreAdminStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DatastoreAdminStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(DatastoreAdminStubSettings.newHttpJsonBuilder()); - } - - public DatastoreAdminStubSettings.Builder getStubSettingsBuilder() { - return ((DatastoreAdminStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to exportEntities. */ - public UnaryCallSettings.Builder exportEntitiesSettings() { - return getStubSettingsBuilder().exportEntitiesSettings(); - } - - /** Returns the builder for the settings used for calls to exportEntities. */ - public OperationCallSettings.Builder< - ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> - exportEntitiesOperationSettings() { - return getStubSettingsBuilder().exportEntitiesOperationSettings(); - } - - /** Returns the builder for the settings used for calls to importEntities. */ - public UnaryCallSettings.Builder importEntitiesSettings() { - return getStubSettingsBuilder().importEntitiesSettings(); - } - - /** Returns the builder for the settings used for calls to importEntities. */ - public OperationCallSettings.Builder - importEntitiesOperationSettings() { - return getStubSettingsBuilder().importEntitiesOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createIndex. */ - public UnaryCallSettings.Builder createIndexSettings() { - return getStubSettingsBuilder().createIndexSettings(); - } - - /** Returns the builder for the settings used for calls to createIndex. */ - public OperationCallSettings.Builder - createIndexOperationSettings() { - return getStubSettingsBuilder().createIndexOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteIndex. */ - public UnaryCallSettings.Builder deleteIndexSettings() { - return getStubSettingsBuilder().deleteIndexSettings(); - } - - /** Returns the builder for the settings used for calls to deleteIndex. */ - public OperationCallSettings.Builder - deleteIndexOperationSettings() { - return getStubSettingsBuilder().deleteIndexOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getIndex. */ - public UnaryCallSettings.Builder getIndexSettings() { - return getStubSettingsBuilder().getIndexSettings(); - } - - /** Returns the builder for the settings used for calls to listIndexes. */ - public PagedCallSettings.Builder< - ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> - listIndexesSettings() { - return getStubSettingsBuilder().listIndexesSettings(); - } - - @Override - public DatastoreAdminSettings build() throws IOException { - return new DatastoreAdminSettings(this); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/gapic_metadata.json deleted file mode 100644 index 205eb5dcd..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/gapic_metadata.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.datastore.admin.v1", - "libraryPackage": "com.google.cloud.datastore.admin.v1", - "services": { - "DatastoreAdmin": { - "clients": { - "grpc": { - "libraryClient": "DatastoreAdminClient", - "rpcs": { - "CreateIndex": { - "methods": ["createIndexAsync", "createIndexOperationCallable", "createIndexCallable"] - }, - "DeleteIndex": { - "methods": ["deleteIndexAsync", "deleteIndexOperationCallable", "deleteIndexCallable"] - }, - "ExportEntities": { - "methods": ["exportEntitiesAsync", "exportEntitiesAsync", "exportEntitiesOperationCallable", "exportEntitiesCallable"] - }, - "GetIndex": { - "methods": ["getIndex", "getIndexCallable"] - }, - "ImportEntities": { - "methods": ["importEntitiesAsync", "importEntitiesAsync", "importEntitiesOperationCallable", "importEntitiesCallable"] - }, - "ListIndexes": { - "methods": ["listIndexes", "listIndexesPagedCallable", "listIndexesCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/package-info.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/package-info.java deleted file mode 100644 index 4bb6f2eea..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/package-info.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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. - */ - -/** - * A client to Cloud Datastore API - * - *

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

======================= DatastoreAdminClient ======================= - * - *

Service Description: Google Cloud Datastore Admin API - * - *

The Datastore Admin API provides several admin services for Cloud Datastore. - * - *

----------------------------------------------------------------------------- ## Concepts - * - *

Project, namespace, kind, and entity as defined in the Google Cloud Datastore API. - * - *

Operation: An Operation represents work being performed in the background. - * - *

EntityFilter: Allows specifying a subset of entities in a project. This is specified as a - * combination of kinds and namespaces (either or both of which may be all). - * - *

----------------------------------------------------------------------------- ## Services - * - *

# Export/Import - * - *

The Export/Import service provides the ability to copy all or a subset of entities to/from - * Google Cloud Storage. - * - *

Exported data may be imported into Cloud Datastore for any Google Cloud Platform project. It - * is not restricted to the export source project. It is possible to export from one project and - * then import into another. - * - *

Exported data can also be loaded into Google BigQuery for analysis. - * - *

Exports and imports are performed asynchronously. An Operation resource is created for each - * export/import. The state (including any errors encountered) of the export/import may be queried - * via the Operation resource. - * - *

# Index - * - *

The index service manages Cloud Datastore composite indexes. - * - *

Index creation and deletion are performed asynchronously. An Operation resource is created for - * each such asynchronous operation. The state of the operation (including any errors encountered) - * may be queried via the Operation resource. - * - *

# Operation - * - *

The Operations collection provides a record of actions performed for the specified project - * (including any operations in progress). Operations are not created directly but through calls on - * other collections or resources. - * - *

An operation that is not yet done may be cancelled. The request to cancel is asynchronous and - * the operation may continue to run for some time after the request to cancel is made. - * - *

An operation that is done may be deleted so that it is no longer listed as part of the - * Operation collection. - * - *

ListOperations returns all pending operations, but not completed operations. - * - *

Operations are created by service DatastoreAdmin, but are accessed via service - * google.longrunning.Operations. - * - *

Sample for DatastoreAdminClient: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.create()) {
- *   GetIndexRequest request =
- *       GetIndexRequest.newBuilder()
- *           .setProjectId("projectId-894832108")
- *           .setIndexId("indexId1943291277")
- *           .build();
- *   Index response = datastoreAdminClient.getIndex(request);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.datastore.admin.v1; - -import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java deleted file mode 100644 index cc758842c..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.datastore.admin.v1.stub; - -import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.datastore.admin.v1.CreateIndexRequest; -import com.google.datastore.admin.v1.DeleteIndexRequest; -import com.google.datastore.admin.v1.ExportEntitiesMetadata; -import com.google.datastore.admin.v1.ExportEntitiesRequest; -import com.google.datastore.admin.v1.ExportEntitiesResponse; -import com.google.datastore.admin.v1.GetIndexRequest; -import com.google.datastore.admin.v1.ImportEntitiesMetadata; -import com.google.datastore.admin.v1.ImportEntitiesRequest; -import com.google.datastore.admin.v1.Index; -import com.google.datastore.admin.v1.IndexOperationMetadata; -import com.google.datastore.admin.v1.ListIndexesRequest; -import com.google.datastore.admin.v1.ListIndexesResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the DatastoreAdmin service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class DatastoreAdminStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public OperationCallable - exportEntitiesOperationCallable() { - throw new UnsupportedOperationException("Not implemented: exportEntitiesOperationCallable()"); - } - - public UnaryCallable exportEntitiesCallable() { - throw new UnsupportedOperationException("Not implemented: exportEntitiesCallable()"); - } - - public OperationCallable - importEntitiesOperationCallable() { - throw new UnsupportedOperationException("Not implemented: importEntitiesOperationCallable()"); - } - - public UnaryCallable importEntitiesCallable() { - throw new UnsupportedOperationException("Not implemented: importEntitiesCallable()"); - } - - public OperationCallable - createIndexOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createIndexOperationCallable()"); - } - - public UnaryCallable createIndexCallable() { - throw new UnsupportedOperationException("Not implemented: createIndexCallable()"); - } - - public OperationCallable - deleteIndexOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteIndexOperationCallable()"); - } - - public UnaryCallable deleteIndexCallable() { - throw new UnsupportedOperationException("Not implemented: deleteIndexCallable()"); - } - - public UnaryCallable getIndexCallable() { - throw new UnsupportedOperationException("Not implemented: getIndexCallable()"); - } - - public UnaryCallable listIndexesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listIndexesPagedCallable()"); - } - - public UnaryCallable listIndexesCallable() { - throw new UnsupportedOperationException("Not implemented: listIndexesCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java deleted file mode 100644 index d3581baf2..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java +++ /dev/null @@ -1,718 +0,0 @@ -/* - * 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.datastore.admin.v1.stub; - -import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.datastore.admin.v1.CreateIndexRequest; -import com.google.datastore.admin.v1.DeleteIndexRequest; -import com.google.datastore.admin.v1.ExportEntitiesMetadata; -import com.google.datastore.admin.v1.ExportEntitiesRequest; -import com.google.datastore.admin.v1.ExportEntitiesResponse; -import com.google.datastore.admin.v1.GetIndexRequest; -import com.google.datastore.admin.v1.ImportEntitiesMetadata; -import com.google.datastore.admin.v1.ImportEntitiesRequest; -import com.google.datastore.admin.v1.Index; -import com.google.datastore.admin.v1.IndexOperationMetadata; -import com.google.datastore.admin.v1.ListIndexesRequest; -import com.google.datastore.admin.v1.ListIndexesResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DatastoreAdminStub}. - * - *

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

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

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

For example, to set the total timeout of getIndex to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * DatastoreAdminStubSettings.Builder datastoreAdminSettingsBuilder =
- *     DatastoreAdminStubSettings.newBuilder();
- * datastoreAdminSettingsBuilder
- *     .getIndexSettings()
- *     .setRetrySettings(
- *         datastoreAdminSettingsBuilder
- *             .getIndexSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DatastoreAdminStubSettings datastoreAdminSettings = datastoreAdminSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class DatastoreAdminStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/datastore") - .build(); - - private final UnaryCallSettings exportEntitiesSettings; - private final OperationCallSettings< - ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> - exportEntitiesOperationSettings; - private final UnaryCallSettings importEntitiesSettings; - private final OperationCallSettings - importEntitiesOperationSettings; - private final UnaryCallSettings createIndexSettings; - private final OperationCallSettings - createIndexOperationSettings; - private final UnaryCallSettings deleteIndexSettings; - private final OperationCallSettings - deleteIndexOperationSettings; - private final UnaryCallSettings getIndexSettings; - private final PagedCallSettings - listIndexesSettings; - - private static final PagedListDescriptor - LIST_INDEXES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListIndexesRequest injectToken(ListIndexesRequest payload, String token) { - return ListIndexesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListIndexesRequest injectPageSize(ListIndexesRequest payload, int pageSize) { - return ListIndexesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListIndexesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListIndexesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListIndexesResponse payload) { - return payload.getIndexesList() == null - ? ImmutableList.of() - : payload.getIndexesList(); - } - }; - - private static final PagedListResponseFactory< - ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> - LIST_INDEXES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListIndexesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_INDEXES_PAGE_STR_DESC, request, context); - return ListIndexesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to exportEntities. */ - public UnaryCallSettings exportEntitiesSettings() { - return exportEntitiesSettings; - } - - /** Returns the object with the settings used for calls to exportEntities. */ - public OperationCallSettings< - ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> - exportEntitiesOperationSettings() { - return exportEntitiesOperationSettings; - } - - /** Returns the object with the settings used for calls to importEntities. */ - public UnaryCallSettings importEntitiesSettings() { - return importEntitiesSettings; - } - - /** Returns the object with the settings used for calls to importEntities. */ - public OperationCallSettings - importEntitiesOperationSettings() { - return importEntitiesOperationSettings; - } - - /** Returns the object with the settings used for calls to createIndex. */ - public UnaryCallSettings createIndexSettings() { - return createIndexSettings; - } - - /** Returns the object with the settings used for calls to createIndex. */ - public OperationCallSettings - createIndexOperationSettings() { - return createIndexOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteIndex. */ - public UnaryCallSettings deleteIndexSettings() { - return deleteIndexSettings; - } - - /** Returns the object with the settings used for calls to deleteIndex. */ - public OperationCallSettings - deleteIndexOperationSettings() { - return deleteIndexOperationSettings; - } - - /** Returns the object with the settings used for calls to getIndex. */ - public UnaryCallSettings getIndexSettings() { - return getIndexSettings; - } - - /** Returns the object with the settings used for calls to listIndexes. */ - public PagedCallSettings - listIndexesSettings() { - return listIndexesSettings; - } - - public DatastoreAdminStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDatastoreAdminStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDatastoreAdminStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "datastore.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "datastore.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(DatastoreAdminStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(DatastoreAdminStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DatastoreAdminStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DatastoreAdminStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - exportEntitiesSettings = settingsBuilder.exportEntitiesSettings().build(); - exportEntitiesOperationSettings = settingsBuilder.exportEntitiesOperationSettings().build(); - importEntitiesSettings = settingsBuilder.importEntitiesSettings().build(); - importEntitiesOperationSettings = settingsBuilder.importEntitiesOperationSettings().build(); - createIndexSettings = settingsBuilder.createIndexSettings().build(); - createIndexOperationSettings = settingsBuilder.createIndexOperationSettings().build(); - deleteIndexSettings = settingsBuilder.deleteIndexSettings().build(); - deleteIndexOperationSettings = settingsBuilder.deleteIndexOperationSettings().build(); - getIndexSettings = settingsBuilder.getIndexSettings().build(); - listIndexesSettings = settingsBuilder.listIndexesSettings().build(); - } - - /** Builder for DatastoreAdminStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - exportEntitiesSettings; - private final OperationCallSettings.Builder< - ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> - exportEntitiesOperationSettings; - private final UnaryCallSettings.Builder - importEntitiesSettings; - private final OperationCallSettings.Builder< - ImportEntitiesRequest, Empty, ImportEntitiesMetadata> - importEntitiesOperationSettings; - private final UnaryCallSettings.Builder createIndexSettings; - private final OperationCallSettings.Builder - createIndexOperationSettings; - private final UnaryCallSettings.Builder deleteIndexSettings; - private final OperationCallSettings.Builder - deleteIndexOperationSettings; - private final UnaryCallSettings.Builder getIndexSettings; - private final PagedCallSettings.Builder< - ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> - listIndexesSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - exportEntitiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - exportEntitiesOperationSettings = OperationCallSettings.newBuilder(); - importEntitiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - importEntitiesOperationSettings = OperationCallSettings.newBuilder(); - createIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createIndexOperationSettings = OperationCallSettings.newBuilder(); - deleteIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteIndexOperationSettings = OperationCallSettings.newBuilder(); - getIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listIndexesSettings = PagedCallSettings.newBuilder(LIST_INDEXES_PAGE_STR_FACT); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - exportEntitiesSettings, - importEntitiesSettings, - createIndexSettings, - deleteIndexSettings, - getIndexSettings, - listIndexesSettings); - initDefaults(this); - } - - protected Builder(DatastoreAdminStubSettings settings) { - super(settings); - - exportEntitiesSettings = settings.exportEntitiesSettings.toBuilder(); - exportEntitiesOperationSettings = settings.exportEntitiesOperationSettings.toBuilder(); - importEntitiesSettings = settings.importEntitiesSettings.toBuilder(); - importEntitiesOperationSettings = settings.importEntitiesOperationSettings.toBuilder(); - createIndexSettings = settings.createIndexSettings.toBuilder(); - createIndexOperationSettings = settings.createIndexOperationSettings.toBuilder(); - deleteIndexSettings = settings.deleteIndexSettings.toBuilder(); - deleteIndexOperationSettings = settings.deleteIndexOperationSettings.toBuilder(); - getIndexSettings = settings.getIndexSettings.toBuilder(); - listIndexesSettings = settings.listIndexesSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - exportEntitiesSettings, - importEntitiesSettings, - createIndexSettings, - deleteIndexSettings, - getIndexSettings, - listIndexesSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .exportEntitiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .importEntitiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .createIndexSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .deleteIndexSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .getIndexSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listIndexesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .exportEntitiesOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ExportEntitiesResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ExportEntitiesMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .importEntitiesOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ImportEntitiesMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createIndexOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Index.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(IndexOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteIndexOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Index.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(IndexOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to exportEntities. */ - public UnaryCallSettings.Builder exportEntitiesSettings() { - return exportEntitiesSettings; - } - - /** Returns the builder for the settings used for calls to exportEntities. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> - exportEntitiesOperationSettings() { - return exportEntitiesOperationSettings; - } - - /** Returns the builder for the settings used for calls to importEntities. */ - public UnaryCallSettings.Builder importEntitiesSettings() { - return importEntitiesSettings; - } - - /** Returns the builder for the settings used for calls to importEntities. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - importEntitiesOperationSettings() { - return importEntitiesOperationSettings; - } - - /** Returns the builder for the settings used for calls to createIndex. */ - public UnaryCallSettings.Builder createIndexSettings() { - return createIndexSettings; - } - - /** Returns the builder for the settings used for calls to createIndex. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createIndexOperationSettings() { - return createIndexOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteIndex. */ - public UnaryCallSettings.Builder deleteIndexSettings() { - return deleteIndexSettings; - } - - /** Returns the builder for the settings used for calls to deleteIndex. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteIndexOperationSettings() { - return deleteIndexOperationSettings; - } - - /** Returns the builder for the settings used for calls to getIndex. */ - public UnaryCallSettings.Builder getIndexSettings() { - return getIndexSettings; - } - - /** Returns the builder for the settings used for calls to listIndexes. */ - public PagedCallSettings.Builder< - ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> - listIndexesSettings() { - return listIndexesSettings; - } - - @Override - public DatastoreAdminStubSettings build() throws IOException { - return new DatastoreAdminStubSettings(this); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminCallableFactory.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminCallableFactory.java deleted file mode 100644 index c55ab938a..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * 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.datastore.admin.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the DatastoreAdmin service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcDatastoreAdminCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminStub.java b/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminStub.java deleted file mode 100644 index 7b0f7a82b..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/GrpcDatastoreAdminStub.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.datastore.admin.v1.stub; - -import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableMap; -import com.google.datastore.admin.v1.CreateIndexRequest; -import com.google.datastore.admin.v1.DeleteIndexRequest; -import com.google.datastore.admin.v1.ExportEntitiesMetadata; -import com.google.datastore.admin.v1.ExportEntitiesRequest; -import com.google.datastore.admin.v1.ExportEntitiesResponse; -import com.google.datastore.admin.v1.GetIndexRequest; -import com.google.datastore.admin.v1.ImportEntitiesMetadata; -import com.google.datastore.admin.v1.ImportEntitiesRequest; -import com.google.datastore.admin.v1.Index; -import com.google.datastore.admin.v1.IndexOperationMetadata; -import com.google.datastore.admin.v1.ListIndexesRequest; -import com.google.datastore.admin.v1.ListIndexesResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the DatastoreAdmin service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcDatastoreAdminStub extends DatastoreAdminStub { - private static final MethodDescriptor - exportEntitiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ExportEntities") - .setRequestMarshaller( - ProtoUtils.marshaller(ExportEntitiesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - importEntitiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ImportEntities") - .setRequestMarshaller( - ProtoUtils.marshaller(ImportEntitiesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createIndexMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/CreateIndex") - .setRequestMarshaller(ProtoUtils.marshaller(CreateIndexRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteIndexMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/DeleteIndex") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteIndexRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getIndexMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/GetIndex") - .setRequestMarshaller(ProtoUtils.marshaller(GetIndexRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Index.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listIndexesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.datastore.admin.v1.DatastoreAdmin/ListIndexes") - .setRequestMarshaller(ProtoUtils.marshaller(ListIndexesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListIndexesResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable exportEntitiesCallable; - private final OperationCallable< - ExportEntitiesRequest, ExportEntitiesResponse, ExportEntitiesMetadata> - exportEntitiesOperationCallable; - private final UnaryCallable importEntitiesCallable; - private final OperationCallable - importEntitiesOperationCallable; - private final UnaryCallable createIndexCallable; - private final OperationCallable - createIndexOperationCallable; - private final UnaryCallable deleteIndexCallable; - private final OperationCallable - deleteIndexOperationCallable; - private final UnaryCallable getIndexCallable; - private final UnaryCallable listIndexesCallable; - private final UnaryCallable - listIndexesPagedCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcDatastoreAdminStub create(DatastoreAdminStubSettings settings) - throws IOException { - return new GrpcDatastoreAdminStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDatastoreAdminStub create(ClientContext clientContext) - throws IOException { - return new GrpcDatastoreAdminStub( - DatastoreAdminStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDatastoreAdminStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDatastoreAdminStub( - DatastoreAdminStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDatastoreAdminStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcDatastoreAdminStub(DatastoreAdminStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcDatastoreAdminCallableFactory()); - } - - /** - * Constructs an instance of GrpcDatastoreAdminStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcDatastoreAdminStub( - DatastoreAdminStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings exportEntitiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportEntitiesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - return params.build(); - }) - .build(); - GrpcCallSettings importEntitiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(importEntitiesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - return params.build(); - }) - .build(); - GrpcCallSettings createIndexTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createIndexMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteIndexTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteIndexMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("index_id", String.valueOf(request.getIndexId())); - params.put("project_id", String.valueOf(request.getProjectId())); - return params.build(); - }) - .build(); - GrpcCallSettings getIndexTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIndexMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("index_id", String.valueOf(request.getIndexId())); - params.put("project_id", String.valueOf(request.getProjectId())); - return params.build(); - }) - .build(); - GrpcCallSettings listIndexesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listIndexesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - return params.build(); - }) - .build(); - - this.exportEntitiesCallable = - callableFactory.createUnaryCallable( - exportEntitiesTransportSettings, settings.exportEntitiesSettings(), clientContext); - this.exportEntitiesOperationCallable = - callableFactory.createOperationCallable( - exportEntitiesTransportSettings, - settings.exportEntitiesOperationSettings(), - clientContext, - operationsStub); - this.importEntitiesCallable = - callableFactory.createUnaryCallable( - importEntitiesTransportSettings, settings.importEntitiesSettings(), clientContext); - this.importEntitiesOperationCallable = - callableFactory.createOperationCallable( - importEntitiesTransportSettings, - settings.importEntitiesOperationSettings(), - clientContext, - operationsStub); - this.createIndexCallable = - callableFactory.createUnaryCallable( - createIndexTransportSettings, settings.createIndexSettings(), clientContext); - this.createIndexOperationCallable = - callableFactory.createOperationCallable( - createIndexTransportSettings, - settings.createIndexOperationSettings(), - clientContext, - operationsStub); - this.deleteIndexCallable = - callableFactory.createUnaryCallable( - deleteIndexTransportSettings, settings.deleteIndexSettings(), clientContext); - this.deleteIndexOperationCallable = - callableFactory.createOperationCallable( - deleteIndexTransportSettings, - settings.deleteIndexOperationSettings(), - clientContext, - operationsStub); - this.getIndexCallable = - callableFactory.createUnaryCallable( - getIndexTransportSettings, settings.getIndexSettings(), clientContext); - this.listIndexesCallable = - callableFactory.createUnaryCallable( - listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); - this.listIndexesPagedCallable = - callableFactory.createPagedCallable( - listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable exportEntitiesCallable() { - return exportEntitiesCallable; - } - - @Override - public OperationCallable - exportEntitiesOperationCallable() { - return exportEntitiesOperationCallable; - } - - @Override - public UnaryCallable importEntitiesCallable() { - return importEntitiesCallable; - } - - @Override - public OperationCallable - importEntitiesOperationCallable() { - return importEntitiesOperationCallable; - } - - @Override - public UnaryCallable createIndexCallable() { - return createIndexCallable; - } - - @Override - public OperationCallable - createIndexOperationCallable() { - return createIndexOperationCallable; - } - - @Override - public UnaryCallable deleteIndexCallable() { - return deleteIndexCallable; - } - - @Override - public OperationCallable - deleteIndexOperationCallable() { - return deleteIndexOperationCallable; - } - - @Override - public UnaryCallable getIndexCallable() { - return getIndexCallable; - } - - @Override - public UnaryCallable listIndexesCallable() { - return listIndexesCallable; - } - - @Override - public UnaryCallable listIndexesPagedCallable() { - return listIndexesPagedCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientTest.java b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientTest.java deleted file mode 100644 index 03538b47e..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClientTest.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * 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.datastore.admin.v1; - -import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.datastore.admin.v1.CreateIndexRequest; -import com.google.datastore.admin.v1.DeleteIndexRequest; -import com.google.datastore.admin.v1.EntityFilter; -import com.google.datastore.admin.v1.ExportEntitiesRequest; -import com.google.datastore.admin.v1.ExportEntitiesResponse; -import com.google.datastore.admin.v1.GetIndexRequest; -import com.google.datastore.admin.v1.ImportEntitiesRequest; -import com.google.datastore.admin.v1.Index; -import com.google.datastore.admin.v1.ListIndexesRequest; -import com.google.datastore.admin.v1.ListIndexesResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DatastoreAdminClientTest { - private static MockDatastoreAdmin mockDatastoreAdmin; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DatastoreAdminClient client; - - @BeforeClass - public static void startStaticServer() { - mockDatastoreAdmin = new MockDatastoreAdmin(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockDatastoreAdmin)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DatastoreAdminSettings settings = - DatastoreAdminSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DatastoreAdminClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void exportEntitiesTest() throws Exception { - ExportEntitiesResponse expectedResponse = - ExportEntitiesResponse.newBuilder().setOutputUrl("outputUrl-2119300946").build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportEntitiesTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDatastoreAdmin.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - Map labels = new HashMap<>(); - EntityFilter entityFilter = EntityFilter.newBuilder().build(); - String outputUrlPrefix = "outputUrlPrefix-1132598048"; - - ExportEntitiesResponse actualResponse = - client.exportEntitiesAsync(projectId, labels, entityFilter, outputUrlPrefix).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDatastoreAdmin.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportEntitiesRequest actualRequest = ((ExportEntitiesRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(labels, actualRequest.getLabelsMap()); - Assert.assertEquals(entityFilter, actualRequest.getEntityFilter()); - Assert.assertEquals(outputUrlPrefix, actualRequest.getOutputUrlPrefix()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportEntitiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDatastoreAdmin.addException(exception); - - try { - String projectId = "projectId-894832108"; - Map labels = new HashMap<>(); - EntityFilter entityFilter = EntityFilter.newBuilder().build(); - String outputUrlPrefix = "outputUrlPrefix-1132598048"; - client.exportEntitiesAsync(projectId, labels, entityFilter, outputUrlPrefix).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void importEntitiesTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("importEntitiesTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDatastoreAdmin.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - Map labels = new HashMap<>(); - String inputUrl = "inputUrl470706501"; - EntityFilter entityFilter = EntityFilter.newBuilder().build(); - - client.importEntitiesAsync(projectId, labels, inputUrl, entityFilter).get(); - - List actualRequests = mockDatastoreAdmin.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ImportEntitiesRequest actualRequest = ((ImportEntitiesRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(labels, actualRequest.getLabelsMap()); - Assert.assertEquals(inputUrl, actualRequest.getInputUrl()); - Assert.assertEquals(entityFilter, actualRequest.getEntityFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void importEntitiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDatastoreAdmin.addException(exception); - - try { - String projectId = "projectId-894832108"; - Map labels = new HashMap<>(); - String inputUrl = "inputUrl470706501"; - EntityFilter entityFilter = EntityFilter.newBuilder().build(); - client.importEntitiesAsync(projectId, labels, inputUrl, entityFilter).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createIndexTest() throws Exception { - Index expectedResponse = - Index.newBuilder() - .setProjectId("projectId-894832108") - .setIndexId("indexId1943291277") - .setKind("kind3292052") - .addAllProperties(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createIndexTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDatastoreAdmin.addResponse(resultOperation); - - CreateIndexRequest request = - CreateIndexRequest.newBuilder() - .setProjectId("projectId-894832108") - .setIndex(Index.newBuilder().build()) - .build(); - - Index actualResponse = client.createIndexAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDatastoreAdmin.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateIndexRequest actualRequest = ((CreateIndexRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getIndex(), actualRequest.getIndex()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createIndexExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDatastoreAdmin.addException(exception); - - try { - CreateIndexRequest request = - CreateIndexRequest.newBuilder() - .setProjectId("projectId-894832108") - .setIndex(Index.newBuilder().build()) - .build(); - client.createIndexAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteIndexTest() throws Exception { - Index expectedResponse = - Index.newBuilder() - .setProjectId("projectId-894832108") - .setIndexId("indexId1943291277") - .setKind("kind3292052") - .addAllProperties(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteIndexTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDatastoreAdmin.addResponse(resultOperation); - - DeleteIndexRequest request = - DeleteIndexRequest.newBuilder() - .setProjectId("projectId-894832108") - .setIndexId("indexId1943291277") - .build(); - - Index actualResponse = client.deleteIndexAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDatastoreAdmin.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteIndexRequest actualRequest = ((DeleteIndexRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getIndexId(), actualRequest.getIndexId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteIndexExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDatastoreAdmin.addException(exception); - - try { - DeleteIndexRequest request = - DeleteIndexRequest.newBuilder() - .setProjectId("projectId-894832108") - .setIndexId("indexId1943291277") - .build(); - client.deleteIndexAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void getIndexTest() throws Exception { - Index expectedResponse = - Index.newBuilder() - .setProjectId("projectId-894832108") - .setIndexId("indexId1943291277") - .setKind("kind3292052") - .addAllProperties(new ArrayList()) - .build(); - mockDatastoreAdmin.addResponse(expectedResponse); - - GetIndexRequest request = - GetIndexRequest.newBuilder() - .setProjectId("projectId-894832108") - .setIndexId("indexId1943291277") - .build(); - - Index actualResponse = client.getIndex(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDatastoreAdmin.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIndexRequest actualRequest = ((GetIndexRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getIndexId(), actualRequest.getIndexId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIndexExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDatastoreAdmin.addException(exception); - - try { - GetIndexRequest request = - GetIndexRequest.newBuilder() - .setProjectId("projectId-894832108") - .setIndexId("indexId1943291277") - .build(); - client.getIndex(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listIndexesTest() throws Exception { - Index responsesElement = Index.newBuilder().build(); - ListIndexesResponse expectedResponse = - ListIndexesResponse.newBuilder() - .setNextPageToken("") - .addAllIndexes(Arrays.asList(responsesElement)) - .build(); - mockDatastoreAdmin.addResponse(expectedResponse); - - ListIndexesRequest request = - ListIndexesRequest.newBuilder() - .setProjectId("projectId-894832108") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListIndexesPagedResponse pagedListResponse = client.listIndexes(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getIndexesList().get(0), resources.get(0)); - - List actualRequests = mockDatastoreAdmin.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListIndexesRequest actualRequest = ((ListIndexesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listIndexesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDatastoreAdmin.addException(exception); - - try { - ListIndexesRequest request = - ListIndexesRequest.newBuilder() - .setProjectId("projectId-894832108") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listIndexes(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdmin.java b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdmin.java deleted file mode 100644 index 3c683fc8c..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdmin.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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.datastore.admin.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockDatastoreAdmin implements MockGrpcService { - private final MockDatastoreAdminImpl serviceImpl; - - public MockDatastoreAdmin() { - serviceImpl = new MockDatastoreAdminImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdminImpl.java b/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdminImpl.java deleted file mode 100644 index b27dcf28c..000000000 --- a/owl-bot-staging/v1/google-cloud-datastore/src/test/java/com/google/cloud/datastore/admin/v1/MockDatastoreAdminImpl.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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.datastore.admin.v1; - -import com.google.api.core.BetaApi; -import com.google.datastore.admin.v1.CreateIndexRequest; -import com.google.datastore.admin.v1.DatastoreAdminGrpc.DatastoreAdminImplBase; -import com.google.datastore.admin.v1.DeleteIndexRequest; -import com.google.datastore.admin.v1.ExportEntitiesRequest; -import com.google.datastore.admin.v1.GetIndexRequest; -import com.google.datastore.admin.v1.ImportEntitiesRequest; -import com.google.datastore.admin.v1.Index; -import com.google.datastore.admin.v1.ListIndexesRequest; -import com.google.datastore.admin.v1.ListIndexesResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockDatastoreAdminImpl extends DatastoreAdminImplBase { - private List requests; - private Queue responses; - - public MockDatastoreAdminImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void exportEntities( - ExportEntitiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ExportEntities, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void importEntities( - ImportEntitiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ImportEntities, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createIndex(CreateIndexRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateIndex, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteIndex(DeleteIndexRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteIndex, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIndex(GetIndexRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Index) { - requests.add(request); - responseObserver.onNext(((Index) 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 GetIndex, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Index.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listIndexes( - ListIndexesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListIndexesResponse) { - requests.add(request); - responseObserver.onNext(((ListIndexesResponse) 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 ListIndexes, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListIndexesResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/v1/grpc-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminGrpc.java deleted file mode 100644 index 3fa3ca1c0..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminGrpc.java +++ /dev/null @@ -1,1056 +0,0 @@ -package com.google.datastore.admin.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Google Cloud Datastore Admin API
- * The Datastore Admin API provides several admin services for Cloud Datastore.
- * -----------------------------------------------------------------------------
- * ## Concepts
- * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
- * API.
- * Operation: An Operation represents work being performed in the background.
- * EntityFilter: Allows specifying a subset of entities in a project. This is
- * specified as a combination of kinds and namespaces (either or both of which
- * may be all).
- * -----------------------------------------------------------------------------
- * ## Services
- * # Export/Import
- * The Export/Import service provides the ability to copy all or a subset of
- * entities to/from Google Cloud Storage.
- * Exported data may be imported into Cloud Datastore for any Google Cloud
- * Platform project. It is not restricted to the export source project. It is
- * possible to export from one project and then import into another.
- * Exported data can also be loaded into Google BigQuery for analysis.
- * Exports and imports are performed asynchronously. An Operation resource is
- * created for each export/import. The state (including any errors encountered)
- * of the export/import may be queried via the Operation resource.
- * # Index
- * The index service manages Cloud Datastore composite indexes.
- * Index creation and deletion are performed asynchronously.
- * An Operation resource is created for each such asynchronous operation.
- * The state of the operation (including any errors encountered)
- * may be queried via the Operation resource.
- * # Operation
- * The Operations collection provides a record of actions performed for the
- * specified project (including any operations in progress). Operations are not
- * created directly but through calls on other collections or resources.
- * An operation that is not yet done may be cancelled. The request to cancel is
- * asynchronous and the operation may continue to run for some time after the
- * request to cancel is made.
- * An operation that is done may be deleted so that it is no longer listed as
- * part of the Operation collection.
- * ListOperations returns all pending operations, but not completed operations.
- * Operations are created by service DatastoreAdmin,
- * but are accessed via service google.longrunning.Operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/datastore/admin/v1/datastore_admin.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DatastoreAdminGrpc { - - private DatastoreAdminGrpc() {} - - public static final String SERVICE_NAME = "google.datastore.admin.v1.DatastoreAdmin"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getExportEntitiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportEntities", - requestType = com.google.datastore.admin.v1.ExportEntitiesRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExportEntitiesMethod() { - io.grpc.MethodDescriptor getExportEntitiesMethod; - if ((getExportEntitiesMethod = DatastoreAdminGrpc.getExportEntitiesMethod) == null) { - synchronized (DatastoreAdminGrpc.class) { - if ((getExportEntitiesMethod = DatastoreAdminGrpc.getExportEntitiesMethod) == null) { - DatastoreAdminGrpc.getExportEntitiesMethod = getExportEntitiesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportEntities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.datastore.admin.v1.ExportEntitiesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("ExportEntities")) - .build(); - } - } - } - return getExportEntitiesMethod; - } - - private static volatile io.grpc.MethodDescriptor getImportEntitiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportEntities", - requestType = com.google.datastore.admin.v1.ImportEntitiesRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getImportEntitiesMethod() { - io.grpc.MethodDescriptor getImportEntitiesMethod; - if ((getImportEntitiesMethod = DatastoreAdminGrpc.getImportEntitiesMethod) == null) { - synchronized (DatastoreAdminGrpc.class) { - if ((getImportEntitiesMethod = DatastoreAdminGrpc.getImportEntitiesMethod) == null) { - DatastoreAdminGrpc.getImportEntitiesMethod = getImportEntitiesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportEntities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.datastore.admin.v1.ImportEntitiesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("ImportEntities")) - .build(); - } - } - } - return getImportEntitiesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateIndexMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateIndex", - requestType = com.google.datastore.admin.v1.CreateIndexRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateIndexMethod() { - io.grpc.MethodDescriptor getCreateIndexMethod; - if ((getCreateIndexMethod = DatastoreAdminGrpc.getCreateIndexMethod) == null) { - synchronized (DatastoreAdminGrpc.class) { - if ((getCreateIndexMethod = DatastoreAdminGrpc.getCreateIndexMethod) == null) { - DatastoreAdminGrpc.getCreateIndexMethod = getCreateIndexMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateIndex")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.datastore.admin.v1.CreateIndexRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("CreateIndex")) - .build(); - } - } - } - return getCreateIndexMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteIndexMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteIndex", - requestType = com.google.datastore.admin.v1.DeleteIndexRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteIndexMethod() { - io.grpc.MethodDescriptor getDeleteIndexMethod; - if ((getDeleteIndexMethod = DatastoreAdminGrpc.getDeleteIndexMethod) == null) { - synchronized (DatastoreAdminGrpc.class) { - if ((getDeleteIndexMethod = DatastoreAdminGrpc.getDeleteIndexMethod) == null) { - DatastoreAdminGrpc.getDeleteIndexMethod = getDeleteIndexMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIndex")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.datastore.admin.v1.DeleteIndexRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("DeleteIndex")) - .build(); - } - } - } - return getDeleteIndexMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIndexMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIndex", - requestType = com.google.datastore.admin.v1.GetIndexRequest.class, - responseType = com.google.datastore.admin.v1.Index.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIndexMethod() { - io.grpc.MethodDescriptor getGetIndexMethod; - if ((getGetIndexMethod = DatastoreAdminGrpc.getGetIndexMethod) == null) { - synchronized (DatastoreAdminGrpc.class) { - if ((getGetIndexMethod = DatastoreAdminGrpc.getGetIndexMethod) == null) { - DatastoreAdminGrpc.getGetIndexMethod = getGetIndexMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIndex")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.datastore.admin.v1.GetIndexRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.datastore.admin.v1.Index.getDefaultInstance())) - .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("GetIndex")) - .build(); - } - } - } - return getGetIndexMethod; - } - - private static volatile io.grpc.MethodDescriptor getListIndexesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListIndexes", - requestType = com.google.datastore.admin.v1.ListIndexesRequest.class, - responseType = com.google.datastore.admin.v1.ListIndexesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListIndexesMethod() { - io.grpc.MethodDescriptor getListIndexesMethod; - if ((getListIndexesMethod = DatastoreAdminGrpc.getListIndexesMethod) == null) { - synchronized (DatastoreAdminGrpc.class) { - if ((getListIndexesMethod = DatastoreAdminGrpc.getListIndexesMethod) == null) { - DatastoreAdminGrpc.getListIndexesMethod = getListIndexesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListIndexes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.datastore.admin.v1.ListIndexesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.datastore.admin.v1.ListIndexesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastoreAdminMethodDescriptorSupplier("ListIndexes")) - .build(); - } - } - } - return getListIndexesMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DatastoreAdminStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastoreAdminStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastoreAdminStub(channel, callOptions); - } - }; - return DatastoreAdminStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DatastoreAdminBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastoreAdminBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastoreAdminBlockingStub(channel, callOptions); - } - }; - return DatastoreAdminBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DatastoreAdminFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastoreAdminFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastoreAdminFutureStub(channel, callOptions); - } - }; - return DatastoreAdminFutureStub.newStub(factory, channel); - } - - /** - *
-   * Google Cloud Datastore Admin API
-   * The Datastore Admin API provides several admin services for Cloud Datastore.
-   * -----------------------------------------------------------------------------
-   * ## Concepts
-   * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
-   * API.
-   * Operation: An Operation represents work being performed in the background.
-   * EntityFilter: Allows specifying a subset of entities in a project. This is
-   * specified as a combination of kinds and namespaces (either or both of which
-   * may be all).
-   * -----------------------------------------------------------------------------
-   * ## Services
-   * # Export/Import
-   * The Export/Import service provides the ability to copy all or a subset of
-   * entities to/from Google Cloud Storage.
-   * Exported data may be imported into Cloud Datastore for any Google Cloud
-   * Platform project. It is not restricted to the export source project. It is
-   * possible to export from one project and then import into another.
-   * Exported data can also be loaded into Google BigQuery for analysis.
-   * Exports and imports are performed asynchronously. An Operation resource is
-   * created for each export/import. The state (including any errors encountered)
-   * of the export/import may be queried via the Operation resource.
-   * # Index
-   * The index service manages Cloud Datastore composite indexes.
-   * Index creation and deletion are performed asynchronously.
-   * An Operation resource is created for each such asynchronous operation.
-   * The state of the operation (including any errors encountered)
-   * may be queried via the Operation resource.
-   * # Operation
-   * The Operations collection provides a record of actions performed for the
-   * specified project (including any operations in progress). Operations are not
-   * created directly but through calls on other collections or resources.
-   * An operation that is not yet done may be cancelled. The request to cancel is
-   * asynchronous and the operation may continue to run for some time after the
-   * request to cancel is made.
-   * An operation that is done may be deleted so that it is no longer listed as
-   * part of the Operation collection.
-   * ListOperations returns all pending operations, but not completed operations.
-   * Operations are created by service DatastoreAdmin,
-   * but are accessed via service google.longrunning.Operations.
-   * 
- */ - public static abstract class DatastoreAdminImplBase implements io.grpc.BindableService { - - /** - *
-     * Exports a copy of all or a subset of entities from Google Cloud Datastore
-     * to another storage system, such as Google Cloud Storage. Recent updates to
-     * entities may not be reflected in the export. The export occurs in the
-     * background and its progress can be monitored and managed via the
-     * Operation resource that is created. The output of an export may only be
-     * used once the associated operation is done. If an export operation is
-     * cancelled before completion it may leave partial data behind in Google
-     * Cloud Storage.
-     * 
- */ - public void exportEntities(com.google.datastore.admin.v1.ExportEntitiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportEntitiesMethod(), responseObserver); - } - - /** - *
-     * Imports entities into Google Cloud Datastore. Existing entities with the
-     * same key are overwritten. The import occurs in the background and its
-     * progress can be monitored and managed via the Operation resource that is
-     * created. If an ImportEntities operation is cancelled, it is possible
-     * that a subset of the data has already been imported to Cloud Datastore.
-     * 
- */ - public void importEntities(com.google.datastore.admin.v1.ImportEntitiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportEntitiesMethod(), responseObserver); - } - - /** - *
-     * Creates the specified index.
-     * A newly created index's initial state is `CREATING`. On completion of the
-     * returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
-     * If the index already exists, the call will return an `ALREADY_EXISTS`
-     * status.
-     * During index creation, the process could result in an error, in which
-     * case the index will move to the `ERROR` state. The process can be recovered
-     * by fixing the data that caused the error, removing the index with
-     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
-     * re-creating the index with [create]
-     * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
-     * Indexes with a single property cannot be created.
-     * 
- */ - public void createIndex(com.google.datastore.admin.v1.CreateIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateIndexMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing index.
-     * An index can only be deleted if it is in a `READY` or `ERROR` state. On
-     * successful execution of the request, the index will be in a `DELETING`
-     * [state][google.datastore.admin.v1.Index.State]. And on completion of the
-     * returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
-     * During index deletion, the process could result in an error, in which
-     * case the index will move to the `ERROR` state. The process can be recovered
-     * by fixing the data that caused the error, followed by calling
-     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
-     * 
- */ - public void deleteIndex(com.google.datastore.admin.v1.DeleteIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteIndexMethod(), responseObserver); - } - - /** - *
-     * Gets an index.
-     * 
- */ - public void getIndex(com.google.datastore.admin.v1.GetIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIndexMethod(), responseObserver); - } - - /** - *
-     * Lists the indexes that match the specified filters.  Datastore uses an
-     * eventually consistent query to fetch the list of indexes and may
-     * occasionally return stale results.
-     * 
- */ - public void listIndexes(com.google.datastore.admin.v1.ListIndexesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListIndexesMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getExportEntitiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.ExportEntitiesRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_ENTITIES))) - .addMethod( - getImportEntitiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.ImportEntitiesRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_ENTITIES))) - .addMethod( - getCreateIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.CreateIndexRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INDEX))) - .addMethod( - getDeleteIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.DeleteIndexRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INDEX))) - .addMethod( - getGetIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.GetIndexRequest, - com.google.datastore.admin.v1.Index>( - this, METHODID_GET_INDEX))) - .addMethod( - getListIndexesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.ListIndexesRequest, - com.google.datastore.admin.v1.ListIndexesResponse>( - this, METHODID_LIST_INDEXES))) - .build(); - } - } - - /** - *
-   * Google Cloud Datastore Admin API
-   * The Datastore Admin API provides several admin services for Cloud Datastore.
-   * -----------------------------------------------------------------------------
-   * ## Concepts
-   * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
-   * API.
-   * Operation: An Operation represents work being performed in the background.
-   * EntityFilter: Allows specifying a subset of entities in a project. This is
-   * specified as a combination of kinds and namespaces (either or both of which
-   * may be all).
-   * -----------------------------------------------------------------------------
-   * ## Services
-   * # Export/Import
-   * The Export/Import service provides the ability to copy all or a subset of
-   * entities to/from Google Cloud Storage.
-   * Exported data may be imported into Cloud Datastore for any Google Cloud
-   * Platform project. It is not restricted to the export source project. It is
-   * possible to export from one project and then import into another.
-   * Exported data can also be loaded into Google BigQuery for analysis.
-   * Exports and imports are performed asynchronously. An Operation resource is
-   * created for each export/import. The state (including any errors encountered)
-   * of the export/import may be queried via the Operation resource.
-   * # Index
-   * The index service manages Cloud Datastore composite indexes.
-   * Index creation and deletion are performed asynchronously.
-   * An Operation resource is created for each such asynchronous operation.
-   * The state of the operation (including any errors encountered)
-   * may be queried via the Operation resource.
-   * # Operation
-   * The Operations collection provides a record of actions performed for the
-   * specified project (including any operations in progress). Operations are not
-   * created directly but through calls on other collections or resources.
-   * An operation that is not yet done may be cancelled. The request to cancel is
-   * asynchronous and the operation may continue to run for some time after the
-   * request to cancel is made.
-   * An operation that is done may be deleted so that it is no longer listed as
-   * part of the Operation collection.
-   * ListOperations returns all pending operations, but not completed operations.
-   * Operations are created by service DatastoreAdmin,
-   * but are accessed via service google.longrunning.Operations.
-   * 
- */ - public static final class DatastoreAdminStub extends io.grpc.stub.AbstractAsyncStub { - private DatastoreAdminStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastoreAdminStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastoreAdminStub(channel, callOptions); - } - - /** - *
-     * Exports a copy of all or a subset of entities from Google Cloud Datastore
-     * to another storage system, such as Google Cloud Storage. Recent updates to
-     * entities may not be reflected in the export. The export occurs in the
-     * background and its progress can be monitored and managed via the
-     * Operation resource that is created. The output of an export may only be
-     * used once the associated operation is done. If an export operation is
-     * cancelled before completion it may leave partial data behind in Google
-     * Cloud Storage.
-     * 
- */ - public void exportEntities(com.google.datastore.admin.v1.ExportEntitiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportEntitiesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Imports entities into Google Cloud Datastore. Existing entities with the
-     * same key are overwritten. The import occurs in the background and its
-     * progress can be monitored and managed via the Operation resource that is
-     * created. If an ImportEntities operation is cancelled, it is possible
-     * that a subset of the data has already been imported to Cloud Datastore.
-     * 
- */ - public void importEntities(com.google.datastore.admin.v1.ImportEntitiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportEntitiesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates the specified index.
-     * A newly created index's initial state is `CREATING`. On completion of the
-     * returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
-     * If the index already exists, the call will return an `ALREADY_EXISTS`
-     * status.
-     * During index creation, the process could result in an error, in which
-     * case the index will move to the `ERROR` state. The process can be recovered
-     * by fixing the data that caused the error, removing the index with
-     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
-     * re-creating the index with [create]
-     * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
-     * Indexes with a single property cannot be created.
-     * 
- */ - public void createIndex(com.google.datastore.admin.v1.CreateIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing index.
-     * An index can only be deleted if it is in a `READY` or `ERROR` state. On
-     * successful execution of the request, the index will be in a `DELETING`
-     * [state][google.datastore.admin.v1.Index.State]. And on completion of the
-     * returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
-     * During index deletion, the process could result in an error, in which
-     * case the index will move to the `ERROR` state. The process can be recovered
-     * by fixing the data that caused the error, followed by calling
-     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
-     * 
- */ - public void deleteIndex(com.google.datastore.admin.v1.DeleteIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an index.
-     * 
- */ - public void getIndex(com.google.datastore.admin.v1.GetIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIndexMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the indexes that match the specified filters.  Datastore uses an
-     * eventually consistent query to fetch the list of indexes and may
-     * occasionally return stale results.
-     * 
- */ - public void listIndexes(com.google.datastore.admin.v1.ListIndexesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListIndexesMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Google Cloud Datastore Admin API
-   * The Datastore Admin API provides several admin services for Cloud Datastore.
-   * -----------------------------------------------------------------------------
-   * ## Concepts
-   * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
-   * API.
-   * Operation: An Operation represents work being performed in the background.
-   * EntityFilter: Allows specifying a subset of entities in a project. This is
-   * specified as a combination of kinds and namespaces (either or both of which
-   * may be all).
-   * -----------------------------------------------------------------------------
-   * ## Services
-   * # Export/Import
-   * The Export/Import service provides the ability to copy all or a subset of
-   * entities to/from Google Cloud Storage.
-   * Exported data may be imported into Cloud Datastore for any Google Cloud
-   * Platform project. It is not restricted to the export source project. It is
-   * possible to export from one project and then import into another.
-   * Exported data can also be loaded into Google BigQuery for analysis.
-   * Exports and imports are performed asynchronously. An Operation resource is
-   * created for each export/import. The state (including any errors encountered)
-   * of the export/import may be queried via the Operation resource.
-   * # Index
-   * The index service manages Cloud Datastore composite indexes.
-   * Index creation and deletion are performed asynchronously.
-   * An Operation resource is created for each such asynchronous operation.
-   * The state of the operation (including any errors encountered)
-   * may be queried via the Operation resource.
-   * # Operation
-   * The Operations collection provides a record of actions performed for the
-   * specified project (including any operations in progress). Operations are not
-   * created directly but through calls on other collections or resources.
-   * An operation that is not yet done may be cancelled. The request to cancel is
-   * asynchronous and the operation may continue to run for some time after the
-   * request to cancel is made.
-   * An operation that is done may be deleted so that it is no longer listed as
-   * part of the Operation collection.
-   * ListOperations returns all pending operations, but not completed operations.
-   * Operations are created by service DatastoreAdmin,
-   * but are accessed via service google.longrunning.Operations.
-   * 
- */ - public static final class DatastoreAdminBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private DatastoreAdminBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastoreAdminBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastoreAdminBlockingStub(channel, callOptions); - } - - /** - *
-     * Exports a copy of all or a subset of entities from Google Cloud Datastore
-     * to another storage system, such as Google Cloud Storage. Recent updates to
-     * entities may not be reflected in the export. The export occurs in the
-     * background and its progress can be monitored and managed via the
-     * Operation resource that is created. The output of an export may only be
-     * used once the associated operation is done. If an export operation is
-     * cancelled before completion it may leave partial data behind in Google
-     * Cloud Storage.
-     * 
- */ - public com.google.longrunning.Operation exportEntities(com.google.datastore.admin.v1.ExportEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportEntitiesMethod(), getCallOptions(), request); - } - - /** - *
-     * Imports entities into Google Cloud Datastore. Existing entities with the
-     * same key are overwritten. The import occurs in the background and its
-     * progress can be monitored and managed via the Operation resource that is
-     * created. If an ImportEntities operation is cancelled, it is possible
-     * that a subset of the data has already been imported to Cloud Datastore.
-     * 
- */ - public com.google.longrunning.Operation importEntities(com.google.datastore.admin.v1.ImportEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportEntitiesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates the specified index.
-     * A newly created index's initial state is `CREATING`. On completion of the
-     * returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
-     * If the index already exists, the call will return an `ALREADY_EXISTS`
-     * status.
-     * During index creation, the process could result in an error, in which
-     * case the index will move to the `ERROR` state. The process can be recovered
-     * by fixing the data that caused the error, removing the index with
-     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
-     * re-creating the index with [create]
-     * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
-     * Indexes with a single property cannot be created.
-     * 
- */ - public com.google.longrunning.Operation createIndex(com.google.datastore.admin.v1.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateIndexMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing index.
-     * An index can only be deleted if it is in a `READY` or `ERROR` state. On
-     * successful execution of the request, the index will be in a `DELETING`
-     * [state][google.datastore.admin.v1.Index.State]. And on completion of the
-     * returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
-     * During index deletion, the process could result in an error, in which
-     * case the index will move to the `ERROR` state. The process can be recovered
-     * by fixing the data that caused the error, followed by calling
-     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
-     * 
- */ - public com.google.longrunning.Operation deleteIndex(com.google.datastore.admin.v1.DeleteIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteIndexMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an index.
-     * 
- */ - public com.google.datastore.admin.v1.Index getIndex(com.google.datastore.admin.v1.GetIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIndexMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the indexes that match the specified filters.  Datastore uses an
-     * eventually consistent query to fetch the list of indexes and may
-     * occasionally return stale results.
-     * 
- */ - public com.google.datastore.admin.v1.ListIndexesResponse listIndexes(com.google.datastore.admin.v1.ListIndexesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListIndexesMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Google Cloud Datastore Admin API
-   * The Datastore Admin API provides several admin services for Cloud Datastore.
-   * -----------------------------------------------------------------------------
-   * ## Concepts
-   * Project, namespace, kind, and entity as defined in the Google Cloud Datastore
-   * API.
-   * Operation: An Operation represents work being performed in the background.
-   * EntityFilter: Allows specifying a subset of entities in a project. This is
-   * specified as a combination of kinds and namespaces (either or both of which
-   * may be all).
-   * -----------------------------------------------------------------------------
-   * ## Services
-   * # Export/Import
-   * The Export/Import service provides the ability to copy all or a subset of
-   * entities to/from Google Cloud Storage.
-   * Exported data may be imported into Cloud Datastore for any Google Cloud
-   * Platform project. It is not restricted to the export source project. It is
-   * possible to export from one project and then import into another.
-   * Exported data can also be loaded into Google BigQuery for analysis.
-   * Exports and imports are performed asynchronously. An Operation resource is
-   * created for each export/import. The state (including any errors encountered)
-   * of the export/import may be queried via the Operation resource.
-   * # Index
-   * The index service manages Cloud Datastore composite indexes.
-   * Index creation and deletion are performed asynchronously.
-   * An Operation resource is created for each such asynchronous operation.
-   * The state of the operation (including any errors encountered)
-   * may be queried via the Operation resource.
-   * # Operation
-   * The Operations collection provides a record of actions performed for the
-   * specified project (including any operations in progress). Operations are not
-   * created directly but through calls on other collections or resources.
-   * An operation that is not yet done may be cancelled. The request to cancel is
-   * asynchronous and the operation may continue to run for some time after the
-   * request to cancel is made.
-   * An operation that is done may be deleted so that it is no longer listed as
-   * part of the Operation collection.
-   * ListOperations returns all pending operations, but not completed operations.
-   * Operations are created by service DatastoreAdmin,
-   * but are accessed via service google.longrunning.Operations.
-   * 
- */ - public static final class DatastoreAdminFutureStub extends io.grpc.stub.AbstractFutureStub { - private DatastoreAdminFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastoreAdminFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastoreAdminFutureStub(channel, callOptions); - } - - /** - *
-     * Exports a copy of all or a subset of entities from Google Cloud Datastore
-     * to another storage system, such as Google Cloud Storage. Recent updates to
-     * entities may not be reflected in the export. The export occurs in the
-     * background and its progress can be monitored and managed via the
-     * Operation resource that is created. The output of an export may only be
-     * used once the associated operation is done. If an export operation is
-     * cancelled before completion it may leave partial data behind in Google
-     * Cloud Storage.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture exportEntities( - com.google.datastore.admin.v1.ExportEntitiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportEntitiesMethod(), getCallOptions()), request); - } - - /** - *
-     * Imports entities into Google Cloud Datastore. Existing entities with the
-     * same key are overwritten. The import occurs in the background and its
-     * progress can be monitored and managed via the Operation resource that is
-     * created. If an ImportEntities operation is cancelled, it is possible
-     * that a subset of the data has already been imported to Cloud Datastore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture importEntities( - com.google.datastore.admin.v1.ImportEntitiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportEntitiesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates the specified index.
-     * A newly created index's initial state is `CREATING`. On completion of the
-     * returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
-     * If the index already exists, the call will return an `ALREADY_EXISTS`
-     * status.
-     * During index creation, the process could result in an error, in which
-     * case the index will move to the `ERROR` state. The process can be recovered
-     * by fixing the data that caused the error, removing the index with
-     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
-     * re-creating the index with [create]
-     * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
-     * Indexes with a single property cannot be created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createIndex( - com.google.datastore.admin.v1.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing index.
-     * An index can only be deleted if it is in a `READY` or `ERROR` state. On
-     * successful execution of the request, the index will be in a `DELETING`
-     * [state][google.datastore.admin.v1.Index.State]. And on completion of the
-     * returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
-     * During index deletion, the process could result in an error, in which
-     * case the index will move to the `ERROR` state. The process can be recovered
-     * by fixing the data that caused the error, followed by calling
-     * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteIndex( - com.google.datastore.admin.v1.DeleteIndexRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an index.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIndex( - com.google.datastore.admin.v1.GetIndexRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIndexMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the indexes that match the specified filters.  Datastore uses an
-     * eventually consistent query to fetch the list of indexes and may
-     * occasionally return stale results.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listIndexes( - com.google.datastore.admin.v1.ListIndexesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListIndexesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_EXPORT_ENTITIES = 0; - private static final int METHODID_IMPORT_ENTITIES = 1; - private static final int METHODID_CREATE_INDEX = 2; - private static final int METHODID_DELETE_INDEX = 3; - private static final int METHODID_GET_INDEX = 4; - private static final int METHODID_LIST_INDEXES = 5; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final DatastoreAdminImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DatastoreAdminImplBase 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_EXPORT_ENTITIES: - serviceImpl.exportEntities((com.google.datastore.admin.v1.ExportEntitiesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_ENTITIES: - serviceImpl.importEntities((com.google.datastore.admin.v1.ImportEntitiesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INDEX: - serviceImpl.createIndex((com.google.datastore.admin.v1.CreateIndexRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INDEX: - serviceImpl.deleteIndex((com.google.datastore.admin.v1.DeleteIndexRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INDEX: - serviceImpl.getIndex((com.google.datastore.admin.v1.GetIndexRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_INDEXES: - serviceImpl.listIndexes((com.google.datastore.admin.v1.ListIndexesRequest) 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 DatastoreAdminBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DatastoreAdminBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DatastoreAdmin"); - } - } - - private static final class DatastoreAdminFileDescriptorSupplier - extends DatastoreAdminBaseDescriptorSupplier { - DatastoreAdminFileDescriptorSupplier() {} - } - - private static final class DatastoreAdminMethodDescriptorSupplier - extends DatastoreAdminBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DatastoreAdminMethodDescriptorSupplier(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 (DatastoreAdminGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DatastoreAdminFileDescriptorSupplier()) - .addMethod(getExportEntitiesMethod()) - .addMethod(getImportEntitiesMethod()) - .addMethod(getCreateIndexMethod()) - .addMethod(getDeleteIndexMethod()) - .addMethod(getGetIndexMethod()) - .addMethod(getListIndexesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java deleted file mode 100644 index 9a3f731e2..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java +++ /dev/null @@ -1,369 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/datastore/admin/v1/datastore_admin.proto - -package com.google.datastore.admin.v1; - -public final class DatastoreAdminProto { - private DatastoreAdminProto() {} - 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_datastore_admin_v1_CommonMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_Progress_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_EntityFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/datastore/admin/v1/datastore_ad" + - "min.proto\022\031google.datastore.admin.v1\032\034go" + - "ogle/api/annotations.proto\032\027google/api/c" + - "lient.proto\032\037google/api/field_behavior.p" + - "roto\032%google/datastore/admin/v1/index.pr" + - "oto\032)google/datastore/admin/v1/migration" + - ".proto\032#google/longrunning/operations.pr" + - "oto\032\037google/protobuf/timestamp.proto\"\364\003\n" + - "\016CommonMetadata\022.\n\nstart_time\030\001 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(" + - "\0132\032.google.protobuf.Timestamp\022@\n\016operati" + - "on_type\030\003 \001(\0162(.google.datastore.admin.v" + - "1.OperationType\022E\n\006labels\030\004 \003(\01325.google" + - ".datastore.admin.v1.CommonMetadata.Label" + - "sEntry\022>\n\005state\030\005 \001(\0162/.google.datastore" + - ".admin.v1.CommonMetadata.State\032-\n\013Labels" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\213\001" + - "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014INITIA" + - "LIZING\020\001\022\016\n\nPROCESSING\020\002\022\016\n\nCANCELLING\020\003" + - "\022\016\n\nFINALIZING\020\004\022\016\n\nSUCCESSFUL\020\005\022\n\n\006FAIL" + - "ED\020\006\022\r\n\tCANCELLED\020\007\":\n\010Progress\022\026\n\016work_" + - "completed\030\001 \001(\003\022\026\n\016work_estimated\030\002 \001(\003\"" + - "\215\002\n\025ExportEntitiesRequest\022\027\n\nproject_id\030" + - "\001 \001(\tB\003\340A\002\022L\n\006labels\030\002 \003(\0132<.google.data" + - "store.admin.v1.ExportEntitiesRequest.Lab" + - "elsEntry\022>\n\rentity_filter\030\003 \001(\0132\'.google" + - ".datastore.admin.v1.EntityFilter\022\036\n\021outp" + - "ut_url_prefix\030\004 \001(\tB\003\340A\002\032-\n\013LabelsEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\002\n\025Impo" + - "rtEntitiesRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" + - "A\002\022L\n\006labels\030\002 \003(\0132<.google.datastore.ad" + - "min.v1.ImportEntitiesRequest.LabelsEntry" + - "\022\026\n\tinput_url\030\003 \001(\tB\003\340A\002\022>\n\rentity_filte" + - "r\030\004 \001(\0132\'.google.datastore.admin.v1.Enti" + - "tyFilter\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\",\n\026ExportEntitiesRespons" + - "e\022\022\n\noutput_url\030\001 \001(\t\"\253\002\n\026ExportEntities" + - "Metadata\0229\n\006common\030\001 \001(\0132).google.datast" + - "ore.admin.v1.CommonMetadata\022>\n\021progress_" + - "entities\030\002 \001(\0132#.google.datastore.admin." + - "v1.Progress\022;\n\016progress_bytes\030\003 \001(\0132#.go" + - "ogle.datastore.admin.v1.Progress\022>\n\renti" + - "ty_filter\030\004 \001(\0132\'.google.datastore.admin" + - ".v1.EntityFilter\022\031\n\021output_url_prefix\030\005 " + - "\001(\t\"\243\002\n\026ImportEntitiesMetadata\0229\n\006common" + - "\030\001 \001(\0132).google.datastore.admin.v1.Commo" + - "nMetadata\022>\n\021progress_entities\030\002 \001(\0132#.g" + - "oogle.datastore.admin.v1.Progress\022;\n\016pro" + - "gress_bytes\030\003 \001(\0132#.google.datastore.adm" + - "in.v1.Progress\022>\n\rentity_filter\030\004 \001(\0132\'." + - "google.datastore.admin.v1.EntityFilter\022\021" + - "\n\tinput_url\030\005 \001(\t\"4\n\014EntityFilter\022\r\n\005kin" + - "ds\030\001 \003(\t\022\025\n\rnamespace_ids\030\002 \003(\t\"Y\n\022Creat" + - "eIndexRequest\022\022\n\nproject_id\030\001 \001(\t\022/\n\005ind" + - "ex\030\003 \001(\0132 .google.datastore.admin.v1.Ind" + - "ex\":\n\022DeleteIndexRequest\022\022\n\nproject_id\030\001" + - " \001(\t\022\020\n\010index_id\030\003 \001(\t\"7\n\017GetIndexReques" + - "t\022\022\n\nproject_id\030\001 \001(\t\022\020\n\010index_id\030\003 \001(\t\"" + - "_\n\022ListIndexesRequest\022\022\n\nproject_id\030\001 \001(" + - "\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\n" + - "page_token\030\005 \001(\t\"a\n\023ListIndexesResponse\022" + - "1\n\007indexes\030\001 \003(\0132 .google.datastore.admi" + - "n.v1.Index\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n\026" + - "IndexOperationMetadata\0229\n\006common\030\001 \001(\0132)" + - ".google.datastore.admin.v1.CommonMetadat" + - "a\022>\n\021progress_entities\030\002 \001(\0132#.google.da" + - "tastore.admin.v1.Progress\022\020\n\010index_id\030\003 " + - "\001(\t\"\253\001\n#DatastoreFirestoreMigrationMetad" + - "ata\022B\n\017migration_state\030\001 \001(\0162).google.da" + - "tastore.admin.v1.MigrationState\022@\n\016migra" + - "tion_step\030\002 \001(\0162(.google.datastore.admin" + - ".v1.MigrationStep*}\n\rOperationType\022\036\n\032OP" + - "ERATION_TYPE_UNSPECIFIED\020\000\022\023\n\017EXPORT_ENT" + - "ITIES\020\001\022\023\n\017IMPORT_ENTITIES\020\002\022\020\n\014CREATE_I" + - "NDEX\020\003\022\020\n\014DELETE_INDEX\020\0042\204\n\n\016DatastoreAd" + - "min\022\366\001\n\016ExportEntities\0220.google.datastor" + - "e.admin.v1.ExportEntitiesRequest\032\035.googl" + - "e.longrunning.Operation\"\222\001\202\323\344\223\002%\" /v1/pr" + - "ojects/{project_id}:export:\001*\332A1project_" + - "id,labels,entity_filter,output_url_prefi" + - "x\312A0\n\026ExportEntitiesResponse\022\026ExportEnti" + - "tiesMetadata\022\355\001\n\016ImportEntities\0220.google" + - ".datastore.admin.v1.ImportEntitiesReques" + - "t\032\035.google.longrunning.Operation\"\211\001\202\323\344\223\002" + - "%\" /v1/projects/{project_id}:import:\001*\332A" + - ")project_id,labels,input_url,entity_filt" + - "er\312A/\n\025google.protobuf.Empty\022\026ImportEnti" + - "tiesMetadata\022\257\001\n\013CreateIndex\022-.google.da" + - "tastore.admin.v1.CreateIndexRequest\032\035.go" + - "ogle.longrunning.Operation\"R\202\323\344\223\002*\"!/v1/" + - "projects/{project_id}/indexes:\005index\312A\037\n" + - "\005Index\022\026IndexOperationMetadata\022\263\001\n\013Delet" + - "eIndex\022-.google.datastore.admin.v1.Delet" + - "eIndexRequest\032\035.google.longrunning.Opera" + - "tion\"V\202\323\344\223\002.*,/v1/projects/{project_id}/" + - "indexes/{index_id}\312A\037\n\005Index\022\026IndexOpera" + - "tionMetadata\022\216\001\n\010GetIndex\022*.google.datas" + - "tore.admin.v1.GetIndexRequest\032 .google.d" + - "atastore.admin.v1.Index\"4\202\323\344\223\002.\022,/v1/pro" + - "jects/{project_id}/indexes/{index_id}\022\227\001" + - "\n\013ListIndexes\022-.google.datastore.admin.v" + - "1.ListIndexesRequest\032..google.datastore." + - "admin.v1.ListIndexesResponse\")\202\323\344\223\002#\022!/v" + - "1/projects/{project_id}/indexes\032v\312A\030data" + - "store.googleapis.com\322AXhttps://www.googl" + - "eapis.com/auth/cloud-platform,https://ww" + - "w.googleapis.com/auth/datastoreB\340\001\n\035com." + - "google.datastore.admin.v1B\023DatastoreAdmi" + - "nProtoP\001Z>google.golang.org/genproto/goo" + - "gleapis/datastore/admin/v1;admin\252\002\037Googl" + - "e.Cloud.Datastore.Admin.V1\312\002\037Google\\Clou" + - "d\\Datastore\\Admin\\V1\352\002#Google::Cloud::Da" + - "tastore::Admin::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.datastore.admin.v1.IndexProto.getDescriptor(), - com.google.datastore.admin.v1.MigrationProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_datastore_admin_v1_CommonMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_CommonMetadata_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "OperationType", "Labels", "State", }); - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor = - internal_static_google_datastore_admin_v1_CommonMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_datastore_admin_v1_Progress_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_Progress_descriptor, - new java.lang.String[] { "WorkCompleted", "WorkEstimated", }); - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor, - new java.lang.String[] { "ProjectId", "Labels", "EntityFilter", "OutputUrlPrefix", }); - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor = - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor.getNestedTypes().get(0); - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor, - new java.lang.String[] { "ProjectId", "Labels", "InputUrl", "EntityFilter", }); - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor = - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor.getNestedTypes().get(0); - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor, - new java.lang.String[] { "OutputUrl", }); - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor, - new java.lang.String[] { "Common", "ProgressEntities", "ProgressBytes", "EntityFilter", "OutputUrlPrefix", }); - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor, - new java.lang.String[] { "Common", "ProgressEntities", "ProgressBytes", "EntityFilter", "InputUrl", }); - internal_static_google_datastore_admin_v1_EntityFilter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_EntityFilter_descriptor, - new java.lang.String[] { "Kinds", "NamespaceIds", }); - internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor, - new java.lang.String[] { "ProjectId", "Index", }); - internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor, - new java.lang.String[] { "ProjectId", "IndexId", }); - internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor, - new java.lang.String[] { "ProjectId", "IndexId", }); - internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor, - new java.lang.String[] { "ProjectId", "Filter", "PageSize", "PageToken", }); - internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor, - new java.lang.String[] { "Indexes", "NextPageToken", }); - internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor, - new java.lang.String[] { "Common", "ProgressEntities", "IndexId", }); - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor, - new java.lang.String[] { "MigrationState", "MigrationStep", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.datastore.admin.v1.IndexProto.getDescriptor(); - com.google.datastore.admin.v1.MigrationProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java deleted file mode 100644 index 36b0d7816..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/datastore/admin/v1/index.proto - -package com.google.datastore.admin.v1; - -public final class IndexProto { - private IndexProto() {} - 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_datastore_admin_v1_Index_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_Index_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%google/datastore/admin/v1/index.proto\022" + - "\031google.datastore.admin.v1\032\037google/api/f" + - "ield_behavior.proto\"\346\004\n\005Index\022\027\n\nproject" + - "_id\030\001 \001(\tB\003\340A\003\022\025\n\010index_id\030\003 \001(\tB\003\340A\003\022\021\n" + - "\004kind\030\004 \001(\tB\003\340A\002\022D\n\010ancestor\030\005 \001(\0162-.goo" + - "gle.datastore.admin.v1.Index.AncestorMod" + - "eB\003\340A\002\022I\n\nproperties\030\006 \003(\01320.google.data" + - "store.admin.v1.Index.IndexedPropertyB\003\340A" + - "\002\022:\n\005state\030\007 \001(\0162&.google.datastore.admi" + - "n.v1.Index.StateB\003\340A\003\032h\n\017IndexedProperty" + - "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022B\n\tdirection\030\002 \001(\0162*" + - ".google.datastore.admin.v1.Index.Directi" + - "onB\003\340A\002\"J\n\014AncestorMode\022\035\n\031ANCESTOR_MODE" + - "_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\021\n\rALL_ANCESTOR" + - "S\020\002\"E\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIE" + - "D\020\000\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"P\n\005St" + - "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001" + - "\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERROR\020\004B\327\001\n" + - "\035com.google.datastore.admin.v1B\nIndexPro" + - "toP\001Z>google.golang.org/genproto/googlea" + - "pis/datastore/admin/v1;admin\252\002\037Google.Cl" + - "oud.Datastore.Admin.V1\312\002\037Google\\Cloud\\Da" + - "tastore\\Admin\\V1\352\002#Google::Cloud::Datast" + - "ore::Admin::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_datastore_admin_v1_Index_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_datastore_admin_v1_Index_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_Index_descriptor, - new java.lang.String[] { "ProjectId", "IndexId", "Kind", "Ancestor", "Properties", "State", }); - internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor = - internal_static_google_datastore_admin_v1_Index_descriptor.getNestedTypes().get(0); - internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor, - new java.lang.String[] { "Name", "Direction", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java deleted file mode 100644 index 257192f18..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java +++ /dev/null @@ -1,113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/datastore/admin/v1/migration.proto - -package com.google.datastore.admin.v1; - -public final class MigrationProto { - private MigrationProto() {} - 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_datastore_admin_v1_MigrationStateEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/datastore/admin/v1/migration.pr" + - "oto\022\031google.datastore.admin.v1\"O\n\023Migrat" + - "ionStateEvent\0228\n\005state\030\001 \001(\0162).google.da" + - "tastore.admin.v1.MigrationState\"\241\005\n\026Migr" + - "ationProgressEvent\0226\n\004step\030\001 \001(\0162(.googl" + - "e.datastore.admin.v1.MigrationStep\022d\n\024pr" + - "epare_step_details\030\002 \001(\0132D.google.datast" + - "ore.admin.v1.MigrationProgressEvent.Prep" + - "areStepDetailsH\000\022s\n\034redirect_writes_step" + - "_details\030\003 \001(\0132K.google.datastore.admin." + - "v1.MigrationProgressEvent.RedirectWrites" + - "StepDetailsH\000\032q\n\022PrepareStepDetails\022[\n\020c" + - "oncurrency_mode\030\001 \001(\0162A.google.datastore" + - ".admin.v1.MigrationProgressEvent.Concurr" + - "encyMode\032x\n\031RedirectWritesStepDetails\022[\n" + - "\020concurrency_mode\030\001 \001(\0162A.google.datasto" + - "re.admin.v1.MigrationProgressEvent.Concu" + - "rrencyMode\"w\n\017ConcurrencyMode\022 \n\034CONCURR" + - "ENCY_MODE_UNSPECIFIED\020\000\022\017\n\013PESSIMISTIC\020\001" + - "\022\016\n\nOPTIMISTIC\020\002\022!\n\035OPTIMISTIC_WITH_ENTI" + - "TY_GROUPS\020\003B\016\n\014step_details*X\n\016Migration" + - "State\022\037\n\033MIGRATION_STATE_UNSPECIFIED\020\000\022\013" + - "\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014\n\010COMPLETE\020\003*\343\001" + - "\n\rMigrationStep\022\036\n\032MIGRATION_STEP_UNSPEC" + - "IFIED\020\000\022\013\n\007PREPARE\020\006\022\t\n\005START\020\001\022\036\n\032APPLY" + - "_WRITES_SYNCHRONOUSLY\020\007\022\023\n\017COPY_AND_VERI" + - "FY\020\002\022(\n$REDIRECT_EVENTUALLY_CONSISTENT_R" + - "EADS\020\003\022&\n\"REDIRECT_STRONGLY_CONSISTENT_R" + - "EADS\020\004\022\023\n\017REDIRECT_WRITES\020\005B\333\001\n\035com.goog" + - "le.datastore.admin.v1B\016MigrationProtoP\001Z" + - ">google.golang.org/genproto/googleapis/d" + - "atastore/admin/v1;admin\252\002\037Google.Cloud.D" + - "atastore.Admin.V1\312\002\037Google\\Cloud\\Datasto" + - "re\\Admin\\V1\352\002#Google::Cloud::Datastore::" + - "Admin::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor, - new java.lang.String[] { "State", }); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor, - new java.lang.String[] { "Step", "PrepareStepDetails", "RedirectWritesStepDetails", "StepDetails", }); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor = - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor.getNestedTypes().get(0); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor, - new java.lang.String[] { "ConcurrencyMode", }); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor = - internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor.getNestedTypes().get(1); - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor, - new java.lang.String[] { "ConcurrencyMode", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java deleted file mode 100644 index 67e8a1c86..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/datastore/v1/datastore.proto - -package com.google.datastore.v1; - -public interface BeginTransactionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.datastore.v1.BeginTransactionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The transaction identifier (always present).
-   * 
- * - * bytes transaction = 1; - * @return The transaction. - */ - com.google.protobuf.ByteString getTransaction(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java deleted file mode 100644 index 6f0797a49..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java +++ /dev/null @@ -1,387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/datastore/v1/datastore.proto - -package com.google.datastore.v1; - -public final class DatastoreProto { - private DatastoreProto() {} - 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_datastore_v1_LookupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_LookupResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_RunQueryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_RunQueryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_RollbackRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_RollbackResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_CommitRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_CommitResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_Mutation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_Mutation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_MutationResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_MutationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_ReadOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_TransactionOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#google/datastore/v1/datastore.proto\022\023g" + - "oogle.datastore.v1\032\034google/api/annotatio" + - "ns.proto\032\027google/api/client.proto\032\037googl" + - "e/api/field_behavior.proto\032 google/datas" + - "tore/v1/entity.proto\032\037google/datastore/v" + - "1/query.proto\032\037google/protobuf/timestamp" + - ".proto\"\215\001\n\rLookupRequest\022\027\n\nproject_id\030\010" + - " \001(\tB\003\340A\002\0226\n\014read_options\030\001 \001(\0132 .google" + - ".datastore.v1.ReadOptions\022+\n\004keys\030\003 \003(\0132" + - "\030.google.datastore.v1.KeyB\003\340A\002\"\321\001\n\016Looku" + - "pResponse\0220\n\005found\030\001 \003(\0132!.google.datast" + - "ore.v1.EntityResult\0222\n\007missing\030\002 \003(\0132!.g" + - "oogle.datastore.v1.EntityResult\022*\n\010defer" + - "red\030\003 \003(\0132\030.google.datastore.v1.Key\022-\n\tr" + - "ead_time\030\007 \001(\0132\032.google.protobuf.Timesta" + - "mp\"\211\002\n\017RunQueryRequest\022\027\n\nproject_id\030\010 \001" + - "(\tB\003\340A\002\0226\n\014partition_id\030\002 \001(\0132 .google.d" + - "atastore.v1.PartitionId\0226\n\014read_options\030" + - "\001 \001(\0132 .google.datastore.v1.ReadOptions\022" + - "+\n\005query\030\003 \001(\0132\032.google.datastore.v1.Que" + - "ryH\000\0222\n\tgql_query\030\007 \001(\0132\035.google.datasto" + - "re.v1.GqlQueryH\000B\014\n\nquery_type\"s\n\020RunQue" + - "ryResponse\0224\n\005batch\030\001 \001(\0132%.google.datas" + - "tore.v1.QueryResultBatch\022)\n\005query\030\002 \001(\0132" + - "\032.google.datastore.v1.Query\"x\n\027BeginTran" + - "sactionRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022" + - "D\n\023transaction_options\030\n \001(\0132\'.google.da" + - "tastore.v1.TransactionOptions\"/\n\030BeginTr" + - "ansactionResponse\022\023\n\013transaction\030\001 \001(\014\"D" + - "\n\017RollbackRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340" + - "A\002\022\030\n\013transaction\030\001 \001(\014B\003\340A\002\"\022\n\020Rollback" + - "Response\"\210\002\n\rCommitRequest\022\027\n\nproject_id" + - "\030\010 \001(\tB\003\340A\002\0225\n\004mode\030\005 \001(\0162\'.google.datas" + - "tore.v1.CommitRequest.Mode\022\025\n\013transactio" + - "n\030\001 \001(\014H\000\0220\n\tmutations\030\006 \003(\0132\035.google.da" + - "tastore.v1.Mutation\"F\n\004Mode\022\024\n\020MODE_UNSP" + - "ECIFIED\020\000\022\021\n\rTRANSACTIONAL\020\001\022\025\n\021NON_TRAN" + - "SACTIONAL\020\002B\026\n\024transaction_selector\"\227\001\n\016" + - "CommitResponse\022=\n\020mutation_results\030\003 \003(\013" + - "2#.google.datastore.v1.MutationResult\022\025\n" + - "\rindex_updates\030\004 \001(\005\022/\n\013commit_time\030\010 \001(" + - "\0132\032.google.protobuf.Timestamp\"Z\n\022Allocat" + - "eIdsRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022+\n\004" + - "keys\030\001 \003(\0132\030.google.datastore.v1.KeyB\003\340A" + - "\002\"=\n\023AllocateIdsResponse\022&\n\004keys\030\001 \003(\0132\030" + - ".google.datastore.v1.Key\"n\n\021ReserveIdsRe" + - "quest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022\023\n\013databa" + - "se_id\030\t \001(\t\022+\n\004keys\030\001 \003(\0132\030.google.datas" + - "tore.v1.KeyB\003\340A\002\"\024\n\022ReserveIdsResponse\"\272" + - "\002\n\010Mutation\022-\n\006insert\030\004 \001(\0132\033.google.dat" + - "astore.v1.EntityH\000\022-\n\006update\030\005 \001(\0132\033.goo" + - "gle.datastore.v1.EntityH\000\022-\n\006upsert\030\006 \001(" + - "\0132\033.google.datastore.v1.EntityH\000\022*\n\006dele" + - "te\030\007 \001(\0132\030.google.datastore.v1.KeyH\000\022\026\n\014" + - "base_version\030\010 \001(\003H\001\0221\n\013update_time\030\013 \001(" + - "\0132\032.google.protobuf.TimestampH\001B\013\n\topera" + - "tionB\035\n\033conflict_detection_strategy\"\224\001\n\016" + - "MutationResult\022%\n\003key\030\003 \001(\0132\030.google.dat" + - "astore.v1.Key\022\017\n\007version\030\004 \001(\003\022/\n\013update" + - "_time\030\006 \001(\0132\032.google.protobuf.Timestamp\022" + - "\031\n\021conflict_detected\030\005 \001(\010\"\206\002\n\013ReadOptio" + - "ns\022L\n\020read_consistency\030\001 \001(\01620.google.da" + - "tastore.v1.ReadOptions.ReadConsistencyH\000" + - "\022\025\n\013transaction\030\002 \001(\014H\000\022/\n\tread_time\030\004 \001" + - "(\0132\032.google.protobuf.TimestampH\000\"M\n\017Read" + - "Consistency\022 \n\034READ_CONSISTENCY_UNSPECIF" + - "IED\020\000\022\n\n\006STRONG\020\001\022\014\n\010EVENTUAL\020\002B\022\n\020consi" + - "stency_type\"\222\002\n\022TransactionOptions\022G\n\nre" + - "ad_write\030\001 \001(\01321.google.datastore.v1.Tra" + - "nsactionOptions.ReadWriteH\000\022E\n\tread_only" + - "\030\002 \001(\01320.google.datastore.v1.Transaction" + - "Options.ReadOnlyH\000\032)\n\tReadWrite\022\034\n\024previ" + - "ous_transaction\030\001 \001(\014\0329\n\010ReadOnly\022-\n\trea" + - "d_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + - "B\006\n\004mode2\223\n\n\tDatastore\022\235\001\n\006Lookup\022\".goog" + - "le.datastore.v1.LookupRequest\032#.google.d" + - "atastore.v1.LookupResponse\"J\202\323\344\223\002%\" /v1/" + - "projects/{project_id}:lookup:\001*\332A\034projec" + - "t_id,read_options,keys\022\206\001\n\010RunQuery\022$.go" + - "ogle.datastore.v1.RunQueryRequest\032%.goog" + - "le.datastore.v1.RunQueryResponse\"-\202\323\344\223\002\'" + - "\"\"/v1/projects/{project_id}:runQuery:\001*\022" + - "\263\001\n\020BeginTransaction\022,.google.datastore." + - "v1.BeginTransactionRequest\032-.google.data" + - "store.v1.BeginTransactionResponse\"B\202\323\344\223\002" + - "/\"*/v1/projects/{project_id}:beginTransa" + - "ction:\001*\332A\nproject_id\022\302\001\n\006Commit\022\".googl" + - "e.datastore.v1.CommitRequest\032#.google.da" + - "tastore.v1.CommitResponse\"o\202\323\344\223\002%\" /v1/p" + - "rojects/{project_id}:commit:\001*\332A%project" + - "_id,mode,transaction,mutations\332A\031project" + - "_id,mode,mutations\022\237\001\n\010Rollback\022$.google" + - ".datastore.v1.RollbackRequest\032%.google.d" + - "atastore.v1.RollbackResponse\"F\202\323\344\223\002\'\"\"/v" + - "1/projects/{project_id}:rollback:\001*\332A\026pr" + - "oject_id,transaction\022\244\001\n\013AllocateIds\022\'.g" + - "oogle.datastore.v1.AllocateIdsRequest\032(." + - "google.datastore.v1.AllocateIdsResponse\"" + - "B\202\323\344\223\002*\"%/v1/projects/{project_id}:alloc" + - "ateIds:\001*\332A\017project_id,keys\022\240\001\n\nReserveI" + - "ds\022&.google.datastore.v1.ReserveIdsReque" + - "st\032\'.google.datastore.v1.ReserveIdsRespo" + - "nse\"A\202\323\344\223\002)\"$/v1/projects/{project_id}:r" + - "eserveIds:\001*\332A\017project_id,keys\032v\312A\030datas" + - "tore.googleapis.com\322AXhttps://www.google" + - "apis.com/auth/cloud-platform,https://www" + - ".googleapis.com/auth/datastoreB\300\001\n\027com.g" + - "oogle.datastore.v1B\016DatastoreProtoP\001Z - * The name of the kind. - * - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The name of the kind.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java deleted file mode 100644 index 9d4dcafb4..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/datastore/v1/query.proto - -package com.google.datastore.v1; - -public interface PropertyReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.datastore.v1.PropertyReference) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The name of the property.
-   * If name includes "."s, it may be interpreted as a property name path.
-   * 
- * - * string name = 2; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The name of the property.
-   * If name includes "."s, it may be interpreted as a property name path.
-   * 
- * - * string name = 2; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java b/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java deleted file mode 100644 index 157c5f714..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java +++ /dev/null @@ -1,257 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/datastore/v1/query.proto - -package com.google.datastore.v1; - -public final class QueryProto { - private QueryProto() {} - 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_datastore_v1_EntityResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_EntityResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_Query_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_Query_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_KindExpression_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_KindExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_PropertyReference_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_Projection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_Projection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_PropertyOrder_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_Filter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_CompositeFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_PropertyFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_GqlQuery_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_GqlQueryParameter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_datastore_v1_QueryResultBatch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037google/datastore/v1/query.proto\022\023googl" + - "e.datastore.v1\032 google/datastore/v1/enti" + - "ty.proto\032\037google/protobuf/timestamp.prot" + - "o\032\036google/protobuf/wrappers.proto\"\340\001\n\014En" + - "tityResult\022+\n\006entity\030\001 \001(\0132\033.google.data" + - "store.v1.Entity\022\017\n\007version\030\004 \001(\003\022/\n\013upda" + - "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + - "p\022\016\n\006cursor\030\003 \001(\014\"Q\n\nResultType\022\033\n\027RESUL" + - "T_TYPE_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022\016\n\nPROJEC" + - "TION\020\002\022\014\n\010KEY_ONLY\020\003\"\362\002\n\005Query\0223\n\nprojec" + - "tion\030\002 \003(\0132\037.google.datastore.v1.Project" + - "ion\0221\n\004kind\030\003 \003(\0132#.google.datastore.v1." + - "KindExpression\022+\n\006filter\030\004 \001(\0132\033.google." + - "datastore.v1.Filter\0221\n\005order\030\005 \003(\0132\".goo" + - "gle.datastore.v1.PropertyOrder\022;\n\013distin" + - "ct_on\030\006 \003(\0132&.google.datastore.v1.Proper" + - "tyReference\022\024\n\014start_cursor\030\007 \001(\014\022\022\n\nend" + - "_cursor\030\010 \001(\014\022\016\n\006offset\030\n \001(\005\022*\n\005limit\030\014" + - " \001(\0132\033.google.protobuf.Int32Value\"\036\n\016Kin" + - "dExpression\022\014\n\004name\030\001 \001(\t\"!\n\021PropertyRef" + - "erence\022\014\n\004name\030\002 \001(\t\"F\n\nProjection\0228\n\010pr" + - "operty\030\001 \001(\0132&.google.datastore.v1.Prope" + - "rtyReference\"\321\001\n\rPropertyOrder\0228\n\010proper" + - "ty\030\001 \001(\0132&.google.datastore.v1.PropertyR" + - "eference\022?\n\tdirection\030\002 \001(\0162,.google.dat" + - "astore.v1.PropertyOrder.Direction\"E\n\tDir" + - "ection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\r\n\tASC" + - "ENDING\020\001\022\016\n\nDESCENDING\020\002\"\231\001\n\006Filter\022@\n\020c" + - "omposite_filter\030\001 \001(\0132$.google.datastore" + - ".v1.CompositeFilterH\000\022>\n\017property_filter" + - "\030\002 \001(\0132#.google.datastore.v1.PropertyFil" + - "terH\000B\r\n\013filter_type\"\251\001\n\017CompositeFilter" + - "\0229\n\002op\030\001 \001(\0162-.google.datastore.v1.Compo" + - "siteFilter.Operator\022,\n\007filters\030\002 \003(\0132\033.g" + - "oogle.datastore.v1.Filter\"-\n\010Operator\022\030\n" + - "\024OPERATOR_UNSPECIFIED\020\000\022\007\n\003AND\020\001\"\352\002\n\016Pro" + - "pertyFilter\0228\n\010property\030\001 \001(\0132&.google.d" + - "atastore.v1.PropertyReference\0228\n\002op\030\002 \001(" + - "\0162,.google.datastore.v1.PropertyFilter.O" + - "perator\022)\n\005value\030\003 \001(\0132\032.google.datastor" + - "e.v1.Value\"\270\001\n\010Operator\022\030\n\024OPERATOR_UNSP" + - "ECIFIED\020\000\022\r\n\tLESS_THAN\020\001\022\026\n\022LESS_THAN_OR" + - "_EQUAL\020\002\022\020\n\014GREATER_THAN\020\003\022\031\n\025GREATER_TH" + - "AN_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\006\n\002IN\020\006\022\r\n\tNOT_" + - "EQUAL\020\t\022\020\n\014HAS_ANCESTOR\020\013\022\n\n\006NOT_IN\020\r\"\245\002" + - "\n\010GqlQuery\022\024\n\014query_string\030\001 \001(\t\022\026\n\016allo" + - "w_literals\030\002 \001(\010\022H\n\016named_bindings\030\005 \003(\013" + - "20.google.datastore.v1.GqlQuery.NamedBin" + - "dingsEntry\022C\n\023positional_bindings\030\004 \003(\0132" + - "&.google.datastore.v1.GqlQueryParameter\032" + - "\\\n\022NamedBindingsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005va" + - "lue\030\002 \001(\0132&.google.datastore.v1.GqlQuery" + - "Parameter:\0028\001\"d\n\021GqlQueryParameter\022+\n\005va" + - "lue\030\002 \001(\0132\032.google.datastore.v1.ValueH\000\022" + - "\020\n\006cursor\030\003 \001(\014H\000B\020\n\016parameter_type\"\215\004\n\020" + - "QueryResultBatch\022\027\n\017skipped_results\030\006 \001(" + - "\005\022\026\n\016skipped_cursor\030\003 \001(\014\022H\n\022entity_resu" + - "lt_type\030\001 \001(\0162,.google.datastore.v1.Enti" + - "tyResult.ResultType\0229\n\016entity_results\030\002 " + - "\003(\0132!.google.datastore.v1.EntityResult\022\022" + - "\n\nend_cursor\030\004 \001(\014\022K\n\014more_results\030\005 \001(\016" + - "25.google.datastore.v1.QueryResultBatch." + - "MoreResultsType\022\030\n\020snapshot_version\030\007 \001(" + - "\003\022-\n\tread_time\030\010 \001(\0132\032.google.protobuf.T" + - "imestamp\"\230\001\n\017MoreResultsType\022!\n\035MORE_RES" + - "ULTS_TYPE_UNSPECIFIED\020\000\022\020\n\014NOT_FINISHED\020" + - "\001\022\034\n\030MORE_RESULTS_AFTER_LIMIT\020\002\022\035\n\031MORE_" + - "RESULTS_AFTER_CURSOR\020\004\022\023\n\017NO_MORE_RESULT" + - "S\020\003B\274\001\n\027com.google.datastore.v1B\nQueryPr" + - "otoP\001Z * Metadata common to all Datastore Admin operations. * * * Protobuf type {@code google.datastore.admin.v1.CommonMetadata} */ -public final class CommonMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommonMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.CommonMetadata) CommonMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommonMetadata.newBuilder() to construct. private CommonMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CommonMetadata() { operationType_ = 0; state_ = 0; @@ -26,16 +44,15 @@ private CommonMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommonMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,64 +72,70 @@ private CommonMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 24: + { + int rawValue = input.readEnum(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + operationType_ = rawValue; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 40: + { + int rawValue = input.readEnum(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - operationType_ = rawValue; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 40: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,48 +143,52 @@ private CommonMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.CommonMetadata.class, com.google.datastore.admin.v1.CommonMetadata.Builder.class); + com.google.datastore.admin.v1.CommonMetadata.class, + com.google.datastore.admin.v1.CommonMetadata.Builder.class); } /** + * + * *
    * The various possible states for an ongoing Operation.
    * 
* * Protobuf enum {@code google.datastore.admin.v1.CommonMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -170,6 +197,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being prepared for processing.
      * 
@@ -178,6 +207,8 @@ public enum State */ INITIALIZING(1), /** + * + * *
      * Request is actively being processed.
      * 
@@ -186,6 +217,8 @@ public enum State */ PROCESSING(2), /** + * + * *
      * Request is in the process of being cancelled after user called
      * google.longrunning.Operations.CancelOperation on the operation.
@@ -195,6 +228,8 @@ public enum State
      */
     CANCELLING(3),
     /**
+     *
+     *
      * 
      * Request has been processed and is in its finalization stage.
      * 
@@ -203,6 +238,8 @@ public enum State */ FINALIZING(4), /** + * + * *
      * Request has completed successfully.
      * 
@@ -211,6 +248,8 @@ public enum State */ SUCCESSFUL(5), /** + * + * *
      * Request has finished being processed, but encountered an error.
      * 
@@ -219,6 +258,8 @@ public enum State */ FAILED(6), /** + * + * *
      * Request has finished being cancelled after user called
      * google.longrunning.Operations.CancelOperation.
@@ -231,6 +272,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified.
      * 
@@ -239,6 +282,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being prepared for processing.
      * 
@@ -247,6 +292,8 @@ public enum State */ public static final int INITIALIZING_VALUE = 1; /** + * + * *
      * Request is actively being processed.
      * 
@@ -255,6 +302,8 @@ public enum State */ public static final int PROCESSING_VALUE = 2; /** + * + * *
      * Request is in the process of being cancelled after user called
      * google.longrunning.Operations.CancelOperation on the operation.
@@ -264,6 +313,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 3;
     /**
+     *
+     *
      * 
      * Request has been processed and is in its finalization stage.
      * 
@@ -272,6 +323,8 @@ public enum State */ public static final int FINALIZING_VALUE = 4; /** + * + * *
      * Request has completed successfully.
      * 
@@ -280,6 +333,8 @@ public enum State */ public static final int SUCCESSFUL_VALUE = 5; /** + * + * *
      * Request has finished being processed, but encountered an error.
      * 
@@ -288,6 +343,8 @@ public enum State */ public static final int FAILED_VALUE = 6; /** + * + * *
      * Request has finished being cancelled after user called
      * google.longrunning.Operations.CancelOperation.
@@ -297,7 +354,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 7;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -322,54 +378,59 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return INITIALIZING;
-        case 2: return PROCESSING;
-        case 3: return CANCELLING;
-        case 4: return FINALIZING;
-        case 5: return SUCCESSFUL;
-        case 6: return FAILED;
-        case 7: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return INITIALIZING;
+        case 2:
+          return PROCESSING;
+        case 3:
+          return CANCELLING;
+        case 4:
+          return FINALIZING;
+        case 5:
+          return SUCCESSFUL;
+        case 6:
+          return FAILED;
+        case 7:
+          return CANCELLED;
+        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() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.datastore.admin.v1.CommonMetadata.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;
@@ -389,11 +450,14 @@ private State(int value) {
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
+   *
+   *
    * 
    * The time that work began on the operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -401,11 +465,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The time that work began on the operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -413,6 +480,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time that work began on the operation.
    * 
@@ -427,11 +496,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation ended, either successfully or otherwise.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -439,11 +511,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation ended, either successfully or otherwise.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -451,6 +526,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation ended, either successfully or otherwise.
    * 
@@ -465,51 +542,59 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int OPERATION_TYPE_FIELD_NUMBER = 3; private int operationType_; /** + * + * *
    * The type of the operation. Can be used as a filter in
    * ListOperationsRequest.
    * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override public int getOperationTypeValue() { + @java.lang.Override + public int getOperationTypeValue() { return operationType_; } /** + * + * *
    * The type of the operation. Can be used as a filter in
    * ListOperationsRequest.
    * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @return The operationType. */ - @java.lang.Override public com.google.datastore.admin.v1.OperationType getOperationType() { + @java.lang.Override + public com.google.datastore.admin.v1.OperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.OperationType result = com.google.datastore.admin.v1.OperationType.valueOf(operationType_); + com.google.datastore.admin.v1.OperationType result = + com.google.datastore.admin.v1.OperationType.valueOf(operationType_); return result == null ? com.google.datastore.admin.v1.OperationType.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -518,6 +603,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -525,22 +612,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -549,11 +636,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -562,16 +650,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -580,12 +668,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -595,31 +682,43 @@ public java.lang.String getLabelsOrThrow(
   public static final int STATE_FIELD_NUMBER = 5;
   private int state_;
   /**
+   *
+   *
    * 
    * The current state of the Operation.
    * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @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 current state of the Operation.
    * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @return The state. */ - @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata.State getState() { + @java.lang.Override + public com.google.datastore.admin.v1.CommonMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.CommonMetadata.State result = com.google.datastore.admin.v1.CommonMetadata.State.valueOf(state_); - return result == null ? com.google.datastore.admin.v1.CommonMetadata.State.UNRECOGNIZED : result; + com.google.datastore.admin.v1.CommonMetadata.State result = + com.google.datastore.admin.v1.CommonMetadata.State.valueOf(state_); + return result == null + ? com.google.datastore.admin.v1.CommonMetadata.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -631,24 +730,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } if (endTime_ != null) { output.writeMessage(2, getEndTime()); } - if (operationType_ != com.google.datastore.admin.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { + if (operationType_ + != com.google.datastore.admin.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, operationType_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); - if (state_ != com.google.datastore.admin.v1.CommonMetadata.State.STATE_UNSPECIFIED.getNumber()) { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (state_ + != com.google.datastore.admin.v1.CommonMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } unknownFields.writeTo(output); @@ -661,30 +757,28 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); - } - if (operationType_ != com.google.datastore.admin.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, operationType_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); - } - if (state_ != com.google.datastore.admin.v1.CommonMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (operationType_ + != com.google.datastore.admin.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationType_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (state_ + != com.google.datastore.admin.v1.CommonMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -694,26 +788,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.CommonMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.CommonMetadata other = (com.google.datastore.admin.v1.CommonMetadata) obj; + com.google.datastore.admin.v1.CommonMetadata other = + (com.google.datastore.admin.v1.CommonMetadata) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (operationType_ != other.operationType_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -747,140 +839,147 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.CommonMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.CommonMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.CommonMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.CommonMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.CommonMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.CommonMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * Protobuf type {@code google.datastore.admin.v1.CommonMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.CommonMetadata) com.google.datastore.admin.v1.CommonMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.CommonMetadata.class, com.google.datastore.admin.v1.CommonMetadata.Builder.class); + com.google.datastore.admin.v1.CommonMetadata.class, + com.google.datastore.admin.v1.CommonMetadata.Builder.class); } // Construct using com.google.datastore.admin.v1.CommonMetadata.newBuilder() @@ -888,16 +987,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -922,9 +1020,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_CommonMetadata_descriptor; } @java.lang.Override @@ -943,7 +1041,8 @@ public com.google.datastore.admin.v1.CommonMetadata build() { @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata buildPartial() { - com.google.datastore.admin.v1.CommonMetadata result = new com.google.datastore.admin.v1.CommonMetadata(this); + com.google.datastore.admin.v1.CommonMetadata result = + new com.google.datastore.admin.v1.CommonMetadata(this); int from_bitField0_ = bitField0_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; @@ -967,38 +1066,39 @@ public com.google.datastore.admin.v1.CommonMetadata 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.datastore.admin.v1.CommonMetadata) { - return mergeFrom((com.google.datastore.admin.v1.CommonMetadata)other); + return mergeFrom((com.google.datastore.admin.v1.CommonMetadata) other); } else { super.mergeFrom(other); return this; @@ -1016,8 +1116,7 @@ public Builder mergeFrom(com.google.datastore.admin.v1.CommonMetadata other) { if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1049,28 +1148,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * The time that work began on the operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * The time that work began on the operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1081,6 +1190,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time that work began on the operation.
      * 
@@ -1101,14 +1212,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time that work began on the operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1119,6 +1231,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The time that work began on the operation.
      * 
@@ -1129,7 +1243,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1141,6 +1255,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time that work began on the operation.
      * 
@@ -1159,6 +1275,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The time that work began on the operation.
      * 
@@ -1166,11 +1284,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time that work began on the operation.
      * 
@@ -1181,11 +1301,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The time that work began on the operation.
      * 
@@ -1193,14 +1314,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1208,24 +1332,33 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1236,6 +1369,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1256,14 +1391,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - 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(); @@ -1274,6 +1410,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1284,7 +1422,7 @@ 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; } @@ -1296,6 +1434,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1314,6 +1454,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1321,11 +1463,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1336,11 +1480,12 @@ 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_; } } /** + * + * *
      * The time the operation ended, either successfully or otherwise.
      * 
@@ -1348,14 +1493,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_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> 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_; @@ -1363,55 +1511,69 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int operationType_ = 0; /** + * + * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override public int getOperationTypeValue() { + @java.lang.Override + public int getOperationTypeValue() { return operationType_; } /** + * + * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. */ public Builder setOperationTypeValue(int value) { - + operationType_ = value; onChanged(); return this; } /** + * + * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @return The operationType. */ @java.lang.Override public com.google.datastore.admin.v1.OperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.OperationType result = com.google.datastore.admin.v1.OperationType.valueOf(operationType_); + com.google.datastore.admin.v1.OperationType result = + com.google.datastore.admin.v1.OperationType.valueOf(operationType_); return result == null ? com.google.datastore.admin.v1.OperationType.UNRECOGNIZED : result; } /** + * + * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @param value The operationType to set. * @return This builder for chaining. */ @@ -1419,43 +1581,45 @@ public Builder setOperationType(com.google.datastore.admin.v1.OperationType valu if (value == null) { throw new NullPointerException(); } - + operationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of the operation. Can be used as a filter in
      * ListOperationsRequest.
      * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1467,6 +1631,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1474,22 +1640,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1498,11 +1664,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1511,16 +1678,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1529,12 +1697,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1542,11 +1709,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1554,23 +1722,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1578,19 +1744,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The client-assigned labels which were provided when the operation was
      * created. May also include additional labels.
@@ -1598,61 +1765,74 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @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 current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @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 current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @return The state. */ @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.CommonMetadata.State result = com.google.datastore.admin.v1.CommonMetadata.State.valueOf(state_); - return result == null ? com.google.datastore.admin.v1.CommonMetadata.State.UNRECOGNIZED : result; + com.google.datastore.admin.v1.CommonMetadata.State result = + com.google.datastore.admin.v1.CommonMetadata.State.valueOf(state_); + return result == null + ? com.google.datastore.admin.v1.CommonMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1660,28 +1840,31 @@ public Builder setState(com.google.datastore.admin.v1.CommonMetadata.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current state of the Operation.
      * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1691,12 +1874,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.CommonMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.CommonMetadata) private static final com.google.datastore.admin.v1.CommonMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.CommonMetadata(); } @@ -1705,16 +1888,16 @@ public static com.google.datastore.admin.v1.CommonMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1729,6 +1912,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.CommonMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java index 04a0bcc07..a67d22e0f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface CommonMetadataOrBuilder extends +public interface CommonMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.CommonMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time that work began on the operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The time that work began on the operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The time that work began on the operation.
    * 
@@ -35,24 +59,32 @@ public interface CommonMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The time the operation ended, either successfully or otherwise.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation ended, either successfully or otherwise.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation ended, either successfully or otherwise.
    * 
@@ -62,27 +94,35 @@ public interface CommonMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * The type of the operation. Can be used as a filter in
    * ListOperationsRequest.
    * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @return The enum numeric value on the wire for operationType. */ int getOperationTypeValue(); /** + * + * *
    * The type of the operation. Can be used as a filter in
    * ListOperationsRequest.
    * 
* * .google.datastore.admin.v1.OperationType operation_type = 3; + * * @return The operationType. */ com.google.datastore.admin.v1.OperationType getOperationType(); /** + * + * *
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -92,6 +132,8 @@ public interface CommonMetadataOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -99,15 +141,13 @@ public interface CommonMetadataOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -115,9 +155,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -127,11 +168,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The client-assigned labels which were provided when the operation was
    * created. May also include additional labels.
@@ -139,25 +182,29 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The current state of the Operation.
    * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the Operation.
    * 
* * .google.datastore.admin.v1.CommonMetadata.State state = 5; + * * @return The state. */ com.google.datastore.admin.v1.CommonMetadata.State getState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java index b363cc7e3..9d73ec24d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex][google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.CreateIndexRequest}
  */
-public final class CreateIndexRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateIndexRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.CreateIndexRequest)
     CreateIndexRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateIndexRequest.newBuilder() to construct.
   private CreateIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateIndexRequest() {
     projectId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateIndexRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateIndexRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,32 +71,36 @@ private CreateIndexRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            projectId_ = s;
-            break;
-          }
-          case 26: {
-            com.google.datastore.admin.v1.Index.Builder subBuilder = null;
-            if (index_ != null) {
-              subBuilder = index_.toBuilder();
+              projectId_ = s;
+              break;
             }
-            index_ = input.readMessage(com.google.datastore.admin.v1.Index.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(index_);
-              index_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.datastore.admin.v1.Index.Builder subBuilder = null;
+              if (index_ != null) {
+                subBuilder = index_.toBuilder();
+              }
+              index_ =
+                  input.readMessage(
+                      com.google.datastore.admin.v1.Index.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(index_);
+                index_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,34 +108,39 @@ private CreateIndexRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.CreateIndexRequest.class, com.google.datastore.admin.v1.CreateIndexRequest.Builder.class);
+            com.google.datastore.admin.v1.CreateIndexRequest.class,
+            com.google.datastore.admin.v1.CreateIndexRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
+   *
+   *
    * 
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -123,29 +149,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -156,12 +182,15 @@ public java.lang.String getProjectId() { public static final int INDEX_FIELD_NUMBER = 3; private com.google.datastore.admin.v1.Index index_; /** + * + * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
    * 
* * .google.datastore.admin.v1.Index index = 3; + * * @return Whether the index field is set. */ @java.lang.Override @@ -169,12 +198,15 @@ public boolean hasIndex() { return index_ != null; } /** + * + * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
    * 
* * .google.datastore.admin.v1.Index index = 3; + * * @return The index. */ @java.lang.Override @@ -182,6 +214,8 @@ public com.google.datastore.admin.v1.Index getIndex() { return index_ == null ? com.google.datastore.admin.v1.Index.getDefaultInstance() : index_; } /** + * + * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
@@ -195,6 +229,7 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,8 +241,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(projectId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
     }
@@ -227,8 +261,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
     }
     if (index_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getIndex());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIndex());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -238,19 +271,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.admin.v1.CreateIndexRequest)) {
       return super.equals(obj);
     }
-    com.google.datastore.admin.v1.CreateIndexRequest other = (com.google.datastore.admin.v1.CreateIndexRequest) obj;
+    com.google.datastore.admin.v1.CreateIndexRequest other =
+        (com.google.datastore.admin.v1.CreateIndexRequest) obj;
 
-    if (!getProjectId()
-        .equals(other.getProjectId())) return false;
+    if (!getProjectId().equals(other.getProjectId())) return false;
     if (hasIndex() != other.hasIndex()) return false;
     if (hasIndex()) {
-      if (!getIndex()
-          .equals(other.getIndex())) return false;
+      if (!getIndex().equals(other.getIndex())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -274,97 +306,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.admin.v1.CreateIndexRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.datastore.admin.v1.CreateIndexRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.admin.v1.CreateIndexRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.admin.v1.CreateIndexRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex][google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
@@ -372,21 +411,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.CreateIndexRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.CreateIndexRequest)
       com.google.datastore.admin.v1.CreateIndexRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.CreateIndexRequest.class, com.google.datastore.admin.v1.CreateIndexRequest.Builder.class);
+              com.google.datastore.admin.v1.CreateIndexRequest.class,
+              com.google.datastore.admin.v1.CreateIndexRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.CreateIndexRequest.newBuilder()
@@ -394,16 +435,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +459,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
     }
 
     @java.lang.Override
@@ -440,7 +480,8 @@ public com.google.datastore.admin.v1.CreateIndexRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.CreateIndexRequest buildPartial() {
-      com.google.datastore.admin.v1.CreateIndexRequest result = new com.google.datastore.admin.v1.CreateIndexRequest(this);
+      com.google.datastore.admin.v1.CreateIndexRequest result =
+          new com.google.datastore.admin.v1.CreateIndexRequest(this);
       result.projectId_ = projectId_;
       if (indexBuilder_ == null) {
         result.index_ = index_;
@@ -455,38 +496,39 @@ public com.google.datastore.admin.v1.CreateIndexRequest 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.datastore.admin.v1.CreateIndexRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.CreateIndexRequest)other);
+        return mergeFrom((com.google.datastore.admin.v1.CreateIndexRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -494,7 +536,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.CreateIndexRequest other) {
-      if (other == com.google.datastore.admin.v1.CreateIndexRequest.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.CreateIndexRequest.getDefaultInstance())
+        return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
@@ -533,18 +576,20 @@ public Builder mergeFrom(
 
     private java.lang.Object projectId_ = "";
     /**
+     *
+     *
      * 
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -553,20 +598,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -574,54 +620,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -629,26 +682,35 @@ public Builder setProjectIdBytes( private com.google.datastore.admin.v1.Index index_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder> indexBuilder_; + com.google.datastore.admin.v1.Index, + com.google.datastore.admin.v1.Index.Builder, + com.google.datastore.admin.v1.IndexOrBuilder> + indexBuilder_; /** + * + * *
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
      * 
* * .google.datastore.admin.v1.Index index = 3; + * * @return Whether the index field is set. */ public boolean hasIndex() { return indexBuilder_ != null || index_ != null; } /** + * + * *
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
      * 
* * .google.datastore.admin.v1.Index index = 3; + * * @return The index. */ public com.google.datastore.admin.v1.Index getIndex() { @@ -659,6 +721,8 @@ public com.google.datastore.admin.v1.Index getIndex() { } } /** + * + * *
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -680,6 +744,8 @@ public Builder setIndex(com.google.datastore.admin.v1.Index value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -687,8 +753,7 @@ public Builder setIndex(com.google.datastore.admin.v1.Index value) {
      *
      * .google.datastore.admin.v1.Index index = 3;
      */
-    public Builder setIndex(
-        com.google.datastore.admin.v1.Index.Builder builderForValue) {
+    public Builder setIndex(com.google.datastore.admin.v1.Index.Builder builderForValue) {
       if (indexBuilder_ == null) {
         index_ = builderForValue.build();
         onChanged();
@@ -699,6 +764,8 @@ public Builder setIndex(
       return this;
     }
     /**
+     *
+     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -710,7 +777,9 @@ public Builder mergeIndex(com.google.datastore.admin.v1.Index value) {
       if (indexBuilder_ == null) {
         if (index_ != null) {
           index_ =
-            com.google.datastore.admin.v1.Index.newBuilder(index_).mergeFrom(value).buildPartial();
+              com.google.datastore.admin.v1.Index.newBuilder(index_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           index_ = value;
         }
@@ -722,6 +791,8 @@ public Builder mergeIndex(com.google.datastore.admin.v1.Index value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -741,6 +812,8 @@ public Builder clearIndex() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -749,11 +822,13 @@ public Builder clearIndex() {
      * .google.datastore.admin.v1.Index index = 3;
      */
     public com.google.datastore.admin.v1.Index.Builder getIndexBuilder() {
-      
+
       onChanged();
       return getIndexFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -765,11 +840,12 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
       if (indexBuilder_ != null) {
         return indexBuilder_.getMessageOrBuilder();
       } else {
-        return index_ == null ?
-            com.google.datastore.admin.v1.Index.getDefaultInstance() : index_;
+        return index_ == null ? com.google.datastore.admin.v1.Index.getDefaultInstance() : index_;
       }
     }
     /**
+     *
+     *
      * 
      * The index to create. The name and state fields are output only and will be
      * ignored. Single property indexes cannot be created or deleted.
@@ -778,21 +854,24 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
      * .google.datastore.admin.v1.Index index = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder> 
+            com.google.datastore.admin.v1.Index,
+            com.google.datastore.admin.v1.Index.Builder,
+            com.google.datastore.admin.v1.IndexOrBuilder>
         getIndexFieldBuilder() {
       if (indexBuilder_ == null) {
-        indexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder>(
-                getIndex(),
-                getParentForChildren(),
-                isClean());
+        indexBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.admin.v1.Index,
+                com.google.datastore.admin.v1.Index.Builder,
+                com.google.datastore.admin.v1.IndexOrBuilder>(
+                getIndex(), getParentForChildren(), isClean());
         index_ = null;
       }
       return indexBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -802,12 +881,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.CreateIndexRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.CreateIndexRequest)
   private static final com.google.datastore.admin.v1.CreateIndexRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.admin.v1.CreateIndexRequest();
   }
@@ -816,16 +895,16 @@ public static com.google.datastore.admin.v1.CreateIndexRequest getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CreateIndexRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new CreateIndexRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CreateIndexRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new CreateIndexRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -840,6 +919,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.admin.v1.CreateIndexRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
index 14b3e31ed..5aa22c75b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
+++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java
@@ -1,53 +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/datastore/admin/v1/datastore_admin.proto
 
 package com.google.datastore.admin.v1;
 
-public interface CreateIndexRequestOrBuilder extends
+public interface CreateIndexRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.CreateIndexRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
    * 
* * .google.datastore.admin.v1.Index index = 3; + * * @return Whether the index field is set. */ boolean hasIndex(); /** + * + * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
    * 
* * .google.datastore.admin.v1.Index index = 3; + * * @return The index. */ com.google.datastore.admin.v1.Index getIndex(); /** + * + * *
    * The index to create. The name and state fields are output only and will be
    * ignored. Single property indexes cannot be created or deleted.
diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java
new file mode 100644
index 000000000..810e65ae7
--- /dev/null
+++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreAdminProto.java
@@ -0,0 +1,405 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/admin/v1/datastore_admin.proto
+
+package com.google.datastore.admin.v1;
+
+public final class DatastoreAdminProto {
+  private DatastoreAdminProto() {}
+
+  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_datastore_admin_v1_CommonMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_Progress_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n/google/datastore/admin/v1/datastore_ad"
+          + "min.proto\022\031google.datastore.admin.v1\032\034go"
+          + "ogle/api/annotations.proto\032\027google/api/c"
+          + "lient.proto\032\037google/api/field_behavior.p"
+          + "roto\032%google/datastore/admin/v1/index.pr"
+          + "oto\032)google/datastore/admin/v1/migration"
+          + ".proto\032#google/longrunning/operations.pr"
+          + "oto\032\037google/protobuf/timestamp.proto\"\364\003\n"
+          + "\016CommonMetadata\022.\n\nstart_time\030\001 \001(\0132\032.go"
+          + "ogle.protobuf.Timestamp\022,\n\010end_time\030\002 \001("
+          + "\0132\032.google.protobuf.Timestamp\022@\n\016operati"
+          + "on_type\030\003 \001(\0162(.google.datastore.admin.v"
+          + "1.OperationType\022E\n\006labels\030\004 \003(\01325.google"
+          + ".datastore.admin.v1.CommonMetadata.Label"
+          + "sEntry\022>\n\005state\030\005 \001(\0162/.google.datastore"
+          + ".admin.v1.CommonMetadata.State\032-\n\013Labels"
+          + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\213\001"
+          + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014INITIA"
+          + "LIZING\020\001\022\016\n\nPROCESSING\020\002\022\016\n\nCANCELLING\020\003"
+          + "\022\016\n\nFINALIZING\020\004\022\016\n\nSUCCESSFUL\020\005\022\n\n\006FAIL"
+          + "ED\020\006\022\r\n\tCANCELLED\020\007\":\n\010Progress\022\026\n\016work_"
+          + "completed\030\001 \001(\003\022\026\n\016work_estimated\030\002 \001(\003\""
+          + "\215\002\n\025ExportEntitiesRequest\022\027\n\nproject_id\030"
+          + "\001 \001(\tB\003\340A\002\022L\n\006labels\030\002 \003(\0132<.google.data"
+          + "store.admin.v1.ExportEntitiesRequest.Lab"
+          + "elsEntry\022>\n\rentity_filter\030\003 \001(\0132\'.google"
+          + ".datastore.admin.v1.EntityFilter\022\036\n\021outp"
+          + "ut_url_prefix\030\004 \001(\tB\003\340A\002\032-\n\013LabelsEntry\022"
+          + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\002\n\025Impo"
+          + "rtEntitiesRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340"
+          + "A\002\022L\n\006labels\030\002 \003(\0132<.google.datastore.ad"
+          + "min.v1.ImportEntitiesRequest.LabelsEntry"
+          + "\022\026\n\tinput_url\030\003 \001(\tB\003\340A\002\022>\n\rentity_filte"
+          + "r\030\004 \001(\0132\'.google.datastore.admin.v1.Enti"
+          + "tyFilter\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
+          + "value\030\002 \001(\t:\0028\001\",\n\026ExportEntitiesRespons"
+          + "e\022\022\n\noutput_url\030\001 \001(\t\"\253\002\n\026ExportEntities"
+          + "Metadata\0229\n\006common\030\001 \001(\0132).google.datast"
+          + "ore.admin.v1.CommonMetadata\022>\n\021progress_"
+          + "entities\030\002 \001(\0132#.google.datastore.admin."
+          + "v1.Progress\022;\n\016progress_bytes\030\003 \001(\0132#.go"
+          + "ogle.datastore.admin.v1.Progress\022>\n\renti"
+          + "ty_filter\030\004 \001(\0132\'.google.datastore.admin"
+          + ".v1.EntityFilter\022\031\n\021output_url_prefix\030\005 "
+          + "\001(\t\"\243\002\n\026ImportEntitiesMetadata\0229\n\006common"
+          + "\030\001 \001(\0132).google.datastore.admin.v1.Commo"
+          + "nMetadata\022>\n\021progress_entities\030\002 \001(\0132#.g"
+          + "oogle.datastore.admin.v1.Progress\022;\n\016pro"
+          + "gress_bytes\030\003 \001(\0132#.google.datastore.adm"
+          + "in.v1.Progress\022>\n\rentity_filter\030\004 \001(\0132\'."
+          + "google.datastore.admin.v1.EntityFilter\022\021"
+          + "\n\tinput_url\030\005 \001(\t\"4\n\014EntityFilter\022\r\n\005kin"
+          + "ds\030\001 \003(\t\022\025\n\rnamespace_ids\030\002 \003(\t\"Y\n\022Creat"
+          + "eIndexRequest\022\022\n\nproject_id\030\001 \001(\t\022/\n\005ind"
+          + "ex\030\003 \001(\0132 .google.datastore.admin.v1.Ind"
+          + "ex\":\n\022DeleteIndexRequest\022\022\n\nproject_id\030\001"
+          + " \001(\t\022\020\n\010index_id\030\003 \001(\t\"7\n\017GetIndexReques"
+          + "t\022\022\n\nproject_id\030\001 \001(\t\022\020\n\010index_id\030\003 \001(\t\""
+          + "_\n\022ListIndexesRequest\022\022\n\nproject_id\030\001 \001("
+          + "\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\n"
+          + "page_token\030\005 \001(\t\"a\n\023ListIndexesResponse\022"
+          + "1\n\007indexes\030\001 \003(\0132 .google.datastore.admi"
+          + "n.v1.Index\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n\026"
+          + "IndexOperationMetadata\0229\n\006common\030\001 \001(\0132)"
+          + ".google.datastore.admin.v1.CommonMetadat"
+          + "a\022>\n\021progress_entities\030\002 \001(\0132#.google.da"
+          + "tastore.admin.v1.Progress\022\020\n\010index_id\030\003 "
+          + "\001(\t\"\253\001\n#DatastoreFirestoreMigrationMetad"
+          + "ata\022B\n\017migration_state\030\001 \001(\0162).google.da"
+          + "tastore.admin.v1.MigrationState\022@\n\016migra"
+          + "tion_step\030\002 \001(\0162(.google.datastore.admin"
+          + ".v1.MigrationStep*}\n\rOperationType\022\036\n\032OP"
+          + "ERATION_TYPE_UNSPECIFIED\020\000\022\023\n\017EXPORT_ENT"
+          + "ITIES\020\001\022\023\n\017IMPORT_ENTITIES\020\002\022\020\n\014CREATE_I"
+          + "NDEX\020\003\022\020\n\014DELETE_INDEX\020\0042\204\n\n\016DatastoreAd"
+          + "min\022\366\001\n\016ExportEntities\0220.google.datastor"
+          + "e.admin.v1.ExportEntitiesRequest\032\035.googl"
+          + "e.longrunning.Operation\"\222\001\202\323\344\223\002%\" /v1/pr"
+          + "ojects/{project_id}:export:\001*\332A1project_"
+          + "id,labels,entity_filter,output_url_prefi"
+          + "x\312A0\n\026ExportEntitiesResponse\022\026ExportEnti"
+          + "tiesMetadata\022\355\001\n\016ImportEntities\0220.google"
+          + ".datastore.admin.v1.ImportEntitiesReques"
+          + "t\032\035.google.longrunning.Operation\"\211\001\202\323\344\223\002"
+          + "%\" /v1/projects/{project_id}:import:\001*\332A"
+          + ")project_id,labels,input_url,entity_filt"
+          + "er\312A/\n\025google.protobuf.Empty\022\026ImportEnti"
+          + "tiesMetadata\022\257\001\n\013CreateIndex\022-.google.da"
+          + "tastore.admin.v1.CreateIndexRequest\032\035.go"
+          + "ogle.longrunning.Operation\"R\202\323\344\223\002*\"!/v1/"
+          + "projects/{project_id}/indexes:\005index\312A\037\n"
+          + "\005Index\022\026IndexOperationMetadata\022\263\001\n\013Delet"
+          + "eIndex\022-.google.datastore.admin.v1.Delet"
+          + "eIndexRequest\032\035.google.longrunning.Opera"
+          + "tion\"V\202\323\344\223\002.*,/v1/projects/{project_id}/"
+          + "indexes/{index_id}\312A\037\n\005Index\022\026IndexOpera"
+          + "tionMetadata\022\216\001\n\010GetIndex\022*.google.datas"
+          + "tore.admin.v1.GetIndexRequest\032 .google.d"
+          + "atastore.admin.v1.Index\"4\202\323\344\223\002.\022,/v1/pro"
+          + "jects/{project_id}/indexes/{index_id}\022\227\001"
+          + "\n\013ListIndexes\022-.google.datastore.admin.v"
+          + "1.ListIndexesRequest\032..google.datastore."
+          + "admin.v1.ListIndexesResponse\")\202\323\344\223\002#\022!/v"
+          + "1/projects/{project_id}/indexes\032v\312A\030data"
+          + "store.googleapis.com\322AXhttps://www.googl"
+          + "eapis.com/auth/cloud-platform,https://ww"
+          + "w.googleapis.com/auth/datastoreB\340\001\n\035com."
+          + "google.datastore.admin.v1B\023DatastoreAdmi"
+          + "nProtoP\001Z>google.golang.org/genproto/goo"
+          + "gleapis/datastore/admin/v1;admin\252\002\037Googl"
+          + "e.Cloud.Datastore.Admin.V1\312\002\037Google\\Clou"
+          + "d\\Datastore\\Admin\\V1\352\002#Google::Cloud::Da"
+          + "tastore::Admin::V1b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.datastore.admin.v1.IndexProto.getDescriptor(),
+              com.google.datastore.admin.v1.MigrationProto.getDescriptor(),
+              com.google.longrunning.OperationsProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+            });
+    internal_static_google_datastore_admin_v1_CommonMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_datastore_admin_v1_CommonMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_CommonMetadata_descriptor,
+            new java.lang.String[] {
+              "StartTime", "EndTime", "OperationType", "Labels", "State",
+            });
+    internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor =
+        internal_static_google_datastore_admin_v1_CommonMetadata_descriptor.getNestedTypes().get(0);
+    internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_CommonMetadata_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_datastore_admin_v1_Progress_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_Progress_descriptor,
+            new java.lang.String[] {
+              "WorkCompleted", "WorkEstimated",
+            });
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor,
+            new java.lang.String[] {
+              "ProjectId", "Labels", "EntityFilter", "OutputUrlPrefix",
+            });
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor =
+        internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor,
+            new java.lang.String[] {
+              "ProjectId", "Labels", "InputUrl", "EntityFilter",
+            });
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor =
+        internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor,
+            new java.lang.String[] {
+              "OutputUrl",
+            });
+    internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor,
+            new java.lang.String[] {
+              "Common", "ProgressEntities", "ProgressBytes", "EntityFilter", "OutputUrlPrefix",
+            });
+    internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor,
+            new java.lang.String[] {
+              "Common", "ProgressEntities", "ProgressBytes", "EntityFilter", "InputUrl",
+            });
+    internal_static_google_datastore_admin_v1_EntityFilter_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_EntityFilter_descriptor,
+            new java.lang.String[] {
+              "Kinds", "NamespaceIds",
+            });
+    internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_datastore_admin_v1_CreateIndexRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_CreateIndexRequest_descriptor,
+            new java.lang.String[] {
+              "ProjectId", "Index",
+            });
+    internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor,
+            new java.lang.String[] {
+              "ProjectId", "IndexId",
+            });
+    internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor,
+            new java.lang.String[] {
+              "ProjectId", "IndexId",
+            });
+    internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor,
+            new java.lang.String[] {
+              "ProjectId", "Filter", "PageSize", "PageToken",
+            });
+    internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(12);
+    internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor,
+            new java.lang.String[] {
+              "Indexes", "NextPageToken",
+            });
+    internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(13);
+    internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor,
+            new java.lang.String[] {
+              "Common", "ProgressEntities", "IndexId",
+            });
+    internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(14);
+    internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor,
+            new java.lang.String[] {
+              "MigrationState", "MigrationStep",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.datastore.admin.v1.IndexProto.getDescriptor();
+    com.google.datastore.admin.v1.MigrationProto.getDescriptor();
+    com.google.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
index fffc5eddd..952001914 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.java
+++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadata.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/datastore/admin/v1/datastore_admin.proto
 
 package com.google.datastore.admin.v1;
 
 /**
+ *
+ *
  * 
  * Metadata for Datastore to Firestore migration operations.
  * The DatastoreFirestoreMigration operation is not started by the end-user via
@@ -15,15 +32,18 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata}
  */
-public final class DatastoreFirestoreMigrationMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DatastoreFirestoreMigrationMetadata
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)
     DatastoreFirestoreMigrationMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DatastoreFirestoreMigrationMetadata.newBuilder() to construct.
-  private DatastoreFirestoreMigrationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DatastoreFirestoreMigrationMetadata(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DatastoreFirestoreMigrationMetadata() {
     migrationState_ = 0;
     migrationStep_ = 0;
@@ -31,16 +51,15 @@ private DatastoreFirestoreMigrationMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DatastoreFirestoreMigrationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DatastoreFirestoreMigrationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,25 +78,27 @@ private DatastoreFirestoreMigrationMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            migrationState_ = rawValue;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              migrationState_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            migrationStep_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              migrationStep_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -85,85 +106,106 @@ private DatastoreFirestoreMigrationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.class, com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.Builder.class);
+            com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.class,
+            com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.Builder.class);
   }
 
   public static final int MIGRATION_STATE_FIELD_NUMBER = 1;
   private int migrationState_;
   /**
+   *
+   *
    * 
    * The current state of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @return The enum numeric value on the wire for migrationState. */ - @java.lang.Override public int getMigrationStateValue() { + @java.lang.Override + public int getMigrationStateValue() { return migrationState_; } /** + * + * *
    * The current state of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @return The migrationState. */ - @java.lang.Override public com.google.datastore.admin.v1.MigrationState getMigrationState() { + @java.lang.Override + public com.google.datastore.admin.v1.MigrationState getMigrationState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationState result = com.google.datastore.admin.v1.MigrationState.valueOf(migrationState_); + com.google.datastore.admin.v1.MigrationState result = + com.google.datastore.admin.v1.MigrationState.valueOf(migrationState_); return result == null ? com.google.datastore.admin.v1.MigrationState.UNRECOGNIZED : result; } public static final int MIGRATION_STEP_FIELD_NUMBER = 2; private int migrationStep_; /** + * + * *
    * The current step of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @return The enum numeric value on the wire for migrationStep. */ - @java.lang.Override public int getMigrationStepValue() { + @java.lang.Override + public int getMigrationStepValue() { return migrationStep_; } /** + * + * *
    * The current step of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @return The migrationStep. */ - @java.lang.Override public com.google.datastore.admin.v1.MigrationStep getMigrationStep() { + @java.lang.Override + public com.google.datastore.admin.v1.MigrationStep getMigrationStep() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationStep result = com.google.datastore.admin.v1.MigrationStep.valueOf(migrationStep_); + com.google.datastore.admin.v1.MigrationStep result = + com.google.datastore.admin.v1.MigrationStep.valueOf(migrationStep_); return result == null ? com.google.datastore.admin.v1.MigrationStep.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,12 +217,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (migrationState_ != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (migrationState_ + != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, migrationState_); } - if (migrationStep_ != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { + if (migrationStep_ + != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { output.writeEnum(2, migrationStep_); } unknownFields.writeTo(output); @@ -192,13 +235,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (migrationState_ != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, migrationState_); + if (migrationState_ + != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, migrationState_); } - if (migrationStep_ != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, migrationStep_); + if (migrationStep_ + != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, migrationStep_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -208,12 +251,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata other = (com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) obj; + com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata other = + (com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) obj; if (migrationState_ != other.migrationState_) return false; if (migrationStep_ != other.migrationStep_) return false; @@ -238,96 +282,105 @@ public int hashCode() { } public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata prototype) { + + public static Builder newBuilder( + com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata for Datastore to Firestore migration operations.
    * The DatastoreFirestoreMigration operation is not started by the end-user via
@@ -339,38 +392,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)
       com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.class, com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.Builder.class);
+              com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.class,
+              com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.Builder.class);
     }
 
-    // Construct using com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.newBuilder()
+    // Construct using
+    // com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,13 +437,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_DatastoreFirestoreMigrationMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata getDefaultInstanceForType() {
+    public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata
+        getDefaultInstanceForType() {
       return com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.getDefaultInstance();
     }
 
@@ -403,7 +459,8 @@ public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata build()
 
     @java.lang.Override
     public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata buildPartial() {
-      com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata result = new com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata(this);
+      com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata result =
+          new com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata(this);
       result.migrationState_ = migrationState_;
       result.migrationStep_ = migrationStep_;
       onBuilt();
@@ -414,46 +471,50 @@ public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata buildPa
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) {
-        return mergeFrom((com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)other);
+        return mergeFrom((com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata other) {
-      if (other == com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata other) {
+      if (other
+          == com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata.getDefaultInstance())
+        return this;
       if (other.migrationState_ != 0) {
         setMigrationStateValue(other.getMigrationStateValue());
       }
@@ -479,7 +540,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -491,55 +554,69 @@ public Builder mergeFrom(
 
     private int migrationState_ = 0;
     /**
+     *
+     *
      * 
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @return The enum numeric value on the wire for migrationState. */ - @java.lang.Override public int getMigrationStateValue() { + @java.lang.Override + public int getMigrationStateValue() { return migrationState_; } /** + * + * *
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @param value The enum numeric value on the wire for migrationState to set. * @return This builder for chaining. */ public Builder setMigrationStateValue(int value) { - + migrationState_ = value; onChanged(); return this; } /** + * + * *
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @return The migrationState. */ @java.lang.Override public com.google.datastore.admin.v1.MigrationState getMigrationState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationState result = com.google.datastore.admin.v1.MigrationState.valueOf(migrationState_); + com.google.datastore.admin.v1.MigrationState result = + com.google.datastore.admin.v1.MigrationState.valueOf(migrationState_); return result == null ? com.google.datastore.admin.v1.MigrationState.UNRECOGNIZED : result; } /** + * + * *
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @param value The migrationState to set. * @return This builder for chaining. */ @@ -547,22 +624,25 @@ public Builder setMigrationState(com.google.datastore.admin.v1.MigrationState va if (value == null) { throw new NullPointerException(); } - + migrationState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current state of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @return This builder for chaining. */ public Builder clearMigrationState() { - + migrationState_ = 0; onChanged(); return this; @@ -570,55 +650,69 @@ public Builder clearMigrationState() { private int migrationStep_ = 0; /** + * + * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @return The enum numeric value on the wire for migrationStep. */ - @java.lang.Override public int getMigrationStepValue() { + @java.lang.Override + public int getMigrationStepValue() { return migrationStep_; } /** + * + * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @param value The enum numeric value on the wire for migrationStep to set. * @return This builder for chaining. */ public Builder setMigrationStepValue(int value) { - + migrationStep_ = value; onChanged(); return this; } /** + * + * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @return The migrationStep. */ @java.lang.Override public com.google.datastore.admin.v1.MigrationStep getMigrationStep() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationStep result = com.google.datastore.admin.v1.MigrationStep.valueOf(migrationStep_); + com.google.datastore.admin.v1.MigrationStep result = + com.google.datastore.admin.v1.MigrationStep.valueOf(migrationStep_); return result == null ? com.google.datastore.admin.v1.MigrationStep.UNRECOGNIZED : result; } /** + * + * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @param value The migrationStep to set. * @return This builder for chaining. */ @@ -626,29 +720,32 @@ public Builder setMigrationStep(com.google.datastore.admin.v1.MigrationStep valu if (value == null) { throw new NullPointerException(); } - + migrationStep_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current step of migration from Cloud Datastore to Cloud Firestore in
      * Datastore mode.
      * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @return This builder for chaining. */ public Builder clearMigrationStep() { - + migrationStep_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -658,30 +755,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) - private static final com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata DEFAULT_INSTANCE; + private static final com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata(); } - public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata getDefaultInstance() { + public static com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatastoreFirestoreMigrationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatastoreFirestoreMigrationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatastoreFirestoreMigrationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatastoreFirestoreMigrationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -693,9 +792,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata getDefaultInstanceForType() { + public com.google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java index d3c4694bb..5030636e5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DatastoreFirestoreMigrationMetadataOrBuilder.java @@ -1,50 +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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface DatastoreFirestoreMigrationMetadataOrBuilder extends +public interface DatastoreFirestoreMigrationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The current state of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @return The enum numeric value on the wire for migrationState. */ int getMigrationStateValue(); /** + * + * *
    * The current state of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationState migration_state = 1; + * * @return The migrationState. */ com.google.datastore.admin.v1.MigrationState getMigrationState(); /** + * + * *
    * The current step of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @return The enum numeric value on the wire for migrationStep. */ int getMigrationStepValue(); /** + * + * *
    * The current step of migration from Cloud Datastore to Cloud Firestore in
    * Datastore mode.
    * 
* * .google.datastore.admin.v1.MigrationStep migration_step = 2; + * * @return The migrationStep. */ com.google.datastore.admin.v1.MigrationStep getMigrationStep(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java index 67376a2e0..50e889519 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequest.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.DeleteIndex][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.DeleteIndexRequest}
  */
-public final class DeleteIndexRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteIndexRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.DeleteIndexRequest)
     DeleteIndexRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteIndexRequest.newBuilder() to construct.
   private DeleteIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteIndexRequest() {
     projectId_ = "";
     indexId_ = "";
@@ -27,16 +45,15 @@ private DeleteIndexRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteIndexRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteIndexRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private DeleteIndexRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            projectId_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              projectId_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            indexId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              indexId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,34 +100,39 @@ private DeleteIndexRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.DeleteIndexRequest.class, com.google.datastore.admin.v1.DeleteIndexRequest.Builder.class);
+            com.google.datastore.admin.v1.DeleteIndexRequest.class,
+            com.google.datastore.admin.v1.DeleteIndexRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
+   *
+   *
    * 
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -117,29 +141,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -150,11 +174,14 @@ public java.lang.String getProjectId() { public static final int INDEX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object indexId_; /** + * + * *
    * The resource ID of the index to delete.
    * 
* * string index_id = 3; + * * @return The indexId. */ @java.lang.Override @@ -163,29 +190,29 @@ public java.lang.String getIndexId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; } } /** + * + * *
    * The resource ID of the index to delete.
    * 
* * string index_id = 3; + * * @return The bytes for indexId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIndexIdBytes() { + public com.google.protobuf.ByteString getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); indexId_ = b; return b; } else { @@ -194,6 +221,7 @@ public java.lang.String getIndexId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +233,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -236,17 +263,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.datastore.admin.v1.DeleteIndexRequest)) { return super.equals(obj); } - com.google.datastore.admin.v1.DeleteIndexRequest other = (com.google.datastore.admin.v1.DeleteIndexRequest) obj; + com.google.datastore.admin.v1.DeleteIndexRequest other = + (com.google.datastore.admin.v1.DeleteIndexRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getIndexId() - .equals(other.getIndexId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getIndexId().equals(other.getIndexId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,97 +293,104 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.DeleteIndexRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.DeleteIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.DeleteIndexRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.DeleteIndexRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.DeleteIndex][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex].
@@ -365,21 +398,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.DeleteIndexRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.DeleteIndexRequest)
       com.google.datastore.admin.v1.DeleteIndexRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_DeleteIndexRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.DeleteIndexRequest.class, com.google.datastore.admin.v1.DeleteIndexRequest.Builder.class);
+              com.google.datastore.admin.v1.DeleteIndexRequest.class,
+              com.google.datastore.admin.v1.DeleteIndexRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.DeleteIndexRequest.newBuilder()
@@ -387,16 +422,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_DeleteIndexRequest_descriptor;
     }
 
     @java.lang.Override
@@ -429,7 +463,8 @@ public com.google.datastore.admin.v1.DeleteIndexRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.DeleteIndexRequest buildPartial() {
-      com.google.datastore.admin.v1.DeleteIndexRequest result = new com.google.datastore.admin.v1.DeleteIndexRequest(this);
+      com.google.datastore.admin.v1.DeleteIndexRequest result =
+          new com.google.datastore.admin.v1.DeleteIndexRequest(this);
       result.projectId_ = projectId_;
       result.indexId_ = indexId_;
       onBuilt();
@@ -440,38 +475,39 @@ public com.google.datastore.admin.v1.DeleteIndexRequest 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.datastore.admin.v1.DeleteIndexRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.DeleteIndexRequest)other);
+        return mergeFrom((com.google.datastore.admin.v1.DeleteIndexRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -479,7 +515,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.DeleteIndexRequest other) {
-      if (other == com.google.datastore.admin.v1.DeleteIndexRequest.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.DeleteIndexRequest.getDefaultInstance())
+        return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
@@ -519,18 +556,20 @@ public Builder mergeFrom(
 
     private java.lang.Object projectId_ = "";
     /**
+     *
+     *
      * 
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -539,20 +578,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -560,54 +600,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -615,18 +662,20 @@ public Builder setProjectIdBytes( private java.lang.Object indexId_ = ""; /** + * + * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; + * * @return The indexId. */ public java.lang.String getIndexId() { java.lang.Object ref = indexId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; @@ -635,20 +684,21 @@ public java.lang.String getIndexId() { } } /** + * + * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; + * * @return The bytes for indexId. */ - public com.google.protobuf.ByteString - getIndexIdBytes() { + public com.google.protobuf.ByteString getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); indexId_ = b; return b; } else { @@ -656,61 +706,68 @@ public java.lang.String getIndexId() { } } /** + * + * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; + * * @param value The indexId to set. * @return This builder for chaining. */ - public Builder setIndexId( - java.lang.String value) { + public Builder setIndexId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + indexId_ = value; onChanged(); return this; } /** + * + * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; + * * @return This builder for chaining. */ public Builder clearIndexId() { - + indexId_ = getDefaultInstance().getIndexId(); onChanged(); return this; } /** + * + * *
      * The resource ID of the index to delete.
      * 
* * string index_id = 3; + * * @param value The bytes for indexId to set. * @return This builder for chaining. */ - public Builder setIndexIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexId_ = 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); } @@ -720,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.DeleteIndexRequest) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.DeleteIndexRequest) private static final com.google.datastore.admin.v1.DeleteIndexRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.DeleteIndexRequest(); } @@ -734,16 +791,16 @@ public static com.google.datastore.admin.v1.DeleteIndexRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteIndexRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteIndexRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteIndexRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,6 +815,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.DeleteIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java index 3f73ef5fa..b33b297ed 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/DeleteIndexRequestOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface DeleteIndexRequestOrBuilder extends +public interface DeleteIndexRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.DeleteIndexRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * The resource ID of the index to delete.
    * 
* * string index_id = 3; + * * @return The indexId. */ java.lang.String getIndexId(); /** + * + * *
    * The resource ID of the index to delete.
    * 
* * string index_id = 3; + * * @return The bytes for indexId. */ - com.google.protobuf.ByteString - getIndexIdBytes(); + com.google.protobuf.ByteString getIndexIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java index 591cd7af1..d714b68b0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilter.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * Identifies a subset of entities in a project. This is specified as
  * combinations of kinds and namespaces (either or both of which may be all, as
@@ -23,15 +40,16 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.EntityFilter}
  */
-public final class EntityFilter extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EntityFilter extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.EntityFilter)
     EntityFilterOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EntityFilter.newBuilder() to construct.
   private EntityFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EntityFilter() {
     kinds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     namespaceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -39,16 +57,15 @@ private EntityFilter() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EntityFilter();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EntityFilter(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -68,31 +85,33 @@ private EntityFilter(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              kinds_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                kinds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              kinds_.add(s);
+              break;
             }
-            kinds_.add(s);
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              namespaceIds_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                namespaceIds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              namespaceIds_.add(s);
+              break;
             }
-            namespaceIds_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,8 +119,7 @@ private EntityFilter(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         kinds_ = kinds_.getUnmodifiableView();
@@ -113,50 +131,61 @@ private EntityFilter(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.EntityFilter.class, com.google.datastore.admin.v1.EntityFilter.Builder.class);
+            com.google.datastore.admin.v1.EntityFilter.class,
+            com.google.datastore.admin.v1.EntityFilter.Builder.class);
   }
 
   public static final int KINDS_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList kinds_;
   /**
+   *
+   *
    * 
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; + * * @return A list containing the kinds. */ - public com.google.protobuf.ProtocolStringList - getKindsList() { + public com.google.protobuf.ProtocolStringList getKindsList() { return kinds_; } /** + * + * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; + * * @return The count of kinds. */ public int getKindsCount() { return kinds_.size(); } /** + * + * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; + * * @param index The index of the element to return. * @return The kinds at the given index. */ @@ -164,22 +193,26 @@ public java.lang.String getKinds(int index) { return kinds_.get(index); } /** + * + * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; + * * @param index The index of the value to return. * @return The bytes of the kinds at the given index. */ - public com.google.protobuf.ByteString - getKindsBytes(int index) { + public com.google.protobuf.ByteString getKindsBytes(int index) { return kinds_.getByteString(index); } public static final int NAMESPACE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList namespaceIds_; /** + * + * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -190,13 +223,15 @@ public java.lang.String getKinds(int index) {
    * 
* * repeated string namespace_ids = 2; + * * @return A list containing the namespaceIds. */ - public com.google.protobuf.ProtocolStringList - getNamespaceIdsList() { + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { return namespaceIds_; } /** + * + * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -207,12 +242,15 @@ public java.lang.String getKinds(int index) {
    * 
* * repeated string namespace_ids = 2; + * * @return The count of namespaceIds. */ public int getNamespaceIdsCount() { return namespaceIds_.size(); } /** + * + * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -223,6 +261,7 @@ public int getNamespaceIdsCount() {
    * 
* * repeated string namespace_ids = 2; + * * @param index The index of the element to return. * @return The namespaceIds at the given index. */ @@ -230,6 +269,8 @@ public java.lang.String getNamespaceIds(int index) { return namespaceIds_.get(index); } /** + * + * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -240,15 +281,16 @@ public java.lang.String getNamespaceIds(int index) {
    * 
* * repeated string namespace_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the namespaceIds at the given index. */ - public com.google.protobuf.ByteString - getNamespaceIdsBytes(int index) { + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { return namespaceIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +302,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 < kinds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kinds_.getRaw(i)); } @@ -301,17 +342,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.datastore.admin.v1.EntityFilter)) { return super.equals(obj); } - com.google.datastore.admin.v1.EntityFilter other = (com.google.datastore.admin.v1.EntityFilter) obj; + com.google.datastore.admin.v1.EntityFilter other = + (com.google.datastore.admin.v1.EntityFilter) obj; - if (!getKindsList() - .equals(other.getKindsList())) return false; - if (!getNamespaceIdsList() - .equals(other.getNamespaceIdsList())) return false; + if (!getKindsList().equals(other.getKindsList())) return false; + if (!getNamespaceIdsList().equals(other.getNamespaceIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,97 +376,104 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.EntityFilter parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.EntityFilter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.EntityFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.EntityFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.EntityFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.EntityFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.EntityFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Identifies a subset of entities in a project. This is specified as
    * combinations of kinds and namespaces (either or both of which may be all, as
@@ -446,21 +493,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.EntityFilter}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.EntityFilter)
       com.google.datastore.admin.v1.EntityFilterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_EntityFilter_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.EntityFilter.class, com.google.datastore.admin.v1.EntityFilter.Builder.class);
+              com.google.datastore.admin.v1.EntityFilter.class,
+              com.google.datastore.admin.v1.EntityFilter.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.EntityFilter.newBuilder()
@@ -468,16 +517,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +537,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_EntityFilter_descriptor;
     }
 
     @java.lang.Override
@@ -510,7 +558,8 @@ public com.google.datastore.admin.v1.EntityFilter build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.EntityFilter buildPartial() {
-      com.google.datastore.admin.v1.EntityFilter result = new com.google.datastore.admin.v1.EntityFilter(this);
+      com.google.datastore.admin.v1.EntityFilter result =
+          new com.google.datastore.admin.v1.EntityFilter(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         kinds_ = kinds_.getUnmodifiableView();
@@ -530,38 +579,39 @@ public com.google.datastore.admin.v1.EntityFilter 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.datastore.admin.v1.EntityFilter) {
-        return mergeFrom((com.google.datastore.admin.v1.EntityFilter)other);
+        return mergeFrom((com.google.datastore.admin.v1.EntityFilter) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -618,44 +668,55 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList kinds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList kinds_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureKindsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         kinds_ = new com.google.protobuf.LazyStringArrayList(kinds_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @return A list containing the kinds. */ - public com.google.protobuf.ProtocolStringList - getKindsList() { + public com.google.protobuf.ProtocolStringList getKindsList() { return kinds_.getUnmodifiableView(); } /** + * + * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @return The count of kinds. */ public int getKindsCount() { return kinds_.size(); } /** + * + * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @param index The index of the element to return. * @return The kinds at the given index. */ @@ -663,80 +724,90 @@ public java.lang.String getKinds(int index) { return kinds_.get(index); } /** + * + * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @param index The index of the value to return. * @return The bytes of the kinds at the given index. */ - public com.google.protobuf.ByteString - getKindsBytes(int index) { + public com.google.protobuf.ByteString getKindsBytes(int index) { return kinds_.getByteString(index); } /** + * + * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @param index The index to set the value at. * @param value The kinds to set. * @return This builder for chaining. */ - public Builder setKinds( - int index, java.lang.String value) { + public Builder setKinds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureKindsIsMutable(); + throw new NullPointerException(); + } + ensureKindsIsMutable(); kinds_.set(index, value); onChanged(); return this; } /** + * + * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @param value The kinds to add. * @return This builder for chaining. */ - public Builder addKinds( - java.lang.String value) { + public Builder addKinds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureKindsIsMutable(); + throw new NullPointerException(); + } + ensureKindsIsMutable(); kinds_.add(value); onChanged(); return this; } /** + * + * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @param values The kinds to add. * @return This builder for chaining. */ - public Builder addAllKinds( - java.lang.Iterable values) { + public Builder addAllKinds(java.lang.Iterable values) { ensureKindsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, kinds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kinds_); onChanged(); return this; } /** + * + * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @return This builder for chaining. */ public Builder clearKinds() { @@ -746,34 +817,40 @@ public Builder clearKinds() { return this; } /** + * + * *
      * If empty, then this represents all kinds.
      * 
* * repeated string kinds = 1; + * * @param value The bytes of the kinds to add. * @return This builder for chaining. */ - public Builder addKindsBytes( - com.google.protobuf.ByteString value) { + public Builder addKindsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureKindsIsMutable(); kinds_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList namespaceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNamespaceIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { namespaceIds_ = new com.google.protobuf.LazyStringArrayList(namespaceIds_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -784,13 +861,15 @@ private void ensureNamespaceIdsIsMutable() {
      * 
* * repeated string namespace_ids = 2; + * * @return A list containing the namespaceIds. */ - public com.google.protobuf.ProtocolStringList - getNamespaceIdsList() { + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { return namespaceIds_.getUnmodifiableView(); } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -801,12 +880,15 @@ private void ensureNamespaceIdsIsMutable() {
      * 
* * repeated string namespace_ids = 2; + * * @return The count of namespaceIds. */ public int getNamespaceIdsCount() { return namespaceIds_.size(); } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -817,6 +899,7 @@ public int getNamespaceIdsCount() {
      * 
* * repeated string namespace_ids = 2; + * * @param index The index of the element to return. * @return The namespaceIds at the given index. */ @@ -824,6 +907,8 @@ public java.lang.String getNamespaceIds(int index) { return namespaceIds_.get(index); } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -834,14 +919,16 @@ public java.lang.String getNamespaceIds(int index) {
      * 
* * repeated string namespace_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the namespaceIds at the given index. */ - public com.google.protobuf.ByteString - getNamespaceIdsBytes(int index) { + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { return namespaceIds_.getByteString(index); } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -852,21 +939,23 @@ public java.lang.String getNamespaceIds(int index) {
      * 
* * repeated string namespace_ids = 2; + * * @param index The index to set the value at. * @param value The namespaceIds to set. * @return This builder for chaining. */ - public Builder setNamespaceIds( - int index, java.lang.String value) { + public Builder setNamespaceIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamespaceIdsIsMutable(); + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); namespaceIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -877,20 +966,22 @@ public Builder setNamespaceIds(
      * 
* * repeated string namespace_ids = 2; + * * @param value The namespaceIds to add. * @return This builder for chaining. */ - public Builder addNamespaceIds( - java.lang.String value) { + public Builder addNamespaceIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamespaceIdsIsMutable(); + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); namespaceIds_.add(value); onChanged(); return this; } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -901,18 +992,19 @@ public Builder addNamespaceIds(
      * 
* * repeated string namespace_ids = 2; + * * @param values The namespaceIds to add. * @return This builder for chaining. */ - public Builder addAllNamespaceIds( - java.lang.Iterable values) { + public Builder addAllNamespaceIds(java.lang.Iterable values) { ensureNamespaceIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, namespaceIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaceIds_); onChanged(); return this; } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -923,6 +1015,7 @@ public Builder addAllNamespaceIds(
      * 
* * repeated string namespace_ids = 2; + * * @return This builder for chaining. */ public Builder clearNamespaceIds() { @@ -932,6 +1025,8 @@ public Builder clearNamespaceIds() { return this; } /** + * + * *
      * An empty list represents all namespaces. This is the preferred
      * usage for projects that don't use namespaces.
@@ -942,23 +1037,23 @@ public Builder clearNamespaceIds() {
      * 
* * repeated string namespace_ids = 2; + * * @param value The bytes of the namespaceIds to add. * @return This builder for chaining. */ - public Builder addNamespaceIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addNamespaceIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNamespaceIdsIsMutable(); namespaceIds_.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); } @@ -968,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.EntityFilter) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.EntityFilter) private static final com.google.datastore.admin.v1.EntityFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.EntityFilter(); } @@ -982,16 +1077,16 @@ public static com.google.datastore.admin.v1.EntityFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntityFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1101,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.EntityFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java index a4ab43a1d..b39e13297 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/EntityFilterOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface EntityFilterOrBuilder extends +public interface EntityFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.EntityFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; + * * @return A list containing the kinds. */ - java.util.List - getKindsList(); + java.util.List getKindsList(); /** + * + * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; + * * @return The count of kinds. */ int getKindsCount(); /** + * + * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; + * * @param index The index of the element to return. * @return The kinds at the given index. */ java.lang.String getKinds(int index); /** + * + * *
    * If empty, then this represents all kinds.
    * 
* * repeated string kinds = 1; + * * @param index The index of the value to return. * @return The bytes of the kinds at the given index. */ - com.google.protobuf.ByteString - getKindsBytes(int index); + com.google.protobuf.ByteString getKindsBytes(int index); /** + * + * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -59,11 +87,13 @@ public interface EntityFilterOrBuilder extends
    * 
* * repeated string namespace_ids = 2; + * * @return A list containing the namespaceIds. */ - java.util.List - getNamespaceIdsList(); + java.util.List getNamespaceIdsList(); /** + * + * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -74,10 +104,13 @@ public interface EntityFilterOrBuilder extends
    * 
* * repeated string namespace_ids = 2; + * * @return The count of namespaceIds. */ int getNamespaceIdsCount(); /** + * + * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -88,11 +121,14 @@ public interface EntityFilterOrBuilder extends
    * 
* * repeated string namespace_ids = 2; + * * @param index The index of the element to return. * @return The namespaceIds at the given index. */ java.lang.String getNamespaceIds(int index); /** + * + * *
    * An empty list represents all namespaces. This is the preferred
    * usage for projects that don't use namespaces.
@@ -103,9 +139,9 @@ public interface EntityFilterOrBuilder extends
    * 
* * repeated string namespace_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the namespaceIds at the given index. */ - com.google.protobuf.ByteString - getNamespaceIdsBytes(int index); + com.google.protobuf.ByteString getNamespaceIdsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java index 0de7cbb08..265c5dbec 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * Metadata for ExportEntities operations.
  * 
* * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesMetadata} */ -public final class ExportEntitiesMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportEntitiesMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ExportEntitiesMetadata) ExportEntitiesMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportEntitiesMetadata.newBuilder() to construct. private ExportEntitiesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportEntitiesMetadata() { outputUrlPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportEntitiesMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportEntitiesMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,71 +70,84 @@ private ExportEntitiesMetadata( case 0: done = true; break; - case 10: { - com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; - if (common_ != null) { - subBuilder = common_.toBuilder(); + case 10: + { + com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); + } + common_ = + input.readMessage( + com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); + } + + break; } - common_ = input.readMessage(com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(common_); - common_ = subBuilder.buildPartial(); + case 18: + { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressEntities_ != null) { + subBuilder = progressEntities_.toBuilder(); + } + progressEntities_ = + input.readMessage( + com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressEntities_); + progressEntities_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressEntities_ != null) { - subBuilder = progressEntities_.toBuilder(); + case 26: + { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; } - progressEntities_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressEntities_); - progressEntities_ = subBuilder.buildPartial(); + case 34: + { + com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null; + if (entityFilter_ != null) { + subBuilder = entityFilter_.toBuilder(); + } + entityFilter_ = + input.readMessage( + com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityFilter_); + entityFilter_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressBytes_ != null) { - subBuilder = progressBytes_.toBuilder(); + outputUrlPrefix_ = s; + break; } - progressBytes_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressBytes_); - progressBytes_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null; - if (entityFilter_ != null) { - subBuilder = entityFilter_.toBuilder(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - entityFilter_ = input.readMessage(com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityFilter_); - entityFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - outputUrlPrefix_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +155,39 @@ private ExportEntitiesMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.ExportEntitiesMetadata.class, com.google.datastore.admin.v1.ExportEntitiesMetadata.Builder.class); + com.google.datastore.admin.v1.ExportEntitiesMetadata.class, + com.google.datastore.admin.v1.ExportEntitiesMetadata.Builder.class); } public static final int COMMON_FIELD_NUMBER = 1; private com.google.datastore.admin.v1.CommonMetadata common_; /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ @java.lang.Override @@ -160,18 +195,25 @@ public boolean hasCommon() { return common_ != null; } /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata getCommon() { - return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -186,11 +228,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( public static final int PROGRESS_ENTITIES_FIELD_NUMBER = 2; private com.google.datastore.admin.v1.Progress progressEntities_; /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ @java.lang.Override @@ -198,18 +243,25 @@ public boolean hasProgressEntities() { return progressEntities_ != null; } /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressEntities() { - return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } /** + * + * *
    * An estimate of the number of entities processed.
    * 
@@ -224,11 +276,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil public static final int PROGRESS_BYTES_FIELD_NUMBER = 3; private com.google.datastore.admin.v1.Progress progressBytes_; /** + * + * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return Whether the progressBytes field is set. */ @java.lang.Override @@ -236,18 +291,25 @@ public boolean hasProgressBytes() { return progressBytes_ != null; } /** + * + * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return The progressBytes. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressBytes() { - return progressBytes_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; + return progressBytes_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; } /** + * + * *
    * An estimate of the number of bytes processed.
    * 
@@ -262,11 +324,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder public static final int ENTITY_FILTER_FIELD_NUMBER = 4; private com.google.datastore.admin.v1.EntityFilter entityFilter_; /** + * + * *
    * Description of which entities are being exported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ @java.lang.Override @@ -274,18 +339,25 @@ public boolean hasEntityFilter() { return entityFilter_ != null; } /** + * + * *
    * Description of which entities are being exported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ @java.lang.Override public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { - return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } /** + * + * *
    * Description of which entities are being exported.
    * 
@@ -300,6 +372,8 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil public static final int OUTPUT_URL_PREFIX_FIELD_NUMBER = 5; private volatile java.lang.Object outputUrlPrefix_; /** + * + * *
    * Location for the export metadata and data files. This will be the same
    * value as the
@@ -309,6 +383,7 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
    * 
* * string output_url_prefix = 5; + * * @return The outputUrlPrefix. */ @java.lang.Override @@ -317,14 +392,15 @@ public java.lang.String getOutputUrlPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrlPrefix_ = s; return s; } } /** + * + * *
    * Location for the export metadata and data files. This will be the same
    * value as the
@@ -334,16 +410,15 @@ public java.lang.String getOutputUrlPrefix() {
    * 
* * string output_url_prefix = 5; + * * @return The bytes for outputUrlPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUrlPrefixBytes() { + public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { java.lang.Object ref = outputUrlPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUrlPrefix_ = b; return b; } else { @@ -352,6 +427,7 @@ public java.lang.String getOutputUrlPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,8 +439,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 (common_ != null) { output.writeMessage(1, getCommon()); } @@ -390,20 +465,16 @@ public int getSerializedSize() { size = 0; if (common_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommon()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } if (progressEntities_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProgressEntities()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgressEntities()); } if (progressBytes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProgressBytes()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgressBytes()); } if (entityFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getEntityFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEntityFilter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUrlPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputUrlPrefix_); @@ -416,35 +487,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.datastore.admin.v1.ExportEntitiesMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.ExportEntitiesMetadata other = (com.google.datastore.admin.v1.ExportEntitiesMetadata) obj; + com.google.datastore.admin.v1.ExportEntitiesMetadata other = + (com.google.datastore.admin.v1.ExportEntitiesMetadata) obj; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; + if (!getCommon().equals(other.getCommon())) return false; } if (hasProgressEntities() != other.hasProgressEntities()) return false; if (hasProgressEntities()) { - if (!getProgressEntities() - .equals(other.getProgressEntities())) return false; + if (!getProgressEntities().equals(other.getProgressEntities())) return false; } if (hasProgressBytes() != other.hasProgressBytes()) return false; if (hasProgressBytes()) { - if (!getProgressBytes() - .equals(other.getProgressBytes())) return false; + if (!getProgressBytes().equals(other.getProgressBytes())) return false; } if (hasEntityFilter() != other.hasEntityFilter()) return false; if (hasEntityFilter()) { - if (!getEntityFilter() - .equals(other.getEntityFilter())) return false; + if (!getEntityFilter().equals(other.getEntityFilter())) return false; } - if (!getOutputUrlPrefix() - .equals(other.getOutputUrlPrefix())) return false; + if (!getOutputUrlPrefix().equals(other.getOutputUrlPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -480,117 +547,126 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.ExportEntitiesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata for ExportEntities operations.
    * 
* * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ExportEntitiesMetadata) com.google.datastore.admin.v1.ExportEntitiesMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.ExportEntitiesMetadata.class, com.google.datastore.admin.v1.ExportEntitiesMetadata.Builder.class); + com.google.datastore.admin.v1.ExportEntitiesMetadata.class, + com.google.datastore.admin.v1.ExportEntitiesMetadata.Builder.class); } // Construct using com.google.datastore.admin.v1.ExportEntitiesMetadata.newBuilder() @@ -598,16 +674,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -641,9 +716,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ExportEntitiesMetadata_descriptor; } @java.lang.Override @@ -662,7 +737,8 @@ public com.google.datastore.admin.v1.ExportEntitiesMetadata build() { @java.lang.Override public com.google.datastore.admin.v1.ExportEntitiesMetadata buildPartial() { - com.google.datastore.admin.v1.ExportEntitiesMetadata result = new com.google.datastore.admin.v1.ExportEntitiesMetadata(this); + com.google.datastore.admin.v1.ExportEntitiesMetadata result = + new com.google.datastore.admin.v1.ExportEntitiesMetadata(this); if (commonBuilder_ == null) { result.common_ = common_; } else { @@ -692,38 +768,39 @@ public com.google.datastore.admin.v1.ExportEntitiesMetadata 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.datastore.admin.v1.ExportEntitiesMetadata) { - return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesMetadata)other); + return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesMetadata) other); } else { super.mergeFrom(other); return this; @@ -731,7 +808,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.admin.v1.ExportEntitiesMetadata other) { - if (other == com.google.datastore.admin.v1.ExportEntitiesMetadata.getDefaultInstance()) return this; + if (other == com.google.datastore.admin.v1.ExportEntitiesMetadata.getDefaultInstance()) + return this; if (other.hasCommon()) { mergeCommon(other.getCommon()); } @@ -767,7 +845,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.datastore.admin.v1.ExportEntitiesMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.datastore.admin.v1.ExportEntitiesMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -779,34 +858,47 @@ public Builder mergeFrom( private com.google.datastore.admin.v1.CommonMetadata common_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> commonBuilder_; + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder> + commonBuilder_; /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ public boolean hasCommon() { return commonBuilder_ != null || common_ != null; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ public com.google.datastore.admin.v1.CommonMetadata getCommon() { if (commonBuilder_ == null) { - return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } else { return commonBuilder_.getMessage(); } } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -827,14 +919,15 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; */ - public Builder setCommon( - com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { + public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); onChanged(); @@ -845,6 +938,8 @@ public Builder setCommon( return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -855,7 +950,9 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { if (commonBuilder_ == null) { if (common_ != null) { common_ = - com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_) + .mergeFrom(value) + .buildPartial(); } else { common_ = value; } @@ -867,6 +964,8 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -885,6 +984,8 @@ public Builder clearCommon() { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -892,11 +993,13 @@ public Builder clearCommon() { * .google.datastore.admin.v1.CommonMetadata common = 1; */ public com.google.datastore.admin.v1.CommonMetadata.Builder getCommonBuilder() { - + onChanged(); return getCommonFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -907,11 +1010,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( if (commonBuilder_ != null) { return commonBuilder_.getMessageOrBuilder(); } else { - return common_ == null ? - com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -919,14 +1025,17 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( * .google.datastore.admin.v1.CommonMetadata common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); + commonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder>( + getCommon(), getParentForChildren(), isClean()); common_ = null; } return commonBuilder_; @@ -934,34 +1043,47 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( private com.google.datastore.admin.v1.Progress progressEntities_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressEntitiesBuilder_; + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> + progressEntitiesBuilder_; /** + * + * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ public boolean hasProgressEntities() { return progressEntitiesBuilder_ != null || progressEntities_ != null; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ public com.google.datastore.admin.v1.Progress getProgressEntities() { if (progressEntitiesBuilder_ == null) { - return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } else { return progressEntitiesBuilder_.getMessage(); } } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -982,6 +1104,8 @@ public Builder setProgressEntities(com.google.datastore.admin.v1.Progress value) return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1000,6 +1124,8 @@ public Builder setProgressEntities( return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1010,7 +1136,9 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu if (progressEntitiesBuilder_ == null) { if (progressEntities_ != null) { progressEntities_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_) + .mergeFrom(value) + .buildPartial(); } else { progressEntities_ = value; } @@ -1022,6 +1150,8 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1040,6 +1170,8 @@ public Builder clearProgressEntities() { return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1047,11 +1179,13 @@ public Builder clearProgressEntities() { * .google.datastore.admin.v1.Progress progress_entities = 2; */ public com.google.datastore.admin.v1.Progress.Builder getProgressEntitiesBuilder() { - + onChanged(); return getProgressEntitiesFieldBuilder().getBuilder(); } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1062,11 +1196,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil if (progressEntitiesBuilder_ != null) { return progressEntitiesBuilder_.getMessageOrBuilder(); } else { - return progressEntities_ == null ? - com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1074,14 +1211,17 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil * .google.datastore.admin.v1.Progress progress_entities = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> getProgressEntitiesFieldBuilder() { if (progressEntitiesBuilder_ == null) { - progressEntitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressEntities(), - getParentForChildren(), - isClean()); + progressEntitiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressEntities(), getParentForChildren(), isClean()); progressEntities_ = null; } return progressEntitiesBuilder_; @@ -1089,34 +1229,47 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil private com.google.datastore.admin.v1.Progress progressBytes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressBytesBuilder_; + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> + progressBytesBuilder_; /** + * + * *
      * An estimate of the number of bytes processed.
      * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return Whether the progressBytes field is set. */ public boolean hasProgressBytes() { return progressBytesBuilder_ != null || progressBytes_ != null; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return The progressBytes. */ public com.google.datastore.admin.v1.Progress getProgressBytes() { if (progressBytesBuilder_ == null) { - return progressBytes_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; + return progressBytes_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; } else { return progressBytesBuilder_.getMessage(); } } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1137,6 +1290,8 @@ public Builder setProgressBytes(com.google.datastore.admin.v1.Progress value) { return this; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1155,6 +1310,8 @@ public Builder setProgressBytes( return this; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1165,7 +1322,9 @@ public Builder mergeProgressBytes(com.google.datastore.admin.v1.Progress value) if (progressBytesBuilder_ == null) { if (progressBytes_ != null) { progressBytes_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressBytes_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressBytes_) + .mergeFrom(value) + .buildPartial(); } else { progressBytes_ = value; } @@ -1177,6 +1336,8 @@ public Builder mergeProgressBytes(com.google.datastore.admin.v1.Progress value) return this; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1195,6 +1356,8 @@ public Builder clearProgressBytes() { return this; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1202,11 +1365,13 @@ public Builder clearProgressBytes() { * .google.datastore.admin.v1.Progress progress_bytes = 3; */ public com.google.datastore.admin.v1.Progress.Builder getProgressBytesBuilder() { - + onChanged(); return getProgressBytesFieldBuilder().getBuilder(); } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1217,11 +1382,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder if (progressBytesBuilder_ != null) { return progressBytesBuilder_.getMessageOrBuilder(); } else { - return progressBytes_ == null ? - com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; + return progressBytes_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; } } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1229,14 +1397,17 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder * .google.datastore.admin.v1.Progress progress_bytes = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> getProgressBytesFieldBuilder() { if (progressBytesBuilder_ == null) { - progressBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressBytes(), - getParentForChildren(), - isClean()); + progressBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressBytes(), getParentForChildren(), isClean()); progressBytes_ = null; } return progressBytesBuilder_; @@ -1244,34 +1415,47 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder private com.google.datastore.admin.v1.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> entityFilterBuilder_; + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder> + entityFilterBuilder_; /** + * + * *
      * Description of which entities are being exported.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ public boolean hasEntityFilter() { return entityFilterBuilder_ != null || entityFilter_ != null; } /** + * + * *
      * Description of which entities are being exported.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { - return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** + * + * *
      * Description of which entities are being exported.
      * 
@@ -1292,6 +1476,8 @@ public Builder setEntityFilter(com.google.datastore.admin.v1.EntityFilter value) return this; } /** + * + * *
      * Description of which entities are being exported.
      * 
@@ -1310,6 +1496,8 @@ public Builder setEntityFilter( return this; } /** + * + * *
      * Description of which entities are being exported.
      * 
@@ -1320,7 +1508,9 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu if (entityFilterBuilder_ == null) { if (entityFilter_ != null) { entityFilter_ = - com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_) + .mergeFrom(value) + .buildPartial(); } else { entityFilter_ = value; } @@ -1332,6 +1522,8 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu return this; } /** + * + * *
      * Description of which entities are being exported.
      * 
@@ -1350,6 +1542,8 @@ public Builder clearEntityFilter() { return this; } /** + * + * *
      * Description of which entities are being exported.
      * 
@@ -1357,11 +1551,13 @@ public Builder clearEntityFilter() { * .google.datastore.admin.v1.EntityFilter entity_filter = 4; */ public com.google.datastore.admin.v1.EntityFilter.Builder getEntityFilterBuilder() { - + onChanged(); return getEntityFilterFieldBuilder().getBuilder(); } /** + * + * *
      * Description of which entities are being exported.
      * 
@@ -1372,11 +1568,14 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil if (entityFilterBuilder_ != null) { return entityFilterBuilder_.getMessageOrBuilder(); } else { - return entityFilter_ == null ? - com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } } /** + * + * *
      * Description of which entities are being exported.
      * 
@@ -1384,14 +1583,17 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil * .google.datastore.admin.v1.EntityFilter entity_filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder> getEntityFilterFieldBuilder() { if (entityFilterBuilder_ == null) { - entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder>( - getEntityFilter(), - getParentForChildren(), - isClean()); + entityFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder>( + getEntityFilter(), getParentForChildren(), isClean()); entityFilter_ = null; } return entityFilterBuilder_; @@ -1399,6 +1601,8 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil private java.lang.Object outputUrlPrefix_ = ""; /** + * + * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1408,13 +1612,13 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
      * 
* * string output_url_prefix = 5; + * * @return The outputUrlPrefix. */ public java.lang.String getOutputUrlPrefix() { java.lang.Object ref = outputUrlPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrlPrefix_ = s; return s; @@ -1423,6 +1627,8 @@ public java.lang.String getOutputUrlPrefix() { } } /** + * + * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1432,15 +1638,14 @@ public java.lang.String getOutputUrlPrefix() {
      * 
* * string output_url_prefix = 5; + * * @return The bytes for outputUrlPrefix. */ - public com.google.protobuf.ByteString - getOutputUrlPrefixBytes() { + public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { java.lang.Object ref = outputUrlPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUrlPrefix_ = b; return b; } else { @@ -1448,6 +1653,8 @@ public java.lang.String getOutputUrlPrefix() { } } /** + * + * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1457,20 +1664,22 @@ public java.lang.String getOutputUrlPrefix() {
      * 
* * string output_url_prefix = 5; + * * @param value The outputUrlPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUrlPrefix( - java.lang.String value) { + public Builder setOutputUrlPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUrlPrefix_ = value; onChanged(); return this; } /** + * + * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1480,15 +1689,18 @@ public Builder setOutputUrlPrefix(
      * 
* * string output_url_prefix = 5; + * * @return This builder for chaining. */ public Builder clearOutputUrlPrefix() { - + outputUrlPrefix_ = getDefaultInstance().getOutputUrlPrefix(); onChanged(); return this; } /** + * + * *
      * Location for the export metadata and data files. This will be the same
      * value as the
@@ -1498,23 +1710,23 @@ public Builder clearOutputUrlPrefix() {
      * 
* * string output_url_prefix = 5; + * * @param value The bytes for outputUrlPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUrlPrefixBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUrlPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUrlPrefix_ = 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); } @@ -1524,12 +1736,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ExportEntitiesMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ExportEntitiesMetadata) private static final com.google.datastore.admin.v1.ExportEntitiesMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ExportEntitiesMetadata(); } @@ -1538,16 +1750,16 @@ public static com.google.datastore.admin.v1.ExportEntitiesMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportEntitiesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportEntitiesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEntitiesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEntitiesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1562,6 +1774,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ExportEntitiesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java index eb16a932a..408049d0c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ExportEntitiesMetadataOrBuilder extends +public interface ExportEntitiesMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ExportEntitiesMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ boolean hasCommon(); /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ com.google.datastore.admin.v1.CommonMetadata getCommon(); /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -35,24 +59,32 @@ public interface ExportEntitiesMetadataOrBuilder extends com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ boolean hasProgressEntities(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ com.google.datastore.admin.v1.Progress getProgressEntities(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
@@ -62,24 +94,32 @@ public interface ExportEntitiesMetadataOrBuilder extends com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuilder(); /** + * + * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return Whether the progressBytes field is set. */ boolean hasProgressBytes(); /** + * + * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return The progressBytes. */ com.google.datastore.admin.v1.Progress getProgressBytes(); /** + * + * *
    * An estimate of the number of bytes processed.
    * 
@@ -89,24 +129,32 @@ public interface ExportEntitiesMetadataOrBuilder extends com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder(); /** + * + * *
    * Description of which entities are being exported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ boolean hasEntityFilter(); /** + * + * *
    * Description of which entities are being exported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ com.google.datastore.admin.v1.EntityFilter getEntityFilter(); /** + * + * *
    * Description of which entities are being exported.
    * 
@@ -116,6 +164,8 @@ public interface ExportEntitiesMetadataOrBuilder extends com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuilder(); /** + * + * *
    * Location for the export metadata and data files. This will be the same
    * value as the
@@ -125,10 +175,13 @@ public interface ExportEntitiesMetadataOrBuilder extends
    * 
* * string output_url_prefix = 5; + * * @return The outputUrlPrefix. */ java.lang.String getOutputUrlPrefix(); /** + * + * *
    * Location for the export metadata and data files. This will be the same
    * value as the
@@ -138,8 +191,8 @@ public interface ExportEntitiesMetadataOrBuilder extends
    * 
* * string output_url_prefix = 5; + * * @return The bytes for outputUrlPrefix. */ - com.google.protobuf.ByteString - getOutputUrlPrefixBytes(); + com.google.protobuf.ByteString getOutputUrlPrefixBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java index f92e37b87..945292d02 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequest.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesRequest}
  */
-public final class ExportEntitiesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ExportEntitiesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ExportEntitiesRequest)
     ExportEntitiesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ExportEntitiesRequest.newBuilder() to construct.
   private ExportEntitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ExportEntitiesRequest() {
     projectId_ = "";
     outputUrlPrefix_ = "";
@@ -27,16 +45,15 @@ private ExportEntitiesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExportEntitiesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ExportEntitiesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,51 +73,56 @@ private ExportEntitiesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            projectId_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              projectId_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 26: {
-            com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null;
-            if (entityFilter_ != null) {
-              subBuilder = entityFilter_.toBuilder();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            entityFilter_ = input.readMessage(com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(entityFilter_);
-              entityFilter_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null;
+              if (entityFilter_ != null) {
+                subBuilder = entityFilter_.toBuilder();
+              }
+              entityFilter_ =
+                  input.readMessage(
+                      com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(entityFilter_);
+                entityFilter_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            outputUrlPrefix_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              outputUrlPrefix_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,46 +130,50 @@ private ExportEntitiesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ExportEntitiesRequest.class, com.google.datastore.admin.v1.ExportEntitiesRequest.Builder.class);
+            com.google.datastore.admin.v1.ExportEntitiesRequest.class,
+            com.google.datastore.admin.v1.ExportEntitiesRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
+   *
+   *
    * 
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -156,29 +182,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -187,24 +213,23 @@ public java.lang.String getProjectId() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -213,28 +238,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Client-assigned labels.
    * 
@@ -242,11 +269,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Client-assigned labels.
    * 
@@ -254,16 +282,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Client-assigned labels.
    * 
@@ -271,12 +299,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -286,11 +313,14 @@ public java.lang.String getLabelsOrThrow( public static final int ENTITY_FILTER_FIELD_NUMBER = 3; private com.google.datastore.admin.v1.EntityFilter entityFilter_; /** + * + * *
    * Description of what data from the project is included in the export.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; + * * @return Whether the entityFilter field is set. */ @java.lang.Override @@ -298,18 +328,25 @@ public boolean hasEntityFilter() { return entityFilter_ != null; } /** + * + * *
    * Description of what data from the project is included in the export.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; + * * @return The entityFilter. */ @java.lang.Override public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { - return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } /** + * + * *
    * Description of what data from the project is included in the export.
    * 
@@ -324,6 +361,8 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil public static final int OUTPUT_URL_PREFIX_FIELD_NUMBER = 4; private volatile java.lang.Object outputUrlPrefix_; /** + * + * *
    * Required. Location for the export metadata and data files.
    * The full resource URL of the external storage location. Currently, only
@@ -343,6 +382,7 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
    * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUrlPrefix. */ @java.lang.Override @@ -351,14 +391,15 @@ public java.lang.String getOutputUrlPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrlPrefix_ = s; return s; } } /** + * + * *
    * Required. Location for the export metadata and data files.
    * The full resource URL of the external storage location. Currently, only
@@ -378,16 +419,15 @@ public java.lang.String getOutputUrlPrefix() {
    * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUrlPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUrlPrefixBytes() { + public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { java.lang.Object ref = outputUrlPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUrlPrefix_ = b; return b; } else { @@ -396,6 +436,7 @@ public java.lang.String getOutputUrlPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -407,17 +448,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (entityFilter_ != null) { output.writeMessage(3, getEntityFilter()); } @@ -436,19 +472,18 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } if (entityFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEntityFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEntityFilter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUrlPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputUrlPrefix_); @@ -461,24 +496,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.datastore.admin.v1.ExportEntitiesRequest)) { return super.equals(obj); } - com.google.datastore.admin.v1.ExportEntitiesRequest other = (com.google.datastore.admin.v1.ExportEntitiesRequest) obj; + com.google.datastore.admin.v1.ExportEntitiesRequest other = + (com.google.datastore.admin.v1.ExportEntitiesRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasEntityFilter() != other.hasEntityFilter()) return false; if (hasEntityFilter()) { - if (!getEntityFilter() - .equals(other.getEntityFilter())) return false; + if (!getEntityFilter().equals(other.getEntityFilter())) return false; } - if (!getOutputUrlPrefix() - .equals(other.getOutputUrlPrefix())) return false; + if (!getOutputUrlPrefix().equals(other.getOutputUrlPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -508,96 +540,103 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.ExportEntitiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
@@ -605,43 +644,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ExportEntitiesRequest)
       com.google.datastore.admin.v1.ExportEntitiesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ExportEntitiesRequest.class, com.google.datastore.admin.v1.ExportEntitiesRequest.Builder.class);
+              com.google.datastore.admin.v1.ExportEntitiesRequest.class,
+              com.google.datastore.admin.v1.ExportEntitiesRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ExportEntitiesRequest.newBuilder()
@@ -649,16 +688,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -677,9 +715,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ExportEntitiesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -698,7 +736,8 @@ public com.google.datastore.admin.v1.ExportEntitiesRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ExportEntitiesRequest buildPartial() {
-      com.google.datastore.admin.v1.ExportEntitiesRequest result = new com.google.datastore.admin.v1.ExportEntitiesRequest(this);
+      com.google.datastore.admin.v1.ExportEntitiesRequest result =
+          new com.google.datastore.admin.v1.ExportEntitiesRequest(this);
       int from_bitField0_ = bitField0_;
       result.projectId_ = projectId_;
       result.labels_ = internalGetLabels();
@@ -717,38 +756,39 @@ public com.google.datastore.admin.v1.ExportEntitiesRequest 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.datastore.admin.v1.ExportEntitiesRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesRequest)other);
+        return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -756,13 +796,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ExportEntitiesRequest other) {
-      if (other == com.google.datastore.admin.v1.ExportEntitiesRequest.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.ExportEntitiesRequest.getDefaultInstance())
+        return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (other.hasEntityFilter()) {
         mergeEntityFilter(other.getEntityFilter());
       }
@@ -789,7 +829,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.datastore.admin.v1.ExportEntitiesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.datastore.admin.v1.ExportEntitiesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -798,22 +839,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object projectId_ = "";
     /**
+     *
+     *
      * 
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -822,20 +866,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -843,75 +888,81 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -923,28 +974,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Client-assigned labels.
      * 
@@ -952,11 +1005,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Client-assigned labels.
      * 
@@ -964,16 +1018,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Client-assigned labels.
      * 
@@ -981,12 +1036,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -994,97 +1048,107 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private com.google.datastore.admin.v1.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> entityFilterBuilder_; + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder> + entityFilterBuilder_; /** + * + * *
      * Description of what data from the project is included in the export.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; + * * @return Whether the entityFilter field is set. */ public boolean hasEntityFilter() { return entityFilterBuilder_ != null || entityFilter_ != null; } /** + * + * *
      * Description of what data from the project is included in the export.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; + * * @return The entityFilter. */ public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { - return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** + * + * *
      * Description of what data from the project is included in the export.
      * 
@@ -1105,6 +1169,8 @@ public Builder setEntityFilter(com.google.datastore.admin.v1.EntityFilter value) return this; } /** + * + * *
      * Description of what data from the project is included in the export.
      * 
@@ -1123,6 +1189,8 @@ public Builder setEntityFilter( return this; } /** + * + * *
      * Description of what data from the project is included in the export.
      * 
@@ -1133,7 +1201,9 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu if (entityFilterBuilder_ == null) { if (entityFilter_ != null) { entityFilter_ = - com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_) + .mergeFrom(value) + .buildPartial(); } else { entityFilter_ = value; } @@ -1145,6 +1215,8 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu return this; } /** + * + * *
      * Description of what data from the project is included in the export.
      * 
@@ -1163,6 +1235,8 @@ public Builder clearEntityFilter() { return this; } /** + * + * *
      * Description of what data from the project is included in the export.
      * 
@@ -1170,11 +1244,13 @@ public Builder clearEntityFilter() { * .google.datastore.admin.v1.EntityFilter entity_filter = 3; */ public com.google.datastore.admin.v1.EntityFilter.Builder getEntityFilterBuilder() { - + onChanged(); return getEntityFilterFieldBuilder().getBuilder(); } /** + * + * *
      * Description of what data from the project is included in the export.
      * 
@@ -1185,11 +1261,14 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil if (entityFilterBuilder_ != null) { return entityFilterBuilder_.getMessageOrBuilder(); } else { - return entityFilter_ == null ? - com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } } /** + * + * *
      * Description of what data from the project is included in the export.
      * 
@@ -1197,14 +1276,17 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil * .google.datastore.admin.v1.EntityFilter entity_filter = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder> getEntityFilterFieldBuilder() { if (entityFilterBuilder_ == null) { - entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder>( - getEntityFilter(), - getParentForChildren(), - isClean()); + entityFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder>( + getEntityFilter(), getParentForChildren(), isClean()); entityFilter_ = null; } return entityFilterBuilder_; @@ -1212,6 +1294,8 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil private java.lang.Object outputUrlPrefix_ = ""; /** + * + * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1231,13 +1315,13 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUrlPrefix. */ public java.lang.String getOutputUrlPrefix() { java.lang.Object ref = outputUrlPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrlPrefix_ = s; return s; @@ -1246,6 +1330,8 @@ public java.lang.String getOutputUrlPrefix() { } } /** + * + * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1265,15 +1351,14 @@ public java.lang.String getOutputUrlPrefix() {
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUrlPrefix. */ - public com.google.protobuf.ByteString - getOutputUrlPrefixBytes() { + public com.google.protobuf.ByteString getOutputUrlPrefixBytes() { java.lang.Object ref = outputUrlPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUrlPrefix_ = b; return b; } else { @@ -1281,6 +1366,8 @@ public java.lang.String getOutputUrlPrefix() { } } /** + * + * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1300,20 +1387,22 @@ public java.lang.String getOutputUrlPrefix() {
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The outputUrlPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUrlPrefix( - java.lang.String value) { + public Builder setOutputUrlPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUrlPrefix_ = value; onChanged(); return this; } /** + * + * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1333,15 +1422,18 @@ public Builder setOutputUrlPrefix(
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputUrlPrefix() { - + outputUrlPrefix_ = getDefaultInstance().getOutputUrlPrefix(); onChanged(); return this; } /** + * + * *
      * Required. Location for the export metadata and data files.
      * The full resource URL of the external storage location. Currently, only
@@ -1361,23 +1453,23 @@ public Builder clearOutputUrlPrefix() {
      * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for outputUrlPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUrlPrefixBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUrlPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUrlPrefix_ = 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); } @@ -1387,12 +1479,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ExportEntitiesRequest) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ExportEntitiesRequest) private static final com.google.datastore.admin.v1.ExportEntitiesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ExportEntitiesRequest(); } @@ -1401,16 +1493,16 @@ public static com.google.datastore.admin.v1.ExportEntitiesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportEntitiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportEntitiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEntitiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEntitiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1425,6 +1517,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ExportEntitiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java index a006fac10..639802398 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesRequestOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ExportEntitiesRequestOrBuilder extends +public interface ExportEntitiesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ExportEntitiesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Client-assigned labels.
    * 
@@ -36,30 +59,31 @@ public interface ExportEntitiesRequestOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Client-assigned labels.
    * 
@@ -68,40 +92,48 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Description of what data from the project is included in the export.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; + * * @return Whether the entityFilter field is set. */ boolean hasEntityFilter(); /** + * + * *
    * Description of what data from the project is included in the export.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 3; + * * @return The entityFilter. */ com.google.datastore.admin.v1.EntityFilter getEntityFilter(); /** + * + * *
    * Description of what data from the project is included in the export.
    * 
@@ -111,6 +143,8 @@ java.lang.String getLabelsOrThrow( com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuilder(); /** + * + * *
    * Required. Location for the export metadata and data files.
    * The full resource URL of the external storage location. Currently, only
@@ -130,10 +164,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUrlPrefix. */ java.lang.String getOutputUrlPrefix(); /** + * + * *
    * Required. Location for the export metadata and data files.
    * The full resource URL of the external storage location. Currently, only
@@ -153,8 +190,8 @@ java.lang.String getLabelsOrThrow(
    * 
* * string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUrlPrefix. */ - com.google.protobuf.ByteString - getOutputUrlPrefixBytes(); + com.google.protobuf.ByteString getOutputUrlPrefixBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java index f39da2409..23ef5aa68 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponse.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * The response for
  * [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesResponse}
  */
-public final class ExportEntitiesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ExportEntitiesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ExportEntitiesResponse)
     ExportEntitiesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ExportEntitiesResponse.newBuilder() to construct.
   private ExportEntitiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ExportEntitiesResponse() {
     outputUrl_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExportEntitiesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ExportEntitiesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private ExportEntitiesResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            outputUrl_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              outputUrl_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,29 +92,33 @@ private ExportEntitiesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ExportEntitiesResponse.class, com.google.datastore.admin.v1.ExportEntitiesResponse.Builder.class);
+            com.google.datastore.admin.v1.ExportEntitiesResponse.class,
+            com.google.datastore.admin.v1.ExportEntitiesResponse.Builder.class);
   }
 
   public static final int OUTPUT_URL_FIELD_NUMBER = 1;
   private volatile java.lang.Object outputUrl_;
   /**
+   *
+   *
    * 
    * Location of the output metadata file. This can be used to begin an import
    * into Cloud Datastore (this project or another project). See
@@ -105,6 +127,7 @@ private ExportEntitiesResponse(
    * 
* * string output_url = 1; + * * @return The outputUrl. */ @java.lang.Override @@ -113,14 +136,15 @@ public java.lang.String getOutputUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrl_ = s; return s; } } /** + * + * *
    * Location of the output metadata file. This can be used to begin an import
    * into Cloud Datastore (this project or another project). See
@@ -129,16 +153,15 @@ public java.lang.String getOutputUrl() {
    * 
* * string output_url = 1; + * * @return The bytes for outputUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUrlBytes() { + public com.google.protobuf.ByteString getOutputUrlBytes() { java.lang.Object ref = outputUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUrl_ = b; return b; } else { @@ -147,6 +170,7 @@ public java.lang.String getOutputUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +182,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(outputUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUrl_); } @@ -183,15 +206,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.datastore.admin.v1.ExportEntitiesResponse)) { return super.equals(obj); } - com.google.datastore.admin.v1.ExportEntitiesResponse other = (com.google.datastore.admin.v1.ExportEntitiesResponse) obj; + com.google.datastore.admin.v1.ExportEntitiesResponse other = + (com.google.datastore.admin.v1.ExportEntitiesResponse) obj; - if (!getOutputUrl() - .equals(other.getOutputUrl())) return false; + if (!getOutputUrl().equals(other.getOutputUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -211,96 +234,103 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ExportEntitiesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ExportEntitiesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.ExportEntitiesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for
    * [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
@@ -308,21 +338,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.ExportEntitiesResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ExportEntitiesResponse)
       com.google.datastore.admin.v1.ExportEntitiesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ExportEntitiesResponse.class, com.google.datastore.admin.v1.ExportEntitiesResponse.Builder.class);
+              com.google.datastore.admin.v1.ExportEntitiesResponse.class,
+              com.google.datastore.admin.v1.ExportEntitiesResponse.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ExportEntitiesResponse.newBuilder()
@@ -330,16 +362,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -349,9 +380,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ExportEntitiesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -370,7 +401,8 @@ public com.google.datastore.admin.v1.ExportEntitiesResponse build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ExportEntitiesResponse buildPartial() {
-      com.google.datastore.admin.v1.ExportEntitiesResponse result = new com.google.datastore.admin.v1.ExportEntitiesResponse(this);
+      com.google.datastore.admin.v1.ExportEntitiesResponse result =
+          new com.google.datastore.admin.v1.ExportEntitiesResponse(this);
       result.outputUrl_ = outputUrl_;
       onBuilt();
       return result;
@@ -380,38 +412,39 @@ public com.google.datastore.admin.v1.ExportEntitiesResponse 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.datastore.admin.v1.ExportEntitiesResponse) {
-        return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesResponse)other);
+        return mergeFrom((com.google.datastore.admin.v1.ExportEntitiesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -419,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ExportEntitiesResponse other) {
-      if (other == com.google.datastore.admin.v1.ExportEntitiesResponse.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.ExportEntitiesResponse.getDefaultInstance())
+        return this;
       if (!other.getOutputUrl().isEmpty()) {
         outputUrl_ = other.outputUrl_;
         onChanged();
@@ -443,7 +477,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.datastore.admin.v1.ExportEntitiesResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.datastore.admin.v1.ExportEntitiesResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -455,6 +490,8 @@ public Builder mergeFrom(
 
     private java.lang.Object outputUrl_ = "";
     /**
+     *
+     *
      * 
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -463,13 +500,13 @@ public Builder mergeFrom(
      * 
* * string output_url = 1; + * * @return The outputUrl. */ public java.lang.String getOutputUrl() { java.lang.Object ref = outputUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUrl_ = s; return s; @@ -478,6 +515,8 @@ public java.lang.String getOutputUrl() { } } /** + * + * *
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -486,15 +525,14 @@ public java.lang.String getOutputUrl() {
      * 
* * string output_url = 1; + * * @return The bytes for outputUrl. */ - public com.google.protobuf.ByteString - getOutputUrlBytes() { + public com.google.protobuf.ByteString getOutputUrlBytes() { java.lang.Object ref = outputUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUrl_ = b; return b; } else { @@ -502,6 +540,8 @@ public java.lang.String getOutputUrl() { } } /** + * + * *
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -510,20 +550,22 @@ public java.lang.String getOutputUrl() {
      * 
* * string output_url = 1; + * * @param value The outputUrl to set. * @return This builder for chaining. */ - public Builder setOutputUrl( - java.lang.String value) { + public Builder setOutputUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUrl_ = value; onChanged(); return this; } /** + * + * *
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -532,15 +574,18 @@ public Builder setOutputUrl(
      * 
* * string output_url = 1; + * * @return This builder for chaining. */ public Builder clearOutputUrl() { - + outputUrl_ = getDefaultInstance().getOutputUrl(); onChanged(); return this; } /** + * + * *
      * Location of the output metadata file. This can be used to begin an import
      * into Cloud Datastore (this project or another project). See
@@ -549,23 +594,23 @@ public Builder clearOutputUrl() {
      * 
* * string output_url = 1; + * * @param value The bytes for outputUrl to set. * @return This builder for chaining. */ - public Builder setOutputUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUrl_ = 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); } @@ -575,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ExportEntitiesResponse) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ExportEntitiesResponse) private static final com.google.datastore.admin.v1.ExportEntitiesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ExportEntitiesResponse(); } @@ -589,16 +634,16 @@ public static com.google.datastore.admin.v1.ExportEntitiesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportEntitiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportEntitiesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEntitiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEntitiesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -613,6 +658,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ExportEntitiesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java index 434f9ce2c..74b00e9cd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ExportEntitiesResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ExportEntitiesResponseOrBuilder extends +public interface ExportEntitiesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ExportEntitiesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Location of the output metadata file. This can be used to begin an import
    * into Cloud Datastore (this project or another project). See
@@ -16,10 +34,13 @@ public interface ExportEntitiesResponseOrBuilder extends
    * 
* * string output_url = 1; + * * @return The outputUrl. */ java.lang.String getOutputUrl(); /** + * + * *
    * Location of the output metadata file. This can be used to begin an import
    * into Cloud Datastore (this project or another project). See
@@ -28,8 +49,8 @@ public interface ExportEntitiesResponseOrBuilder extends
    * 
* * string output_url = 1; + * * @return The bytes for outputUrl. */ - com.google.protobuf.ByteString - getOutputUrlBytes(); + com.google.protobuf.ByteString getOutputUrlBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java index 261774fa0..173eb97eb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequest.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * The request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex].
  * 
* * Protobuf type {@code google.datastore.admin.v1.GetIndexRequest} */ -public final class GetIndexRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.GetIndexRequest) GetIndexRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetIndexRequest.newBuilder() to construct. private GetIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetIndexRequest() { projectId_ = ""; indexId_ = ""; @@ -26,16 +44,15 @@ private GetIndexRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetIndexRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetIndexRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private GetIndexRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - indexId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + indexId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private GetIndexRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.GetIndexRequest.class, com.google.datastore.admin.v1.GetIndexRequest.Builder.class); + com.google.datastore.admin.v1.GetIndexRequest.class, + com.google.datastore.admin.v1.GetIndexRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -149,11 +173,14 @@ public java.lang.String getProjectId() { public static final int INDEX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object indexId_; /** + * + * *
    * The resource ID of the index to get.
    * 
* * string index_id = 3; + * * @return The indexId. */ @java.lang.Override @@ -162,29 +189,29 @@ public java.lang.String getIndexId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; } } /** + * + * *
    * The resource ID of the index to get.
    * 
* * string index_id = 3; + * * @return The bytes for indexId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIndexIdBytes() { + public com.google.protobuf.ByteString getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); indexId_ = b; return b; } else { @@ -193,6 +220,7 @@ public java.lang.String getIndexId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +232,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -235,17 +262,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.datastore.admin.v1.GetIndexRequest)) { return super.equals(obj); } - com.google.datastore.admin.v1.GetIndexRequest other = (com.google.datastore.admin.v1.GetIndexRequest) obj; + com.google.datastore.admin.v1.GetIndexRequest other = + (com.google.datastore.admin.v1.GetIndexRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getIndexId() - .equals(other.getIndexId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getIndexId().equals(other.getIndexId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -266,118 +292,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.GetIndexRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.GetIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.GetIndexRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.GetIndexRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.GetIndexRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex].
    * 
* * Protobuf type {@code google.datastore.admin.v1.GetIndexRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.GetIndexRequest) com.google.datastore.admin.v1.GetIndexRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_GetIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.GetIndexRequest.class, com.google.datastore.admin.v1.GetIndexRequest.Builder.class); + com.google.datastore.admin.v1.GetIndexRequest.class, + com.google.datastore.admin.v1.GetIndexRequest.Builder.class); } // Construct using com.google.datastore.admin.v1.GetIndexRequest.newBuilder() @@ -385,16 +420,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_GetIndexRequest_descriptor; } @java.lang.Override @@ -427,7 +461,8 @@ public com.google.datastore.admin.v1.GetIndexRequest build() { @java.lang.Override public com.google.datastore.admin.v1.GetIndexRequest buildPartial() { - com.google.datastore.admin.v1.GetIndexRequest result = new com.google.datastore.admin.v1.GetIndexRequest(this); + com.google.datastore.admin.v1.GetIndexRequest result = + new com.google.datastore.admin.v1.GetIndexRequest(this); result.projectId_ = projectId_; result.indexId_ = indexId_; onBuilt(); @@ -438,38 +473,39 @@ public com.google.datastore.admin.v1.GetIndexRequest 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.datastore.admin.v1.GetIndexRequest) { - return mergeFrom((com.google.datastore.admin.v1.GetIndexRequest)other); + return mergeFrom((com.google.datastore.admin.v1.GetIndexRequest) other); } else { super.mergeFrom(other); return this; @@ -517,18 +553,20 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -537,20 +575,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -558,54 +597,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -613,18 +659,20 @@ public Builder setProjectIdBytes( private java.lang.Object indexId_ = ""; /** + * + * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; + * * @return The indexId. */ public java.lang.String getIndexId() { java.lang.Object ref = indexId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; @@ -633,20 +681,21 @@ public java.lang.String getIndexId() { } } /** + * + * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; + * * @return The bytes for indexId. */ - public com.google.protobuf.ByteString - getIndexIdBytes() { + public com.google.protobuf.ByteString getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); indexId_ = b; return b; } else { @@ -654,61 +703,68 @@ public java.lang.String getIndexId() { } } /** + * + * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; + * * @param value The indexId to set. * @return This builder for chaining. */ - public Builder setIndexId( - java.lang.String value) { + public Builder setIndexId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + indexId_ = value; onChanged(); return this; } /** + * + * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; + * * @return This builder for chaining. */ public Builder clearIndexId() { - + indexId_ = getDefaultInstance().getIndexId(); onChanged(); return this; } /** + * + * *
      * The resource ID of the index to get.
      * 
* * string index_id = 3; + * * @param value The bytes for indexId to set. * @return This builder for chaining. */ - public Builder setIndexIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexId_ = 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); } @@ -718,12 +774,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.GetIndexRequest) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.GetIndexRequest) private static final com.google.datastore.admin.v1.GetIndexRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.GetIndexRequest(); } @@ -732,16 +788,16 @@ public static com.google.datastore.admin.v1.GetIndexRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetIndexRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetIndexRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetIndexRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +812,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.GetIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java index cbec0a1a5..14e873eb6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/GetIndexRequestOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface GetIndexRequestOrBuilder extends +public interface GetIndexRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.GetIndexRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * The resource ID of the index to get.
    * 
* * string index_id = 3; + * * @return The indexId. */ java.lang.String getIndexId(); /** + * + * *
    * The resource ID of the index to get.
    * 
* * string index_id = 3; + * * @return The bytes for indexId. */ - com.google.protobuf.ByteString - getIndexIdBytes(); + com.google.protobuf.ByteString getIndexIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java index b91d24def..b1116dde9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * Metadata for ImportEntities operations.
  * 
* * Protobuf type {@code google.datastore.admin.v1.ImportEntitiesMetadata} */ -public final class ImportEntitiesMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportEntitiesMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ImportEntitiesMetadata) ImportEntitiesMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportEntitiesMetadata.newBuilder() to construct. private ImportEntitiesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportEntitiesMetadata() { inputUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportEntitiesMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportEntitiesMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,71 +70,84 @@ private ImportEntitiesMetadata( case 0: done = true; break; - case 10: { - com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; - if (common_ != null) { - subBuilder = common_.toBuilder(); + case 10: + { + com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); + } + common_ = + input.readMessage( + com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); + } + + break; } - common_ = input.readMessage(com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(common_); - common_ = subBuilder.buildPartial(); + case 18: + { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressEntities_ != null) { + subBuilder = progressEntities_.toBuilder(); + } + progressEntities_ = + input.readMessage( + com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressEntities_); + progressEntities_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressEntities_ != null) { - subBuilder = progressEntities_.toBuilder(); + case 26: + { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; } - progressEntities_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressEntities_); - progressEntities_ = subBuilder.buildPartial(); + case 34: + { + com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null; + if (entityFilter_ != null) { + subBuilder = entityFilter_.toBuilder(); + } + entityFilter_ = + input.readMessage( + com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityFilter_); + entityFilter_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressBytes_ != null) { - subBuilder = progressBytes_.toBuilder(); + inputUrl_ = s; + break; } - progressBytes_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressBytes_); - progressBytes_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null; - if (entityFilter_ != null) { - subBuilder = entityFilter_.toBuilder(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - entityFilter_ = input.readMessage(com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityFilter_); - entityFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +155,39 @@ private ImportEntitiesMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.ImportEntitiesMetadata.class, com.google.datastore.admin.v1.ImportEntitiesMetadata.Builder.class); + com.google.datastore.admin.v1.ImportEntitiesMetadata.class, + com.google.datastore.admin.v1.ImportEntitiesMetadata.Builder.class); } public static final int COMMON_FIELD_NUMBER = 1; private com.google.datastore.admin.v1.CommonMetadata common_; /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ @java.lang.Override @@ -160,18 +195,25 @@ public boolean hasCommon() { return common_ != null; } /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata getCommon() { - return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -186,11 +228,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( public static final int PROGRESS_ENTITIES_FIELD_NUMBER = 2; private com.google.datastore.admin.v1.Progress progressEntities_; /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ @java.lang.Override @@ -198,18 +243,25 @@ public boolean hasProgressEntities() { return progressEntities_ != null; } /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressEntities() { - return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } /** + * + * *
    * An estimate of the number of entities processed.
    * 
@@ -224,11 +276,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil public static final int PROGRESS_BYTES_FIELD_NUMBER = 3; private com.google.datastore.admin.v1.Progress progressBytes_; /** + * + * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return Whether the progressBytes field is set. */ @java.lang.Override @@ -236,18 +291,25 @@ public boolean hasProgressBytes() { return progressBytes_ != null; } /** + * + * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return The progressBytes. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressBytes() { - return progressBytes_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; + return progressBytes_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; } /** + * + * *
    * An estimate of the number of bytes processed.
    * 
@@ -262,11 +324,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder public static final int ENTITY_FILTER_FIELD_NUMBER = 4; private com.google.datastore.admin.v1.EntityFilter entityFilter_; /** + * + * *
    * Description of which entities are being imported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ @java.lang.Override @@ -274,18 +339,25 @@ public boolean hasEntityFilter() { return entityFilter_ != null; } /** + * + * *
    * Description of which entities are being imported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ @java.lang.Override public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { - return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } /** + * + * *
    * Description of which entities are being imported.
    * 
@@ -300,12 +372,15 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil public static final int INPUT_URL_FIELD_NUMBER = 5; private volatile java.lang.Object inputUrl_; /** + * + * *
    * The location of the import metadata file. This will be the same value as
    * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    * 
* * string input_url = 5; + * * @return The inputUrl. */ @java.lang.Override @@ -314,30 +389,30 @@ public java.lang.String getInputUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUrl_ = s; return s; } } /** + * + * *
    * The location of the import metadata file. This will be the same value as
    * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    * 
* * string input_url = 5; + * * @return The bytes for inputUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputUrlBytes() { + public com.google.protobuf.ByteString getInputUrlBytes() { java.lang.Object ref = inputUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUrl_ = b; return b; } else { @@ -346,6 +421,7 @@ public java.lang.String getInputUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,8 +433,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 (common_ != null) { output.writeMessage(1, getCommon()); } @@ -384,20 +459,16 @@ public int getSerializedSize() { size = 0; if (common_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommon()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } if (progressEntities_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProgressEntities()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgressEntities()); } if (progressBytes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProgressBytes()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgressBytes()); } if (entityFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getEntityFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEntityFilter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputUrl_); @@ -410,35 +481,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.datastore.admin.v1.ImportEntitiesMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.ImportEntitiesMetadata other = (com.google.datastore.admin.v1.ImportEntitiesMetadata) obj; + com.google.datastore.admin.v1.ImportEntitiesMetadata other = + (com.google.datastore.admin.v1.ImportEntitiesMetadata) obj; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; + if (!getCommon().equals(other.getCommon())) return false; } if (hasProgressEntities() != other.hasProgressEntities()) return false; if (hasProgressEntities()) { - if (!getProgressEntities() - .equals(other.getProgressEntities())) return false; + if (!getProgressEntities().equals(other.getProgressEntities())) return false; } if (hasProgressBytes() != other.hasProgressBytes()) return false; if (hasProgressBytes()) { - if (!getProgressBytes() - .equals(other.getProgressBytes())) return false; + if (!getProgressBytes().equals(other.getProgressBytes())) return false; } if (hasEntityFilter() != other.hasEntityFilter()) return false; if (hasEntityFilter()) { - if (!getEntityFilter() - .equals(other.getEntityFilter())) return false; + if (!getEntityFilter().equals(other.getEntityFilter())) return false; } - if (!getInputUrl() - .equals(other.getInputUrl())) return false; + if (!getInputUrl().equals(other.getInputUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -474,117 +541,126 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ImportEntitiesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.ImportEntitiesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata for ImportEntities operations.
    * 
* * Protobuf type {@code google.datastore.admin.v1.ImportEntitiesMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ImportEntitiesMetadata) com.google.datastore.admin.v1.ImportEntitiesMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.ImportEntitiesMetadata.class, com.google.datastore.admin.v1.ImportEntitiesMetadata.Builder.class); + com.google.datastore.admin.v1.ImportEntitiesMetadata.class, + com.google.datastore.admin.v1.ImportEntitiesMetadata.Builder.class); } // Construct using com.google.datastore.admin.v1.ImportEntitiesMetadata.newBuilder() @@ -592,16 +668,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -635,9 +710,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ImportEntitiesMetadata_descriptor; } @java.lang.Override @@ -656,7 +731,8 @@ public com.google.datastore.admin.v1.ImportEntitiesMetadata build() { @java.lang.Override public com.google.datastore.admin.v1.ImportEntitiesMetadata buildPartial() { - com.google.datastore.admin.v1.ImportEntitiesMetadata result = new com.google.datastore.admin.v1.ImportEntitiesMetadata(this); + com.google.datastore.admin.v1.ImportEntitiesMetadata result = + new com.google.datastore.admin.v1.ImportEntitiesMetadata(this); if (commonBuilder_ == null) { result.common_ = common_; } else { @@ -686,38 +762,39 @@ public com.google.datastore.admin.v1.ImportEntitiesMetadata 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.datastore.admin.v1.ImportEntitiesMetadata) { - return mergeFrom((com.google.datastore.admin.v1.ImportEntitiesMetadata)other); + return mergeFrom((com.google.datastore.admin.v1.ImportEntitiesMetadata) other); } else { super.mergeFrom(other); return this; @@ -725,7 +802,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.admin.v1.ImportEntitiesMetadata other) { - if (other == com.google.datastore.admin.v1.ImportEntitiesMetadata.getDefaultInstance()) return this; + if (other == com.google.datastore.admin.v1.ImportEntitiesMetadata.getDefaultInstance()) + return this; if (other.hasCommon()) { mergeCommon(other.getCommon()); } @@ -761,7 +839,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.datastore.admin.v1.ImportEntitiesMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.datastore.admin.v1.ImportEntitiesMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -773,34 +852,47 @@ public Builder mergeFrom( private com.google.datastore.admin.v1.CommonMetadata common_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> commonBuilder_; + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder> + commonBuilder_; /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ public boolean hasCommon() { return commonBuilder_ != null || common_ != null; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ public com.google.datastore.admin.v1.CommonMetadata getCommon() { if (commonBuilder_ == null) { - return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } else { return commonBuilder_.getMessage(); } } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -821,14 +913,15 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; */ - public Builder setCommon( - com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { + public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); onChanged(); @@ -839,6 +932,8 @@ public Builder setCommon( return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -849,7 +944,9 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { if (commonBuilder_ == null) { if (common_ != null) { common_ = - com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_) + .mergeFrom(value) + .buildPartial(); } else { common_ = value; } @@ -861,6 +958,8 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -879,6 +978,8 @@ public Builder clearCommon() { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -886,11 +987,13 @@ public Builder clearCommon() { * .google.datastore.admin.v1.CommonMetadata common = 1; */ public com.google.datastore.admin.v1.CommonMetadata.Builder getCommonBuilder() { - + onChanged(); return getCommonFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -901,11 +1004,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( if (commonBuilder_ != null) { return commonBuilder_.getMessageOrBuilder(); } else { - return common_ == null ? - com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -913,14 +1019,17 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( * .google.datastore.admin.v1.CommonMetadata common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); + commonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder>( + getCommon(), getParentForChildren(), isClean()); common_ = null; } return commonBuilder_; @@ -928,34 +1037,47 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( private com.google.datastore.admin.v1.Progress progressEntities_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressEntitiesBuilder_; + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> + progressEntitiesBuilder_; /** + * + * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ public boolean hasProgressEntities() { return progressEntitiesBuilder_ != null || progressEntities_ != null; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ public com.google.datastore.admin.v1.Progress getProgressEntities() { if (progressEntitiesBuilder_ == null) { - return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } else { return progressEntitiesBuilder_.getMessage(); } } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -976,6 +1098,8 @@ public Builder setProgressEntities(com.google.datastore.admin.v1.Progress value) return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -994,6 +1118,8 @@ public Builder setProgressEntities( return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1004,7 +1130,9 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu if (progressEntitiesBuilder_ == null) { if (progressEntities_ != null) { progressEntities_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_) + .mergeFrom(value) + .buildPartial(); } else { progressEntities_ = value; } @@ -1016,6 +1144,8 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1034,6 +1164,8 @@ public Builder clearProgressEntities() { return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1041,11 +1173,13 @@ public Builder clearProgressEntities() { * .google.datastore.admin.v1.Progress progress_entities = 2; */ public com.google.datastore.admin.v1.Progress.Builder getProgressEntitiesBuilder() { - + onChanged(); return getProgressEntitiesFieldBuilder().getBuilder(); } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1056,11 +1190,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil if (progressEntitiesBuilder_ != null) { return progressEntitiesBuilder_.getMessageOrBuilder(); } else { - return progressEntities_ == null ? - com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -1068,14 +1205,17 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil * .google.datastore.admin.v1.Progress progress_entities = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> getProgressEntitiesFieldBuilder() { if (progressEntitiesBuilder_ == null) { - progressEntitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressEntities(), - getParentForChildren(), - isClean()); + progressEntitiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressEntities(), getParentForChildren(), isClean()); progressEntities_ = null; } return progressEntitiesBuilder_; @@ -1083,34 +1223,47 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil private com.google.datastore.admin.v1.Progress progressBytes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressBytesBuilder_; + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> + progressBytesBuilder_; /** + * + * *
      * An estimate of the number of bytes processed.
      * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return Whether the progressBytes field is set. */ public boolean hasProgressBytes() { return progressBytesBuilder_ != null || progressBytes_ != null; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return The progressBytes. */ public com.google.datastore.admin.v1.Progress getProgressBytes() { if (progressBytesBuilder_ == null) { - return progressBytes_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; + return progressBytes_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; } else { return progressBytesBuilder_.getMessage(); } } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1131,6 +1284,8 @@ public Builder setProgressBytes(com.google.datastore.admin.v1.Progress value) { return this; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1149,6 +1304,8 @@ public Builder setProgressBytes( return this; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1159,7 +1316,9 @@ public Builder mergeProgressBytes(com.google.datastore.admin.v1.Progress value) if (progressBytesBuilder_ == null) { if (progressBytes_ != null) { progressBytes_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressBytes_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressBytes_) + .mergeFrom(value) + .buildPartial(); } else { progressBytes_ = value; } @@ -1171,6 +1330,8 @@ public Builder mergeProgressBytes(com.google.datastore.admin.v1.Progress value) return this; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1189,6 +1350,8 @@ public Builder clearProgressBytes() { return this; } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1196,11 +1359,13 @@ public Builder clearProgressBytes() { * .google.datastore.admin.v1.Progress progress_bytes = 3; */ public com.google.datastore.admin.v1.Progress.Builder getProgressBytesBuilder() { - + onChanged(); return getProgressBytesFieldBuilder().getBuilder(); } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1211,11 +1376,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder if (progressBytesBuilder_ != null) { return progressBytesBuilder_.getMessageOrBuilder(); } else { - return progressBytes_ == null ? - com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressBytes_; + return progressBytes_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; } } /** + * + * *
      * An estimate of the number of bytes processed.
      * 
@@ -1223,14 +1391,17 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder * .google.datastore.admin.v1.Progress progress_bytes = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> getProgressBytesFieldBuilder() { if (progressBytesBuilder_ == null) { - progressBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressBytes(), - getParentForChildren(), - isClean()); + progressBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressBytes(), getParentForChildren(), isClean()); progressBytes_ = null; } return progressBytesBuilder_; @@ -1238,34 +1409,47 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder private com.google.datastore.admin.v1.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> entityFilterBuilder_; + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder> + entityFilterBuilder_; /** + * + * *
      * Description of which entities are being imported.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ public boolean hasEntityFilter() { return entityFilterBuilder_ != null || entityFilter_ != null; } /** + * + * *
      * Description of which entities are being imported.
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { - return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** + * + * *
      * Description of which entities are being imported.
      * 
@@ -1286,6 +1470,8 @@ public Builder setEntityFilter(com.google.datastore.admin.v1.EntityFilter value) return this; } /** + * + * *
      * Description of which entities are being imported.
      * 
@@ -1304,6 +1490,8 @@ public Builder setEntityFilter( return this; } /** + * + * *
      * Description of which entities are being imported.
      * 
@@ -1314,7 +1502,9 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu if (entityFilterBuilder_ == null) { if (entityFilter_ != null) { entityFilter_ = - com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_) + .mergeFrom(value) + .buildPartial(); } else { entityFilter_ = value; } @@ -1326,6 +1516,8 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu return this; } /** + * + * *
      * Description of which entities are being imported.
      * 
@@ -1344,6 +1536,8 @@ public Builder clearEntityFilter() { return this; } /** + * + * *
      * Description of which entities are being imported.
      * 
@@ -1351,11 +1545,13 @@ public Builder clearEntityFilter() { * .google.datastore.admin.v1.EntityFilter entity_filter = 4; */ public com.google.datastore.admin.v1.EntityFilter.Builder getEntityFilterBuilder() { - + onChanged(); return getEntityFilterFieldBuilder().getBuilder(); } /** + * + * *
      * Description of which entities are being imported.
      * 
@@ -1366,11 +1562,14 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil if (entityFilterBuilder_ != null) { return entityFilterBuilder_.getMessageOrBuilder(); } else { - return entityFilter_ == null ? - com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } } /** + * + * *
      * Description of which entities are being imported.
      * 
@@ -1378,14 +1577,17 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil * .google.datastore.admin.v1.EntityFilter entity_filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder> getEntityFilterFieldBuilder() { if (entityFilterBuilder_ == null) { - entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder>( - getEntityFilter(), - getParentForChildren(), - isClean()); + entityFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder>( + getEntityFilter(), getParentForChildren(), isClean()); entityFilter_ = null; } return entityFilterBuilder_; @@ -1393,19 +1595,21 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil private java.lang.Object inputUrl_ = ""; /** + * + * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; + * * @return The inputUrl. */ public java.lang.String getInputUrl() { java.lang.Object ref = inputUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUrl_ = s; return s; @@ -1414,21 +1618,22 @@ public java.lang.String getInputUrl() { } } /** + * + * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; + * * @return The bytes for inputUrl. */ - public com.google.protobuf.ByteString - getInputUrlBytes() { + public com.google.protobuf.ByteString getInputUrlBytes() { java.lang.Object ref = inputUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUrl_ = b; return b; } else { @@ -1436,64 +1641,71 @@ public java.lang.String getInputUrl() { } } /** + * + * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; + * * @param value The inputUrl to set. * @return This builder for chaining. */ - public Builder setInputUrl( - java.lang.String value) { + public Builder setInputUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUrl_ = value; onChanged(); return this; } /** + * + * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; + * * @return This builder for chaining. */ public Builder clearInputUrl() { - + inputUrl_ = getDefaultInstance().getInputUrl(); onChanged(); return this; } /** + * + * *
      * The location of the import metadata file. This will be the same value as
      * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
      * 
* * string input_url = 5; + * * @param value The bytes for inputUrl to set. * @return This builder for chaining. */ - public Builder setInputUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setInputUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUrl_ = 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); } @@ -1503,12 +1715,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ImportEntitiesMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ImportEntitiesMetadata) private static final com.google.datastore.admin.v1.ImportEntitiesMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ImportEntitiesMetadata(); } @@ -1517,16 +1729,16 @@ public static com.google.datastore.admin.v1.ImportEntitiesMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportEntitiesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportEntitiesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportEntitiesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportEntitiesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1541,6 +1753,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ImportEntitiesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java index da7b82c40..6cfc8190a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ImportEntitiesMetadataOrBuilder extends +public interface ImportEntitiesMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ImportEntitiesMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ boolean hasCommon(); /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ com.google.datastore.admin.v1.CommonMetadata getCommon(); /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -35,24 +59,32 @@ public interface ImportEntitiesMetadataOrBuilder extends com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ boolean hasProgressEntities(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ com.google.datastore.admin.v1.Progress getProgressEntities(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
@@ -62,24 +94,32 @@ public interface ImportEntitiesMetadataOrBuilder extends com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuilder(); /** + * + * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return Whether the progressBytes field is set. */ boolean hasProgressBytes(); /** + * + * *
    * An estimate of the number of bytes processed.
    * 
* * .google.datastore.admin.v1.Progress progress_bytes = 3; + * * @return The progressBytes. */ com.google.datastore.admin.v1.Progress getProgressBytes(); /** + * + * *
    * An estimate of the number of bytes processed.
    * 
@@ -89,24 +129,32 @@ public interface ImportEntitiesMetadataOrBuilder extends com.google.datastore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder(); /** + * + * *
    * Description of which entities are being imported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ boolean hasEntityFilter(); /** + * + * *
    * Description of which entities are being imported.
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ com.google.datastore.admin.v1.EntityFilter getEntityFilter(); /** + * + * *
    * Description of which entities are being imported.
    * 
@@ -116,24 +164,29 @@ public interface ImportEntitiesMetadataOrBuilder extends com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuilder(); /** + * + * *
    * The location of the import metadata file. This will be the same value as
    * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    * 
* * string input_url = 5; + * * @return The inputUrl. */ java.lang.String getInputUrl(); /** + * + * *
    * The location of the import metadata file. This will be the same value as
    * the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    * 
* * string input_url = 5; + * * @return The bytes for inputUrl. */ - com.google.protobuf.ByteString - getInputUrlBytes(); + com.google.protobuf.ByteString getInputUrlBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java index 55c2743c6..71ef341ac 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequest.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ImportEntitiesRequest}
  */
-public final class ImportEntitiesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImportEntitiesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ImportEntitiesRequest)
     ImportEntitiesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImportEntitiesRequest.newBuilder() to construct.
   private ImportEntitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImportEntitiesRequest() {
     projectId_ = "";
     inputUrl_ = "";
@@ -27,16 +45,15 @@ private ImportEntitiesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImportEntitiesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImportEntitiesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,51 +73,56 @@ private ImportEntitiesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            projectId_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              projectId_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            inputUrl_ = s;
-            break;
-          }
-          case 34: {
-            com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null;
-            if (entityFilter_ != null) {
-              subBuilder = entityFilter_.toBuilder();
+              inputUrl_ = s;
+              break;
             }
-            entityFilter_ = input.readMessage(com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(entityFilter_);
-              entityFilter_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.datastore.admin.v1.EntityFilter.Builder subBuilder = null;
+              if (entityFilter_ != null) {
+                subBuilder = entityFilter_.toBuilder();
+              }
+              entityFilter_ =
+                  input.readMessage(
+                      com.google.datastore.admin.v1.EntityFilter.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(entityFilter_);
+                entityFilter_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,46 +130,50 @@ private ImportEntitiesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ImportEntitiesRequest.class, com.google.datastore.admin.v1.ImportEntitiesRequest.Builder.class);
+            com.google.datastore.admin.v1.ImportEntitiesRequest.class,
+            com.google.datastore.admin.v1.ImportEntitiesRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
+   *
+   *
    * 
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -156,29 +182,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -187,24 +213,23 @@ public java.lang.String getProjectId() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -213,28 +238,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Client-assigned labels.
    * 
@@ -242,11 +269,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Client-assigned labels.
    * 
@@ -254,16 +282,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Client-assigned labels.
    * 
@@ -271,12 +299,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -286,6 +313,8 @@ public java.lang.String getLabelsOrThrow( public static final int INPUT_URL_FIELD_NUMBER = 3; private volatile java.lang.Object inputUrl_; /** + * + * *
    * Required. The full resource URL of the external storage location. Currently, only
    * Google Cloud Storage is supported. So input_url should be of the form:
@@ -302,6 +331,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUrl. */ @java.lang.Override @@ -310,14 +340,15 @@ public java.lang.String getInputUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUrl_ = s; return s; } } /** + * + * *
    * Required. The full resource URL of the external storage location. Currently, only
    * Google Cloud Storage is supported. So input_url should be of the form:
@@ -334,16 +365,15 @@ public java.lang.String getInputUrl() {
    * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputUrlBytes() { + public com.google.protobuf.ByteString getInputUrlBytes() { java.lang.Object ref = inputUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUrl_ = b; return b; } else { @@ -354,6 +384,8 @@ public java.lang.String getInputUrl() { public static final int ENTITY_FILTER_FIELD_NUMBER = 4; private com.google.datastore.admin.v1.EntityFilter entityFilter_; /** + * + * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -362,6 +394,7 @@ public java.lang.String getInputUrl() {
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ @java.lang.Override @@ -369,6 +402,8 @@ public boolean hasEntityFilter() { return entityFilter_ != null; } /** + * + * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -377,13 +412,18 @@ public boolean hasEntityFilter() {
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ @java.lang.Override public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { - return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } /** + * + * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -399,6 +439,7 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -410,17 +451,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUrl_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputUrl_);
     }
@@ -439,22 +475,21 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUrl_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inputUrl_);
     }
     if (entityFilter_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getEntityFilter());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEntityFilter());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -464,23 +499,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.datastore.admin.v1.ImportEntitiesRequest)) {
       return super.equals(obj);
     }
-    com.google.datastore.admin.v1.ImportEntitiesRequest other = (com.google.datastore.admin.v1.ImportEntitiesRequest) obj;
+    com.google.datastore.admin.v1.ImportEntitiesRequest other =
+        (com.google.datastore.admin.v1.ImportEntitiesRequest) obj;
 
-    if (!getProjectId()
-        .equals(other.getProjectId())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
-    if (!getInputUrl()
-        .equals(other.getInputUrl())) return false;
+    if (!getProjectId().equals(other.getProjectId())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getInputUrl().equals(other.getInputUrl())) return false;
     if (hasEntityFilter() != other.hasEntityFilter()) return false;
     if (hasEntityFilter()) {
-      if (!getEntityFilter()
-          .equals(other.getEntityFilter())) return false;
+      if (!getEntityFilter().equals(other.getEntityFilter())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -511,96 +543,103 @@ public int hashCode() {
   }
 
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.admin.v1.ImportEntitiesRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.datastore.admin.v1.ImportEntitiesRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.admin.v1.ImportEntitiesRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.admin.v1.ImportEntitiesRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
@@ -608,43 +647,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.ImportEntitiesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ImportEntitiesRequest)
       com.google.datastore.admin.v1.ImportEntitiesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ImportEntitiesRequest.class, com.google.datastore.admin.v1.ImportEntitiesRequest.Builder.class);
+              com.google.datastore.admin.v1.ImportEntitiesRequest.class,
+              com.google.datastore.admin.v1.ImportEntitiesRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ImportEntitiesRequest.newBuilder()
@@ -652,16 +691,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -680,9 +718,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ImportEntitiesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -701,7 +739,8 @@ public com.google.datastore.admin.v1.ImportEntitiesRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ImportEntitiesRequest buildPartial() {
-      com.google.datastore.admin.v1.ImportEntitiesRequest result = new com.google.datastore.admin.v1.ImportEntitiesRequest(this);
+      com.google.datastore.admin.v1.ImportEntitiesRequest result =
+          new com.google.datastore.admin.v1.ImportEntitiesRequest(this);
       int from_bitField0_ = bitField0_;
       result.projectId_ = projectId_;
       result.labels_ = internalGetLabels();
@@ -720,38 +759,39 @@ public com.google.datastore.admin.v1.ImportEntitiesRequest 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.datastore.admin.v1.ImportEntitiesRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.ImportEntitiesRequest)other);
+        return mergeFrom((com.google.datastore.admin.v1.ImportEntitiesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -759,13 +799,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ImportEntitiesRequest other) {
-      if (other == com.google.datastore.admin.v1.ImportEntitiesRequest.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.ImportEntitiesRequest.getDefaultInstance())
+        return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (!other.getInputUrl().isEmpty()) {
         inputUrl_ = other.inputUrl_;
         onChanged();
@@ -792,7 +832,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.datastore.admin.v1.ImportEntitiesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.datastore.admin.v1.ImportEntitiesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -801,22 +842,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object projectId_ = "";
     /**
+     *
+     *
      * 
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -825,20 +869,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -846,75 +891,81 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. Project ID against which to make the request.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -926,28 +977,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Client-assigned labels.
      * 
@@ -955,11 +1008,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Client-assigned labels.
      * 
@@ -967,16 +1021,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Client-assigned labels.
      * 
@@ -984,12 +1039,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -997,69 +1051,68 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Client-assigned labels.
      * 
* * map<string, string> labels = 2; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object inputUrl_ = ""; /** + * + * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1076,13 +1129,13 @@ public Builder putAllLabels(
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUrl. */ public java.lang.String getInputUrl() { java.lang.Object ref = inputUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUrl_ = s; return s; @@ -1091,6 +1144,8 @@ public java.lang.String getInputUrl() { } } /** + * + * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1107,15 +1162,14 @@ public java.lang.String getInputUrl() {
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUrl. */ - public com.google.protobuf.ByteString - getInputUrlBytes() { + public com.google.protobuf.ByteString getInputUrlBytes() { java.lang.Object ref = inputUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUrl_ = b; return b; } else { @@ -1123,6 +1177,8 @@ public java.lang.String getInputUrl() { } } /** + * + * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1139,20 +1195,22 @@ public java.lang.String getInputUrl() {
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The inputUrl to set. * @return This builder for chaining. */ - public Builder setInputUrl( - java.lang.String value) { + public Builder setInputUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUrl_ = value; onChanged(); return this; } /** + * + * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1169,15 +1227,18 @@ public Builder setInputUrl(
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInputUrl() { - + inputUrl_ = getDefaultInstance().getInputUrl(); onChanged(); return this; } /** + * + * *
      * Required. The full resource URL of the external storage location. Currently, only
      * Google Cloud Storage is supported. So input_url should be of the form:
@@ -1194,16 +1255,16 @@ public Builder clearInputUrl() {
      * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for inputUrl to set. * @return This builder for chaining. */ - public Builder setInputUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setInputUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUrl_ = value; onChanged(); return this; @@ -1211,8 +1272,13 @@ public Builder setInputUrlBytes( private com.google.datastore.admin.v1.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> entityFilterBuilder_; + com.google.datastore.admin.v1.EntityFilter, + com.google.datastore.admin.v1.EntityFilter.Builder, + com.google.datastore.admin.v1.EntityFilterOrBuilder> + entityFilterBuilder_; /** + * + * *
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1221,12 +1287,15 @@ public Builder setInputUrlBytes(
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ public boolean hasEntityFilter() { return entityFilterBuilder_ != null || entityFilter_ != null; } /** + * + * *
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1235,16 +1304,21 @@ public boolean hasEntityFilter() {
      * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ public com.google.datastore.admin.v1.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { - return entityFilter_ == null ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_; + return entityFilter_ == null + ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() + : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** + * + * *
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1268,6 +1342,8 @@ public Builder setEntityFilter(com.google.datastore.admin.v1.EntityFilter value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1289,6 +1365,8 @@ public Builder setEntityFilter(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1302,7 +1380,9 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu
       if (entityFilterBuilder_ == null) {
         if (entityFilter_ != null) {
           entityFilter_ =
-            com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_).mergeFrom(value).buildPartial();
+              com.google.datastore.admin.v1.EntityFilter.newBuilder(entityFilter_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           entityFilter_ = value;
         }
@@ -1314,6 +1394,8 @@ public Builder mergeEntityFilter(com.google.datastore.admin.v1.EntityFilter valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1335,6 +1417,8 @@ public Builder clearEntityFilter() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1345,11 +1429,13 @@ public Builder clearEntityFilter() {
      * .google.datastore.admin.v1.EntityFilter entity_filter = 4;
      */
     public com.google.datastore.admin.v1.EntityFilter.Builder getEntityFilterBuilder() {
-      
+
       onChanged();
       return getEntityFilterFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1363,11 +1449,14 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
       if (entityFilterBuilder_ != null) {
         return entityFilterBuilder_.getMessageOrBuilder();
       } else {
-        return entityFilter_ == null ?
-            com.google.datastore.admin.v1.EntityFilter.getDefaultInstance() : entityFilter_;
+        return entityFilter_ == null
+            ? com.google.datastore.admin.v1.EntityFilter.getDefaultInstance()
+            : entityFilter_;
       }
     }
     /**
+     *
+     *
      * 
      * Optionally specify which kinds/namespaces are to be imported. If provided,
      * the list must be a subset of the EntityFilter used in creating the export,
@@ -1378,21 +1467,24 @@ public com.google.datastore.admin.v1.EntityFilterOrBuilder getEntityFilterOrBuil
      * .google.datastore.admin.v1.EntityFilter entity_filter = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder> 
+            com.google.datastore.admin.v1.EntityFilter,
+            com.google.datastore.admin.v1.EntityFilter.Builder,
+            com.google.datastore.admin.v1.EntityFilterOrBuilder>
         getEntityFilterFieldBuilder() {
       if (entityFilterBuilder_ == null) {
-        entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.admin.v1.EntityFilter, com.google.datastore.admin.v1.EntityFilter.Builder, com.google.datastore.admin.v1.EntityFilterOrBuilder>(
-                getEntityFilter(),
-                getParentForChildren(),
-                isClean());
+        entityFilterBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.admin.v1.EntityFilter,
+                com.google.datastore.admin.v1.EntityFilter.Builder,
+                com.google.datastore.admin.v1.EntityFilterOrBuilder>(
+                getEntityFilter(), getParentForChildren(), isClean());
         entityFilter_ = null;
       }
       return entityFilterBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1402,12 +1494,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ImportEntitiesRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ImportEntitiesRequest)
   private static final com.google.datastore.admin.v1.ImportEntitiesRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ImportEntitiesRequest();
   }
@@ -1416,16 +1508,16 @@ public static com.google.datastore.admin.v1.ImportEntitiesRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ImportEntitiesRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ImportEntitiesRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ImportEntitiesRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ImportEntitiesRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1440,6 +1532,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.admin.v1.ImportEntitiesRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
index 7522ee60a..e3d1d782f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
+++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ImportEntitiesRequestOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/admin/v1/datastore_admin.proto
 
 package com.google.datastore.admin.v1;
 
-public interface ImportEntitiesRequestOrBuilder extends
+public interface ImportEntitiesRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ImportEntitiesRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. Project ID against which to make the request.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Client-assigned labels.
    * 
@@ -36,30 +59,31 @@ public interface ImportEntitiesRequestOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Client-assigned labels.
    * 
@@ -68,22 +92,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Client-assigned labels.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. The full resource URL of the external storage location. Currently, only
    * Google Cloud Storage is supported. So input_url should be of the form:
@@ -100,10 +126,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUrl. */ java.lang.String getInputUrl(); /** + * + * *
    * Required. The full resource URL of the external storage location. Currently, only
    * Google Cloud Storage is supported. So input_url should be of the form:
@@ -120,12 +149,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUrl. */ - com.google.protobuf.ByteString - getInputUrlBytes(); + com.google.protobuf.ByteString getInputUrlBytes(); /** + * + * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -134,10 +165,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return Whether the entityFilter field is set. */ boolean hasEntityFilter(); /** + * + * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
@@ -146,10 +180,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.datastore.admin.v1.EntityFilter entity_filter = 4; + * * @return The entityFilter. */ com.google.datastore.admin.v1.EntityFilter getEntityFilter(); /** + * + * *
    * Optionally specify which kinds/namespaces are to be imported. If provided,
    * the list must be a subset of the EntityFilter used in creating the export,
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java
rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java
index 84a90e361..74be6fcce 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.java
+++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Index.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/datastore/admin/v1/index.proto
 
 package com.google.datastore.admin.v1;
 
 /**
+ *
+ *
  * 
  * Datastore composite index definition.
  * 
* * Protobuf type {@code google.datastore.admin.v1.Index} */ -public final class Index extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Index extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.Index) IndexOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Index.newBuilder() to construct. private Index(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Index() { projectId_ = ""; indexId_ = ""; @@ -30,16 +48,15 @@ private Index() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Index(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Index( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,52 +76,61 @@ private Index( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - indexId_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + indexId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); + kind_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); - ancestor_ = rawValue; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + ancestor_ = rawValue; + break; } - properties_.add( - input.readMessage(com.google.datastore.admin.v1.Index.IndexedProperty.parser(), extensionRegistry)); - break; - } - case 56: { - int rawValue = input.readEnum(); + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + properties_.add( + input.readMessage( + com.google.datastore.admin.v1.Index.IndexedProperty.parser(), + extensionRegistry)); + break; + } + case 56: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,8 +138,7 @@ private Index( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { properties_ = java.util.Collections.unmodifiableList(properties_); @@ -122,20 +147,25 @@ private Index( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_fieldAccessorTable + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Index.class, com.google.datastore.admin.v1.Index.Builder.class); + com.google.datastore.admin.v1.Index.class, + com.google.datastore.admin.v1.Index.Builder.class); } /** + * + * *
    * For an ordered index, specifies whether each of the entity's ancestors
    * will be included.
@@ -143,9 +173,10 @@ private Index(
    *
    * Protobuf enum {@code google.datastore.admin.v1.Index.AncestorMode}
    */
-  public enum AncestorMode
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AncestorMode implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * The ancestor mode is unspecified.
      * 
@@ -154,6 +185,8 @@ public enum AncestorMode */ ANCESTOR_MODE_UNSPECIFIED(0), /** + * + * *
      * Do not include the entity's ancestors in the index.
      * 
@@ -162,6 +195,8 @@ public enum AncestorMode */ NONE(1), /** + * + * *
      * Include all the entity's ancestors in the index.
      * 
@@ -173,6 +208,8 @@ public enum AncestorMode ; /** + * + * *
      * The ancestor mode is unspecified.
      * 
@@ -181,6 +218,8 @@ public enum AncestorMode */ public static final int ANCESTOR_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not include the entity's ancestors in the index.
      * 
@@ -189,6 +228,8 @@ public enum AncestorMode */ public static final int NONE_VALUE = 1; /** + * + * *
      * Include all the entity's ancestors in the index.
      * 
@@ -197,7 +238,6 @@ public enum AncestorMode */ public static final int ALL_ANCESTORS_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -222,49 +262,49 @@ public static AncestorMode valueOf(int value) { */ public static AncestorMode forNumber(int value) { switch (value) { - case 0: return ANCESTOR_MODE_UNSPECIFIED; - case 1: return NONE; - case 2: return ALL_ANCESTORS; - default: return null; + case 0: + return ANCESTOR_MODE_UNSPECIFIED; + case 1: + return NONE; + case 2: + return ALL_ANCESTORS; + 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< - AncestorMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AncestorMode findValueByNumber(int number) { - return AncestorMode.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 AncestorMode findValueByNumber(int number) { + return AncestorMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.admin.v1.Index.getDescriptor().getEnumTypes().get(0); } private static final AncestorMode[] VALUES = values(); - public static AncestorMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AncestorMode 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; @@ -282,15 +322,18 @@ private AncestorMode(int value) { } /** + * + * *
    * The direction determines how a property is indexed.
    * 
* * Protobuf enum {@code google.datastore.admin.v1.Index.Direction} */ - public enum Direction - implements com.google.protobuf.ProtocolMessageEnum { + public enum Direction implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The direction is unspecified.
      * 
@@ -299,6 +342,8 @@ public enum Direction */ DIRECTION_UNSPECIFIED(0), /** + * + * *
      * The property's values are indexed so as to support sequencing in
      * ascending order and also query by <, >, <=, >=, and =.
@@ -308,6 +353,8 @@ public enum Direction
      */
     ASCENDING(1),
     /**
+     *
+     *
      * 
      * The property's values are indexed so as to support sequencing in
      * descending order and also query by <, >, <=, >=, and =.
@@ -320,6 +367,8 @@ public enum Direction
     ;
 
     /**
+     *
+     *
      * 
      * The direction is unspecified.
      * 
@@ -328,6 +377,8 @@ public enum Direction */ public static final int DIRECTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The property's values are indexed so as to support sequencing in
      * ascending order and also query by <, >, <=, >=, and =.
@@ -337,6 +388,8 @@ public enum Direction
      */
     public static final int ASCENDING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The property's values are indexed so as to support sequencing in
      * descending order and also query by <, >, <=, >=, and =.
@@ -346,7 +399,6 @@ public enum Direction
      */
     public static final int DESCENDING_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -371,49 +423,49 @@ public static Direction valueOf(int value) {
      */
     public static Direction forNumber(int value) {
       switch (value) {
-        case 0: return DIRECTION_UNSPECIFIED;
-        case 1: return ASCENDING;
-        case 2: return DESCENDING;
-        default: return null;
+        case 0:
+          return DIRECTION_UNSPECIFIED;
+        case 1:
+          return ASCENDING;
+        case 2:
+          return DESCENDING;
+        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<
-        Direction> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Direction findValueByNumber(int number) {
-              return Direction.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 Direction findValueByNumber(int number) {
+            return Direction.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.datastore.admin.v1.Index.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Direction[] VALUES = values();
 
-    public static Direction valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Direction 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;
@@ -431,15 +483,18 @@ private Direction(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The possible set of states of an index.
    * 
* * Protobuf enum {@code google.datastore.admin.v1.Index.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The state is unspecified.
      * 
@@ -448,6 +503,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The index is being created, and cannot be used by queries.
      * There is an active long-running operation for the index.
@@ -459,6 +516,8 @@ public enum State
      */
     CREATING(1),
     /**
+     *
+     *
      * 
      * The index is ready to be used.
      * The index is updated when writing an entity.
@@ -469,6 +528,8 @@ public enum State
      */
     READY(2),
     /**
+     *
+     *
      * 
      * The index is being deleted, and cannot be used by queries.
      * There is an active long-running operation for the index.
@@ -480,6 +541,8 @@ public enum State
      */
     DELETING(3),
     /**
+     *
+     *
      * 
      * The index was being created or deleted, but something went wrong.
      * The index cannot by used by queries.
@@ -496,6 +559,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * The state is unspecified.
      * 
@@ -504,6 +569,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The index is being created, and cannot be used by queries.
      * There is an active long-running operation for the index.
@@ -515,6 +582,8 @@ public enum State
      */
     public static final int CREATING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The index is ready to be used.
      * The index is updated when writing an entity.
@@ -525,6 +594,8 @@ public enum State
      */
     public static final int READY_VALUE = 2;
     /**
+     *
+     *
      * 
      * The index is being deleted, and cannot be used by queries.
      * There is an active long-running operation for the index.
@@ -536,6 +607,8 @@ public enum State
      */
     public static final int DELETING_VALUE = 3;
     /**
+     *
+     *
      * 
      * The index was being created or deleted, but something went wrong.
      * The index cannot by used by queries.
@@ -549,7 +622,6 @@ public enum State
      */
     public static final int ERROR_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -574,51 +646,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return CREATING;
-        case 2: return READY;
-        case 3: return DELETING;
-        case 4: return ERROR;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return CREATING;
+        case 2:
+          return READY;
+        case 3:
+          return DELETING;
+        case 4:
+          return ERROR;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    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() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.datastore.admin.v1.Index.getDescriptor().getEnumTypes().get(2);
     }
 
     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;
@@ -635,65 +709,84 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.Index.State)
   }
 
-  public interface IndexedPropertyOrBuilder extends
+  public interface IndexedPropertyOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.Index.IndexedProperty)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. The property name to index.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. The property name to index.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** + * + * *
      * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The direction. */ com.google.datastore.admin.v1.Index.Direction getDirection(); } /** + * + * *
    * A property of an index.
    * 
* * Protobuf type {@code google.datastore.admin.v1.Index.IndexedProperty} */ - public static final class IndexedProperty extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IndexedProperty extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.Index.IndexedProperty) IndexedPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IndexedProperty.newBuilder() to construct. private IndexedProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IndexedProperty() { name_ = ""; direction_ = 0; @@ -701,16 +794,15 @@ private IndexedProperty() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IndexedProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private IndexedProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -729,25 +821,27 @@ private IndexedProperty( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - direction_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + direction_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -755,34 +849,39 @@ private IndexedProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Index.IndexedProperty.class, com.google.datastore.admin.v1.Index.IndexedProperty.Builder.class); + com.google.datastore.admin.v1.Index.IndexedProperty.class, + com.google.datastore.admin.v1.Index.IndexedProperty.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. The property name to index.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -791,29 +890,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. The property name to index.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -824,31 +923,45 @@ public java.lang.String getName() { public static final int DIRECTION_FIELD_NUMBER = 2; private int direction_; /** + * + * *
      * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override public int getDirectionValue() { + @java.lang.Override + public int getDirectionValue() { return direction_; } /** + * + * *
      * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The direction. */ - @java.lang.Override public com.google.datastore.admin.v1.Index.Direction getDirection() { + @java.lang.Override + public com.google.datastore.admin.v1.Index.Direction getDirection() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.Direction result = com.google.datastore.admin.v1.Index.Direction.valueOf(direction_); + com.google.datastore.admin.v1.Index.Direction result = + com.google.datastore.admin.v1.Index.Direction.valueOf(direction_); return result == null ? com.google.datastore.admin.v1.Index.Direction.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -860,12 +973,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (direction_ != com.google.datastore.admin.v1.Index.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + if (direction_ + != com.google.datastore.admin.v1.Index.Direction.DIRECTION_UNSPECIFIED.getNumber()) { output.writeEnum(2, direction_); } unknownFields.writeTo(output); @@ -880,9 +993,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (direction_ != com.google.datastore.admin.v1.Index.Direction.DIRECTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, direction_); + if (direction_ + != com.google.datastore.admin.v1.Index.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -892,15 +1005,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.datastore.admin.v1.Index.IndexedProperty)) { return super.equals(obj); } - com.google.datastore.admin.v1.Index.IndexedProperty other = (com.google.datastore.admin.v1.Index.IndexedProperty) obj; + com.google.datastore.admin.v1.Index.IndexedProperty other = + (com.google.datastore.admin.v1.Index.IndexedProperty) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (direction_ != other.direction_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -923,87 +1036,94 @@ public int hashCode() { } public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.Index.IndexedProperty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.Index.IndexedProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Index.IndexedProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.Index.IndexedProperty prototype) { + + public static Builder newBuilder( + com.google.datastore.admin.v1.Index.IndexedProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1013,27 +1133,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A property of an index.
      * 
* * Protobuf type {@code google.datastore.admin.v1.Index.IndexedProperty} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.Index.IndexedProperty) com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Index.IndexedProperty.class, com.google.datastore.admin.v1.Index.IndexedProperty.Builder.class); + com.google.datastore.admin.v1.Index.IndexedProperty.class, + com.google.datastore.admin.v1.Index.IndexedProperty.Builder.class); } // Construct using com.google.datastore.admin.v1.Index.IndexedProperty.newBuilder() @@ -1041,16 +1166,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1062,9 +1186,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; } @java.lang.Override @@ -1083,7 +1207,8 @@ public com.google.datastore.admin.v1.Index.IndexedProperty build() { @java.lang.Override public com.google.datastore.admin.v1.Index.IndexedProperty buildPartial() { - com.google.datastore.admin.v1.Index.IndexedProperty result = new com.google.datastore.admin.v1.Index.IndexedProperty(this); + com.google.datastore.admin.v1.Index.IndexedProperty result = + new com.google.datastore.admin.v1.Index.IndexedProperty(this); result.name_ = name_; result.direction_ = direction_; onBuilt(); @@ -1094,38 +1219,41 @@ public com.google.datastore.admin.v1.Index.IndexedProperty buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.datastore.admin.v1.Index.IndexedProperty) { - return mergeFrom((com.google.datastore.admin.v1.Index.IndexedProperty)other); + return mergeFrom((com.google.datastore.admin.v1.Index.IndexedProperty) other); } else { super.mergeFrom(other); return this; @@ -1133,7 +1261,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.admin.v1.Index.IndexedProperty other) { - if (other == com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()) return this; + if (other == com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1160,7 +1289,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.datastore.admin.v1.Index.IndexedProperty) e.getUnfinishedMessage(); + parsedMessage = + (com.google.datastore.admin.v1.Index.IndexedProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1172,18 +1302,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1192,20 +1324,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1213,54 +1346,61 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. The property name to index.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1268,51 +1408,73 @@ public Builder setNameBytes( private int direction_ = 0; /** + * + * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override public int getDirectionValue() { + @java.lang.Override + public int getDirectionValue() { return direction_; } /** + * + * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ public Builder setDirectionValue(int value) { - + direction_ = value; onChanged(); return this; } /** + * + * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The direction. */ @java.lang.Override public com.google.datastore.admin.v1.Index.Direction getDirection() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.Direction result = com.google.datastore.admin.v1.Index.Direction.valueOf(direction_); + com.google.datastore.admin.v1.Index.Direction result = + com.google.datastore.admin.v1.Index.Direction.valueOf(direction_); return result == null ? com.google.datastore.admin.v1.Index.Direction.UNRECOGNIZED : result; } /** + * + * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The direction to set. * @return This builder for chaining. */ @@ -1320,25 +1482,31 @@ public Builder setDirection(com.google.datastore.admin.v1.Index.Direction value) if (value == null) { throw new NullPointerException(); } - + direction_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
        * 
* - * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearDirection() { - + direction_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1351,12 +1519,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.Index.IndexedProperty) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.Index.IndexedProperty) private static final com.google.datastore.admin.v1.Index.IndexedProperty DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.Index.IndexedProperty(); } @@ -1365,16 +1533,16 @@ public static com.google.datastore.admin.v1.Index.IndexedProperty getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndexedProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IndexedProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexedProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexedProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1389,17 +1557,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.Index.IndexedProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Output only. Project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The projectId. */ @java.lang.Override @@ -1408,29 +1578,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Output only. Project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1441,11 +1611,14 @@ public java.lang.String getProjectId() { public static final int INDEX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object indexId_; /** + * + * *
    * Output only. The resource ID of the index.
    * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexId. */ @java.lang.Override @@ -1454,29 +1627,29 @@ public java.lang.String getIndexId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; } } /** + * + * *
    * Output only. The resource ID of the index.
    * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for indexId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIndexIdBytes() { + public com.google.protobuf.ByteString getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); indexId_ = b; return b; } else { @@ -1487,11 +1660,14 @@ public java.lang.String getIndexId() { public static final int KIND_FIELD_NUMBER = 4; private volatile java.lang.Object kind_; /** + * + * *
    * Required. The entity kind to which this index applies.
    * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kind. */ @java.lang.Override @@ -1500,29 +1676,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Required. The entity kind to which this index applies.
    * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -1533,83 +1709,116 @@ public java.lang.String getKind() { public static final int ANCESTOR_FIELD_NUMBER = 5; private int ancestor_; /** + * + * *
    * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for ancestor. */ - @java.lang.Override public int getAncestorValue() { + @java.lang.Override + public int getAncestorValue() { return ancestor_; } /** + * + * *
    * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The ancestor. */ - @java.lang.Override public com.google.datastore.admin.v1.Index.AncestorMode getAncestor() { + @java.lang.Override + public com.google.datastore.admin.v1.Index.AncestorMode getAncestor() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.AncestorMode result = com.google.datastore.admin.v1.Index.AncestorMode.valueOf(ancestor_); + com.google.datastore.admin.v1.Index.AncestorMode result = + com.google.datastore.admin.v1.Index.AncestorMode.valueOf(ancestor_); return result == null ? com.google.datastore.admin.v1.Index.AncestorMode.UNRECOGNIZED : result; } public static final int PROPERTIES_FIELD_NUMBER = 6; private java.util.List properties_; /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getPropertiesList() { return properties_; } /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getPropertiesOrBuilderList() { return properties_; } /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getPropertiesCount() { return properties_.size(); } /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.datastore.admin.v1.Index.IndexedProperty getProperties(int index) { return properties_.get(index); } /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertiesOrBuilder( @@ -1620,31 +1829,45 @@ public com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertie public static final int STATE_FIELD_NUMBER = 7; private int state_; /** + * + * *
    * Output only. The state of the index.
    * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.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 state of the index.
    * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.datastore.admin.v1.Index.State getState() { + @java.lang.Override + public com.google.datastore.admin.v1.Index.State getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.State result = com.google.datastore.admin.v1.Index.State.valueOf(state_); + com.google.datastore.admin.v1.Index.State result = + com.google.datastore.admin.v1.Index.State.valueOf(state_); return result == null ? com.google.datastore.admin.v1.Index.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1656,8 +1879,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -1667,7 +1889,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kind_); } - if (ancestor_ != com.google.datastore.admin.v1.Index.AncestorMode.ANCESTOR_MODE_UNSPECIFIED.getNumber()) { + if (ancestor_ + != com.google.datastore.admin.v1.Index.AncestorMode.ANCESTOR_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(5, ancestor_); } for (int i = 0; i < properties_.size(); i++) { @@ -1694,17 +1917,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kind_); } - if (ancestor_ != com.google.datastore.admin.v1.Index.AncestorMode.ANCESTOR_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, ancestor_); + if (ancestor_ + != com.google.datastore.admin.v1.Index.AncestorMode.ANCESTOR_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, ancestor_); } for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, properties_.get(i)); } if (state_ != com.google.datastore.admin.v1.Index.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1714,22 +1935,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.datastore.admin.v1.Index)) { return super.equals(obj); } com.google.datastore.admin.v1.Index other = (com.google.datastore.admin.v1.Index) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getIndexId() - .equals(other.getIndexId())) return false; - if (!getKind() - .equals(other.getKind())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getIndexId().equals(other.getIndexId())) return false; + if (!getKind().equals(other.getKind())) return false; if (ancestor_ != other.ancestor_) return false; - if (!getPropertiesList() - .equals(other.getPropertiesList())) return false; + if (!getPropertiesList().equals(other.getPropertiesList())) return false; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1761,118 +1978,126 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.Index parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.Index parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Index parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.Index parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.datastore.admin.v1.Index parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Index parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.Index parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Index parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.Index parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Index parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.Index parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Index parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.Index parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Index parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.Index prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Datastore composite index definition.
    * 
* * Protobuf type {@code google.datastore.admin.v1.Index} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.Index) com.google.datastore.admin.v1.IndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_fieldAccessorTable + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Index.class, com.google.datastore.admin.v1.Index.Builder.class); + com.google.datastore.admin.v1.Index.class, + com.google.datastore.admin.v1.Index.Builder.class); } // Construct using com.google.datastore.admin.v1.Index.newBuilder() @@ -1880,17 +2105,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1914,9 +2139,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.IndexProto.internal_static_google_datastore_admin_v1_Index_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.IndexProto + .internal_static_google_datastore_admin_v1_Index_descriptor; } @java.lang.Override @@ -1959,38 +2184,39 @@ public com.google.datastore.admin.v1.Index 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.datastore.admin.v1.Index) { - return mergeFrom((com.google.datastore.admin.v1.Index)other); + return mergeFrom((com.google.datastore.admin.v1.Index) other); } else { super.mergeFrom(other); return this; @@ -2032,9 +2258,10 @@ public Builder mergeFrom(com.google.datastore.admin.v1.Index other) { propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000001); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -2071,22 +2298,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object projectId_ = ""; /** + * + * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -2095,20 +2325,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -2116,54 +2347,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Output only. Project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -2171,18 +2409,20 @@ public Builder setProjectIdBytes( private java.lang.Object indexId_ = ""; /** + * + * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexId. */ public java.lang.String getIndexId() { java.lang.Object ref = indexId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; @@ -2191,20 +2431,21 @@ public java.lang.String getIndexId() { } } /** + * + * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for indexId. */ - public com.google.protobuf.ByteString - getIndexIdBytes() { + public com.google.protobuf.ByteString getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); indexId_ = b; return b; } else { @@ -2212,54 +2453,61 @@ public java.lang.String getIndexId() { } } /** + * + * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The indexId to set. * @return This builder for chaining. */ - public Builder setIndexId( - java.lang.String value) { + public Builder setIndexId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + indexId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIndexId() { - + indexId_ = getDefaultInstance().getIndexId(); onChanged(); return this; } /** + * + * *
      * Output only. The resource ID of the index.
      * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for indexId to set. * @return This builder for chaining. */ - public Builder setIndexIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexId_ = value; onChanged(); return this; @@ -2267,18 +2515,20 @@ public Builder setIndexIdBytes( private java.lang.Object kind_ = ""; /** + * + * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -2287,20 +2537,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -2308,54 +2559,61 @@ public java.lang.String getKind() { } } /** + * + * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * Required. The entity kind to which this index applies.
      * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; @@ -2363,51 +2621,75 @@ public Builder setKindBytes( private int ancestor_ = 0; /** + * + * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for ancestor. */ - @java.lang.Override public int getAncestorValue() { + @java.lang.Override + public int getAncestorValue() { return ancestor_; } /** + * + * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for ancestor to set. * @return This builder for chaining. */ public Builder setAncestorValue(int value) { - + ancestor_ = value; onChanged(); return this; } /** + * + * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The ancestor. */ @java.lang.Override public com.google.datastore.admin.v1.Index.AncestorMode getAncestor() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.AncestorMode result = com.google.datastore.admin.v1.Index.AncestorMode.valueOf(ancestor_); - return result == null ? com.google.datastore.admin.v1.Index.AncestorMode.UNRECOGNIZED : result; + com.google.datastore.admin.v1.Index.AncestorMode result = + com.google.datastore.admin.v1.Index.AncestorMode.valueOf(ancestor_); + return result == null + ? com.google.datastore.admin.v1.Index.AncestorMode.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The ancestor to set. * @return This builder for chaining. */ @@ -2415,44 +2697,59 @@ public Builder setAncestor(com.google.datastore.admin.v1.Index.AncestorMode valu if (value == null) { throw new NullPointerException(); } - + ancestor_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
      * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAncestor() { - + ancestor_ = 0; onChanged(); return this; } private java.util.List properties_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - properties_ = new java.util.ArrayList(properties_); + properties_ = + new java.util.ArrayList( + properties_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index.IndexedProperty, com.google.datastore.admin.v1.Index.IndexedProperty.Builder, com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder> propertiesBuilder_; + com.google.datastore.admin.v1.Index.IndexedProperty, + com.google.datastore.admin.v1.Index.IndexedProperty.Builder, + com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder> + propertiesBuilder_; /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getPropertiesList() { if (propertiesBuilder_ == null) { @@ -2462,11 +2759,15 @@ public java.util.List getPr } } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getPropertiesCount() { if (propertiesBuilder_ == null) { @@ -2476,11 +2777,15 @@ public int getPropertiesCount() { } } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.admin.v1.Index.IndexedProperty getProperties(int index) { if (propertiesBuilder_ == null) { @@ -2490,11 +2795,15 @@ public com.google.datastore.admin.v1.Index.IndexedProperty getProperties(int ind } } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProperties( int index, com.google.datastore.admin.v1.Index.IndexedProperty value) { @@ -2511,11 +2820,15 @@ public Builder setProperties( return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProperties( int index, com.google.datastore.admin.v1.Index.IndexedProperty.Builder builderForValue) { @@ -2529,11 +2842,15 @@ public Builder setProperties( return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addProperties(com.google.datastore.admin.v1.Index.IndexedProperty value) { if (propertiesBuilder_ == null) { @@ -2549,11 +2866,15 @@ public Builder addProperties(com.google.datastore.admin.v1.Index.IndexedProperty return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addProperties( int index, com.google.datastore.admin.v1.Index.IndexedProperty value) { @@ -2570,11 +2891,15 @@ public Builder addProperties( return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addProperties( com.google.datastore.admin.v1.Index.IndexedProperty.Builder builderForValue) { @@ -2588,11 +2913,15 @@ public Builder addProperties( return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addProperties( int index, com.google.datastore.admin.v1.Index.IndexedProperty.Builder builderForValue) { @@ -2606,18 +2935,21 @@ public Builder addProperties( return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllProperties( java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -2625,11 +2957,15 @@ public Builder addAllProperties( return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProperties() { if (propertiesBuilder_ == null) { @@ -2642,11 +2978,15 @@ public Builder clearProperties() { return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { @@ -2659,39 +2999,52 @@ public Builder removeProperties(int index) { return this; } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.admin.v1.Index.IndexedProperty.Builder getPropertiesBuilder( int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); } else { + return properties_.get(index); + } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List + getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -2699,49 +3052,65 @@ public com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertie } } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.admin.v1.Index.IndexedProperty.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()); + return getPropertiesFieldBuilder() + .addBuilder(com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()); } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.admin.v1.Index.IndexedProperty.Builder addPropertiesBuilder( int index) { - return getPropertiesFieldBuilder().addBuilder( - index, com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()); + return getPropertiesFieldBuilder() + .addBuilder( + index, com.google.datastore.admin.v1.Index.IndexedProperty.getDefaultInstance()); } /** + * + * *
      * Required. An ordered sequence of property names and their index attributes.
      * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getPropertiesBuilderList() { + public java.util.List + getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index.IndexedProperty, com.google.datastore.admin.v1.Index.IndexedProperty.Builder, com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder> + com.google.datastore.admin.v1.Index.IndexedProperty, + com.google.datastore.admin.v1.Index.IndexedProperty.Builder, + com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index.IndexedProperty, com.google.datastore.admin.v1.Index.IndexedProperty.Builder, com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.admin.v1.Index.IndexedProperty, + com.google.datastore.admin.v1.Index.IndexedProperty.Builder, + com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; @@ -2749,51 +3118,73 @@ public com.google.datastore.admin.v1.Index.IndexedProperty.Builder addProperties private int state_ = 0; /** + * + * *
      * Output only. The state of the index.
      * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.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 state of the index.
      * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.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 state of the index.
      * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.datastore.admin.v1.Index.State getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.Index.State result = com.google.datastore.admin.v1.Index.State.valueOf(state_); + com.google.datastore.admin.v1.Index.State result = + com.google.datastore.admin.v1.Index.State.valueOf(state_); return result == null ? com.google.datastore.admin.v1.Index.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The state of the index.
      * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2801,28 +3192,33 @@ public Builder setState(com.google.datastore.admin.v1.Index.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The state of the index.
      * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2832,12 +3228,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.Index) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.Index) private static final com.google.datastore.admin.v1.Index DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.Index(); } @@ -2846,16 +3242,16 @@ public static com.google.datastore.admin.v1.Index getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Index parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Index(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Index parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Index(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2870,6 +3266,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.Index getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java index 9ee59a35e..d36516420 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * Metadata for Index operations.
  * 
* * Protobuf type {@code google.datastore.admin.v1.IndexOperationMetadata} */ -public final class IndexOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IndexOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.IndexOperationMetadata) IndexOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IndexOperationMetadata.newBuilder() to construct. private IndexOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IndexOperationMetadata() { indexId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IndexOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private IndexOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,52 @@ private IndexOperationMetadata( case 0: done = true; break; - case 10: { - com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; - if (common_ != null) { - subBuilder = common_.toBuilder(); - } - common_ = input.readMessage(com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(common_); - common_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.datastore.admin.v1.CommonMetadata.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); + } + common_ = + input.readMessage( + com.google.datastore.admin.v1.CommonMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.datastore.admin.v1.Progress.Builder subBuilder = null; - if (progressEntities_ != null) { - subBuilder = progressEntities_.toBuilder(); - } - progressEntities_ = input.readMessage(com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progressEntities_); - progressEntities_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.datastore.admin.v1.Progress.Builder subBuilder = null; + if (progressEntities_ != null) { + subBuilder = progressEntities_.toBuilder(); + } + progressEntities_ = + input.readMessage( + com.google.datastore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressEntities_); + progressEntities_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - indexId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + indexId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +123,39 @@ private IndexOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.IndexOperationMetadata.class, com.google.datastore.admin.v1.IndexOperationMetadata.Builder.class); + com.google.datastore.admin.v1.IndexOperationMetadata.class, + com.google.datastore.admin.v1.IndexOperationMetadata.Builder.class); } public static final int COMMON_FIELD_NUMBER = 1; private com.google.datastore.admin.v1.CommonMetadata common_; /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ @java.lang.Override @@ -134,18 +163,25 @@ public boolean hasCommon() { return common_ != null; } /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ @java.lang.Override public com.google.datastore.admin.v1.CommonMetadata getCommon() { - return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -160,11 +196,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( public static final int PROGRESS_ENTITIES_FIELD_NUMBER = 2; private com.google.datastore.admin.v1.Progress progressEntities_; /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ @java.lang.Override @@ -172,18 +211,25 @@ public boolean hasProgressEntities() { return progressEntities_ != null; } /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ @java.lang.Override public com.google.datastore.admin.v1.Progress getProgressEntities() { - return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } /** + * + * *
    * An estimate of the number of entities processed.
    * 
@@ -198,11 +244,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil public static final int INDEX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object indexId_; /** + * + * *
    * The index resource ID that this operation is acting on.
    * 
* * string index_id = 3; + * * @return The indexId. */ @java.lang.Override @@ -211,29 +260,29 @@ public java.lang.String getIndexId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; } } /** + * + * *
    * The index resource ID that this operation is acting on.
    * 
* * string index_id = 3; + * * @return The bytes for indexId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIndexIdBytes() { + public com.google.protobuf.ByteString getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); indexId_ = b; return b; } else { @@ -242,6 +291,7 @@ public java.lang.String getIndexId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +303,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 (common_ != null) { output.writeMessage(1, getCommon()); } @@ -274,12 +323,10 @@ public int getSerializedSize() { size = 0; if (common_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommon()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } if (progressEntities_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProgressEntities()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgressEntities()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, indexId_); @@ -292,25 +339,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.datastore.admin.v1.IndexOperationMetadata)) { return super.equals(obj); } - com.google.datastore.admin.v1.IndexOperationMetadata other = (com.google.datastore.admin.v1.IndexOperationMetadata) obj; + com.google.datastore.admin.v1.IndexOperationMetadata other = + (com.google.datastore.admin.v1.IndexOperationMetadata) obj; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; + if (!getCommon().equals(other.getCommon())) return false; } if (hasProgressEntities() != other.hasProgressEntities()) return false; if (hasProgressEntities()) { - if (!getProgressEntities() - .equals(other.getProgressEntities())) return false; + if (!getProgressEntities().equals(other.getProgressEntities())) return false; } - if (!getIndexId() - .equals(other.getIndexId())) return false; + if (!getIndexId().equals(other.getIndexId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +383,126 @@ public int hashCode() { } public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.IndexOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.IndexOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.IndexOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.IndexOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata for Index operations.
    * 
* * Protobuf type {@code google.datastore.admin.v1.IndexOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.IndexOperationMetadata) com.google.datastore.admin.v1.IndexOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_IndexOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.IndexOperationMetadata.class, com.google.datastore.admin.v1.IndexOperationMetadata.Builder.class); + com.google.datastore.admin.v1.IndexOperationMetadata.class, + com.google.datastore.admin.v1.IndexOperationMetadata.Builder.class); } // Construct using com.google.datastore.admin.v1.IndexOperationMetadata.newBuilder() @@ -456,16 +510,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_IndexOperationMetadata_descriptor; } @java.lang.Override @@ -508,7 +561,8 @@ public com.google.datastore.admin.v1.IndexOperationMetadata build() { @java.lang.Override public com.google.datastore.admin.v1.IndexOperationMetadata buildPartial() { - com.google.datastore.admin.v1.IndexOperationMetadata result = new com.google.datastore.admin.v1.IndexOperationMetadata(this); + com.google.datastore.admin.v1.IndexOperationMetadata result = + new com.google.datastore.admin.v1.IndexOperationMetadata(this); if (commonBuilder_ == null) { result.common_ = common_; } else { @@ -528,38 +582,39 @@ public com.google.datastore.admin.v1.IndexOperationMetadata 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.datastore.admin.v1.IndexOperationMetadata) { - return mergeFrom((com.google.datastore.admin.v1.IndexOperationMetadata)other); + return mergeFrom((com.google.datastore.admin.v1.IndexOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -567,7 +622,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.admin.v1.IndexOperationMetadata other) { - if (other == com.google.datastore.admin.v1.IndexOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.datastore.admin.v1.IndexOperationMetadata.getDefaultInstance()) + return this; if (other.hasCommon()) { mergeCommon(other.getCommon()); } @@ -597,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.datastore.admin.v1.IndexOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.datastore.admin.v1.IndexOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,34 +666,47 @@ public Builder mergeFrom( private com.google.datastore.admin.v1.CommonMetadata common_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> commonBuilder_; + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder> + commonBuilder_; /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ public boolean hasCommon() { return commonBuilder_ != null || common_ != null; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ public com.google.datastore.admin.v1.CommonMetadata getCommon() { if (commonBuilder_ == null) { - return common_ == null ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } else { return commonBuilder_.getMessage(); } } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -657,14 +727,15 @@ public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; */ - public Builder setCommon( - com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { + public Builder setCommon(com.google.datastore.admin.v1.CommonMetadata.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); onChanged(); @@ -675,6 +746,8 @@ public Builder setCommon( return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -685,7 +758,9 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { if (commonBuilder_ == null) { if (common_ != null) { common_ = - com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.CommonMetadata.newBuilder(common_) + .mergeFrom(value) + .buildPartial(); } else { common_ = value; } @@ -697,6 +772,8 @@ public Builder mergeCommon(com.google.datastore.admin.v1.CommonMetadata value) { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -715,6 +792,8 @@ public Builder clearCommon() { return this; } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -722,11 +801,13 @@ public Builder clearCommon() { * .google.datastore.admin.v1.CommonMetadata common = 1; */ public com.google.datastore.admin.v1.CommonMetadata.Builder getCommonBuilder() { - + onChanged(); return getCommonFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -737,11 +818,14 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( if (commonBuilder_ != null) { return commonBuilder_.getMessageOrBuilder(); } else { - return common_ == null ? - com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() : common_; + return common_ == null + ? com.google.datastore.admin.v1.CommonMetadata.getDefaultInstance() + : common_; } } /** + * + * *
      * Metadata common to all Datastore Admin operations.
      * 
@@ -749,14 +833,17 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( * .google.datastore.admin.v1.CommonMetadata common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder> + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.CommonMetadata, com.google.datastore.admin.v1.CommonMetadata.Builder, com.google.datastore.admin.v1.CommonMetadataOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); + commonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.CommonMetadata, + com.google.datastore.admin.v1.CommonMetadata.Builder, + com.google.datastore.admin.v1.CommonMetadataOrBuilder>( + getCommon(), getParentForChildren(), isClean()); common_ = null; } return commonBuilder_; @@ -764,34 +851,47 @@ public com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder( private com.google.datastore.admin.v1.Progress progressEntities_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> progressEntitiesBuilder_; + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> + progressEntitiesBuilder_; /** + * + * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ public boolean hasProgressEntities() { return progressEntitiesBuilder_ != null || progressEntities_ != null; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ public com.google.datastore.admin.v1.Progress getProgressEntities() { if (progressEntitiesBuilder_ == null) { - return progressEntities_ == null ? com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } else { return progressEntitiesBuilder_.getMessage(); } } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -812,6 +912,8 @@ public Builder setProgressEntities(com.google.datastore.admin.v1.Progress value) return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -830,6 +932,8 @@ public Builder setProgressEntities( return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -840,7 +944,9 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu if (progressEntitiesBuilder_ == null) { if (progressEntities_ != null) { progressEntities_ = - com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_).mergeFrom(value).buildPartial(); + com.google.datastore.admin.v1.Progress.newBuilder(progressEntities_) + .mergeFrom(value) + .buildPartial(); } else { progressEntities_ = value; } @@ -852,6 +958,8 @@ public Builder mergeProgressEntities(com.google.datastore.admin.v1.Progress valu return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -870,6 +978,8 @@ public Builder clearProgressEntities() { return this; } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -877,11 +987,13 @@ public Builder clearProgressEntities() { * .google.datastore.admin.v1.Progress progress_entities = 2; */ public com.google.datastore.admin.v1.Progress.Builder getProgressEntitiesBuilder() { - + onChanged(); return getProgressEntitiesFieldBuilder().getBuilder(); } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -892,11 +1004,14 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil if (progressEntitiesBuilder_ != null) { return progressEntitiesBuilder_.getMessageOrBuilder(); } else { - return progressEntities_ == null ? - com.google.datastore.admin.v1.Progress.getDefaultInstance() : progressEntities_; + return progressEntities_ == null + ? com.google.datastore.admin.v1.Progress.getDefaultInstance() + : progressEntities_; } } /** + * + * *
      * An estimate of the number of entities processed.
      * 
@@ -904,14 +1019,17 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil * .google.datastore.admin.v1.Progress progress_entities = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder> + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder> getProgressEntitiesFieldBuilder() { if (progressEntitiesBuilder_ == null) { - progressEntitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.Progress, com.google.datastore.admin.v1.Progress.Builder, com.google.datastore.admin.v1.ProgressOrBuilder>( - getProgressEntities(), - getParentForChildren(), - isClean()); + progressEntitiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.Progress, + com.google.datastore.admin.v1.Progress.Builder, + com.google.datastore.admin.v1.ProgressOrBuilder>( + getProgressEntities(), getParentForChildren(), isClean()); progressEntities_ = null; } return progressEntitiesBuilder_; @@ -919,18 +1037,20 @@ public com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuil private java.lang.Object indexId_ = ""; /** + * + * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; + * * @return The indexId. */ public java.lang.String getIndexId() { java.lang.Object ref = indexId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexId_ = s; return s; @@ -939,20 +1059,21 @@ public java.lang.String getIndexId() { } } /** + * + * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; + * * @return The bytes for indexId. */ - public com.google.protobuf.ByteString - getIndexIdBytes() { + public com.google.protobuf.ByteString getIndexIdBytes() { java.lang.Object ref = indexId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); indexId_ = b; return b; } else { @@ -960,61 +1081,68 @@ public java.lang.String getIndexId() { } } /** + * + * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; + * * @param value The indexId to set. * @return This builder for chaining. */ - public Builder setIndexId( - java.lang.String value) { + public Builder setIndexId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + indexId_ = value; onChanged(); return this; } /** + * + * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; + * * @return This builder for chaining. */ public Builder clearIndexId() { - + indexId_ = getDefaultInstance().getIndexId(); onChanged(); return this; } /** + * + * *
      * The index resource ID that this operation is acting on.
      * 
* * string index_id = 3; + * * @param value The bytes for indexId to set. * @return This builder for chaining. */ - public Builder setIndexIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIndexIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexId_ = 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); } @@ -1024,12 +1152,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.IndexOperationMetadata) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.IndexOperationMetadata) private static final com.google.datastore.admin.v1.IndexOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.IndexOperationMetadata(); } @@ -1038,16 +1166,16 @@ public static com.google.datastore.admin.v1.IndexOperationMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndexOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IndexOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1062,6 +1190,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.IndexOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java index 31fe8c722..9d655f967 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface IndexOperationMetadataOrBuilder extends +public interface IndexOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.IndexOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return Whether the common field is set. */ boolean hasCommon(); /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
* * .google.datastore.admin.v1.CommonMetadata common = 1; + * * @return The common. */ com.google.datastore.admin.v1.CommonMetadata getCommon(); /** + * + * *
    * Metadata common to all Datastore Admin operations.
    * 
@@ -35,24 +59,32 @@ public interface IndexOperationMetadataOrBuilder extends com.google.datastore.admin.v1.CommonMetadataOrBuilder getCommonOrBuilder(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return Whether the progressEntities field is set. */ boolean hasProgressEntities(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
* * .google.datastore.admin.v1.Progress progress_entities = 2; + * * @return The progressEntities. */ com.google.datastore.admin.v1.Progress getProgressEntities(); /** + * + * *
    * An estimate of the number of entities processed.
    * 
@@ -62,22 +94,27 @@ public interface IndexOperationMetadataOrBuilder extends com.google.datastore.admin.v1.ProgressOrBuilder getProgressEntitiesOrBuilder(); /** + * + * *
    * The index resource ID that this operation is acting on.
    * 
* * string index_id = 3; + * * @return The indexId. */ java.lang.String getIndexId(); /** + * + * *
    * The index resource ID that this operation is acting on.
    * 
* * string index_id = 3; + * * @return The bytes for indexId. */ - com.google.protobuf.ByteString - getIndexIdBytes(); + com.google.protobuf.ByteString getIndexIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java index 2830b89ab..37fca791f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexOrBuilder.java @@ -1,150 +1,219 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/index.proto package com.google.datastore.admin.v1; -public interface IndexOrBuilder extends +public interface IndexOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.Index) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Output only. Project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Output only. The resource ID of the index.
    * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexId. */ java.lang.String getIndexId(); /** + * + * *
    * Output only. The resource ID of the index.
    * 
* * string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for indexId. */ - com.google.protobuf.ByteString - getIndexIdBytes(); + com.google.protobuf.ByteString getIndexIdBytes(); /** + * + * *
    * Required. The entity kind to which this index applies.
    * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Required. The entity kind to which this index applies.
    * 
* * string kind = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
    * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for ancestor. */ int getAncestorValue(); /** + * + * *
    * Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    * 
* - * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The ancestor. */ com.google.datastore.admin.v1.Index.AncestorMode getAncestor(); /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getPropertiesList(); + java.util.List getPropertiesList(); /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.datastore.admin.v1.Index.IndexedProperty getProperties(int index); /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ int getPropertiesCount(); /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getPropertiesOrBuilderList(); /** + * + * *
    * Required. An ordered sequence of property names and their index attributes.
    * 
* - * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertiesOrBuilder( - int index); + com.google.datastore.admin.v1.Index.IndexedPropertyOrBuilder getPropertiesOrBuilder(int index); /** + * + * *
    * Output only. The state of the index.
    * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of the index.
    * 
* - * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.datastore.admin.v1.Index.State getState(); diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java new file mode 100644 index 000000000..d30a12ec7 --- /dev/null +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/IndexProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/admin/v1/index.proto + +package com.google.datastore.admin.v1; + +public final class IndexProto { + private IndexProto() {} + + 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_datastore_admin_v1_Index_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_Index_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/datastore/admin/v1/index.proto\022" + + "\031google.datastore.admin.v1\032\037google/api/f" + + "ield_behavior.proto\"\346\004\n\005Index\022\027\n\nproject" + + "_id\030\001 \001(\tB\003\340A\003\022\025\n\010index_id\030\003 \001(\tB\003\340A\003\022\021\n" + + "\004kind\030\004 \001(\tB\003\340A\002\022D\n\010ancestor\030\005 \001(\0162-.goo" + + "gle.datastore.admin.v1.Index.AncestorMod" + + "eB\003\340A\002\022I\n\nproperties\030\006 \003(\01320.google.data" + + "store.admin.v1.Index.IndexedPropertyB\003\340A" + + "\002\022:\n\005state\030\007 \001(\0162&.google.datastore.admi" + + "n.v1.Index.StateB\003\340A\003\032h\n\017IndexedProperty" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022B\n\tdirection\030\002 \001(\0162*" + + ".google.datastore.admin.v1.Index.Directi" + + "onB\003\340A\002\"J\n\014AncestorMode\022\035\n\031ANCESTOR_MODE" + + "_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\021\n\rALL_ANCESTOR" + + "S\020\002\"E\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIE" + + "D\020\000\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"P\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001" + + "\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERROR\020\004B\327\001\n" + + "\035com.google.datastore.admin.v1B\nIndexPro" + + "toP\001Z>google.golang.org/genproto/googlea" + + "pis/datastore/admin/v1;admin\252\002\037Google.Cl" + + "oud.Datastore.Admin.V1\312\002\037Google\\Cloud\\Da" + + "tastore\\Admin\\V1\352\002#Google::Cloud::Datast" + + "ore::Admin::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_datastore_admin_v1_Index_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_datastore_admin_v1_Index_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_Index_descriptor, + new java.lang.String[] { + "ProjectId", "IndexId", "Kind", "Ancestor", "Properties", "State", + }); + internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor = + internal_static_google_datastore_admin_v1_Index_descriptor.getNestedTypes().get(0); + internal_static_google_datastore_admin_v1_Index_IndexedProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_Index_IndexedProperty_descriptor, + new java.lang.String[] { + "Name", "Direction", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java index 1e76542f3..b10fa04b4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequest.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * The request for
  * [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ListIndexesRequest}
  */
-public final class ListIndexesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListIndexesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ListIndexesRequest)
     ListIndexesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListIndexesRequest.newBuilder() to construct.
   private ListIndexesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListIndexesRequest() {
     projectId_ = "";
     filter_ = "";
@@ -28,16 +46,15 @@ private ListIndexesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListIndexesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListIndexesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,36 +73,39 @@ private ListIndexesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            projectId_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 32: {
+              projectId_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 32:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              pageToken_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,34 +113,39 @@ private ListIndexesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ListIndexesRequest.class, com.google.datastore.admin.v1.ListIndexesRequest.Builder.class);
+            com.google.datastore.admin.v1.ListIndexesRequest.class,
+            com.google.datastore.admin.v1.ListIndexesRequest.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
+   *
+   *
    * 
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -129,29 +154,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -163,6 +188,7 @@ public java.lang.String getProjectId() { private volatile java.lang.Object filter_; /** * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -171,8 +197,7 @@ 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; @@ -180,16 +205,15 @@ public java.lang.String getFilter() { } /** * string filter = 3; + * * @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 { @@ -200,12 +224,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * The maximum number of items to return.  If zero, then all results will be
    * returned.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -216,11 +243,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 5; + * * @return The pageToken. */ @java.lang.Override @@ -229,29 +259,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 next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 5; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -260,6 +290,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,8 +302,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -301,8 +331,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -315,21 +344,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.datastore.admin.v1.ListIndexesRequest)) { return super.equals(obj); } - com.google.datastore.admin.v1.ListIndexesRequest other = (com.google.datastore.admin.v1.ListIndexesRequest) obj; + com.google.datastore.admin.v1.ListIndexesRequest other = + (com.google.datastore.admin.v1.ListIndexesRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -354,97 +380,104 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ListIndexesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ListIndexesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.ListIndexesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for
    * [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
@@ -452,21 +485,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.ListIndexesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ListIndexesRequest)
       com.google.datastore.admin.v1.ListIndexesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ListIndexesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ListIndexesRequest.class, com.google.datastore.admin.v1.ListIndexesRequest.Builder.class);
+              com.google.datastore.admin.v1.ListIndexesRequest.class,
+              com.google.datastore.admin.v1.ListIndexesRequest.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ListIndexesRequest.newBuilder()
@@ -474,16 +509,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -499,9 +533,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ListIndexesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -520,7 +554,8 @@ public com.google.datastore.admin.v1.ListIndexesRequest build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ListIndexesRequest buildPartial() {
-      com.google.datastore.admin.v1.ListIndexesRequest result = new com.google.datastore.admin.v1.ListIndexesRequest(this);
+      com.google.datastore.admin.v1.ListIndexesRequest result =
+          new com.google.datastore.admin.v1.ListIndexesRequest(this);
       result.projectId_ = projectId_;
       result.filter_ = filter_;
       result.pageSize_ = pageSize_;
@@ -533,38 +568,39 @@ public com.google.datastore.admin.v1.ListIndexesRequest 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.datastore.admin.v1.ListIndexesRequest) {
-        return mergeFrom((com.google.datastore.admin.v1.ListIndexesRequest)other);
+        return mergeFrom((com.google.datastore.admin.v1.ListIndexesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -572,7 +608,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ListIndexesRequest other) {
-      if (other == com.google.datastore.admin.v1.ListIndexesRequest.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.ListIndexesRequest.getDefaultInstance())
+        return this;
       if (!other.getProjectId().isEmpty()) {
         projectId_ = other.projectId_;
         onChanged();
@@ -619,18 +656,20 @@ public Builder mergeFrom(
 
     private java.lang.Object projectId_ = "";
     /**
+     *
+     *
      * 
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -639,20 +678,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -660,54 +700,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Project ID against which to make the request.
      * 
* * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -716,13 +763,13 @@ public Builder setProjectIdBytes( private java.lang.Object filter_ = ""; /** * string filter = 3; + * * @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; @@ -732,15 +779,14 @@ public java.lang.String getFilter() { } /** * string filter = 3; + * * @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 { @@ -749,54 +795,58 @@ public java.lang.String getFilter() { } /** * string filter = 3; + * * @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; } /** * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** * string filter = 3; + * * @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 maximum number of items to return.  If zero, then all results will be
      * returned.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -804,32 +854,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.  If zero, then all results will be
      * returned.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.  If zero, then all results will be
      * returned.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -837,18 +893,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -857,20 +915,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -878,61 +937,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; + * * @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 next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 5; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + 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); } @@ -942,12 +1008,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ListIndexesRequest) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ListIndexesRequest) private static final com.google.datastore.admin.v1.ListIndexesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ListIndexesRequest(); } @@ -956,16 +1022,16 @@ public static com.google.datastore.admin.v1.ListIndexesRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListIndexesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListIndexesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -980,6 +1046,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ListIndexesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java index 3035e1ffe..4fe56656a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesRequestOrBuilder.java @@ -1,72 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ListIndexesRequestOrBuilder extends +public interface ListIndexesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ListIndexesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Project ID against which to make the request.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * The maximum number of items to return.  If zero, then all results will be
    * returned.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 5; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 5; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java index 445348351..02cacc410 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponse.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * The response for
  * [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.ListIndexesResponse}
  */
-public final class ListIndexesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListIndexesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.ListIndexesResponse)
     ListIndexesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListIndexesResponse.newBuilder() to construct.
   private ListIndexesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListIndexesResponse() {
     indexes_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -27,16 +45,15 @@ private ListIndexesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListIndexesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListIndexesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,28 +73,31 @@ private ListIndexesResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              indexes_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                indexes_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              indexes_.add(
+                  input.readMessage(
+                      com.google.datastore.admin.v1.Index.parser(), extensionRegistry));
+              break;
             }
-            indexes_.add(
-                input.readMessage(com.google.datastore.admin.v1.Index.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              nextPageToken_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -85,8 +105,7 @@ private ListIndexesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         indexes_ = java.util.Collections.unmodifiableList(indexes_);
@@ -95,22 +114,27 @@ private ListIndexesResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable
+    return com.google.datastore.admin.v1.DatastoreAdminProto
+        .internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.ListIndexesResponse.class, com.google.datastore.admin.v1.ListIndexesResponse.Builder.class);
+            com.google.datastore.admin.v1.ListIndexesResponse.class,
+            com.google.datastore.admin.v1.ListIndexesResponse.Builder.class);
   }
 
   public static final int INDEXES_FIELD_NUMBER = 1;
   private java.util.List indexes_;
   /**
+   *
+   *
    * 
    * The indexes.
    * 
@@ -122,6 +146,8 @@ public java.util.List getIndexesList() { return indexes_; } /** + * + * *
    * The indexes.
    * 
@@ -129,11 +155,13 @@ public java.util.List getIndexesList() { * repeated .google.datastore.admin.v1.Index indexes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getIndexesOrBuilderList() { return indexes_; } /** + * + * *
    * The indexes.
    * 
@@ -145,6 +173,8 @@ public int getIndexesCount() { return indexes_.size(); } /** + * + * *
    * The indexes.
    * 
@@ -156,6 +186,8 @@ public com.google.datastore.admin.v1.Index getIndexes(int index) { return indexes_.get(index); } /** + * + * *
    * The indexes.
    * 
@@ -163,19 +195,21 @@ public com.google.datastore.admin.v1.Index getIndexes(int index) { * repeated .google.datastore.admin.v1.Index indexes = 1; */ @java.lang.Override - public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder( - int index) { + public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) { return indexes_.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 @@ -184,29 +218,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 { @@ -215,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +261,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 < indexes_.size(); i++) { output.writeMessage(1, indexes_.get(i)); } @@ -244,8 +278,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < indexes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, indexes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, indexes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -258,17 +291,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.datastore.admin.v1.ListIndexesResponse)) { return super.equals(obj); } - com.google.datastore.admin.v1.ListIndexesResponse other = (com.google.datastore.admin.v1.ListIndexesResponse) obj; + com.google.datastore.admin.v1.ListIndexesResponse other = + (com.google.datastore.admin.v1.ListIndexesResponse) obj; - if (!getIndexesList() - .equals(other.getIndexesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getIndexesList().equals(other.getIndexesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,96 +324,103 @@ public int hashCode() { } public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.ListIndexesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.ListIndexesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.ListIndexesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.ListIndexesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for
    * [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
@@ -389,21 +428,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.ListIndexesResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.ListIndexesResponse)
       com.google.datastore.admin.v1.ListIndexesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ListIndexesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.ListIndexesResponse.class, com.google.datastore.admin.v1.ListIndexesResponse.Builder.class);
+              com.google.datastore.admin.v1.ListIndexesResponse.class,
+              com.google.datastore.admin.v1.ListIndexesResponse.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.ListIndexesResponse.newBuilder()
@@ -411,17 +452,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getIndexesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,9 +478,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.DatastoreAdminProto
+          .internal_static_google_datastore_admin_v1_ListIndexesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -458,7 +499,8 @@ public com.google.datastore.admin.v1.ListIndexesResponse build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.ListIndexesResponse buildPartial() {
-      com.google.datastore.admin.v1.ListIndexesResponse result = new com.google.datastore.admin.v1.ListIndexesResponse(this);
+      com.google.datastore.admin.v1.ListIndexesResponse result =
+          new com.google.datastore.admin.v1.ListIndexesResponse(this);
       int from_bitField0_ = bitField0_;
       if (indexesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -478,38 +520,39 @@ public com.google.datastore.admin.v1.ListIndexesResponse 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.datastore.admin.v1.ListIndexesResponse) {
-        return mergeFrom((com.google.datastore.admin.v1.ListIndexesResponse)other);
+        return mergeFrom((com.google.datastore.admin.v1.ListIndexesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.ListIndexesResponse other) {
-      if (other == com.google.datastore.admin.v1.ListIndexesResponse.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.ListIndexesResponse.getDefaultInstance())
+        return this;
       if (indexesBuilder_ == null) {
         if (!other.indexes_.isEmpty()) {
           if (indexes_.isEmpty()) {
@@ -536,9 +580,10 @@ public Builder mergeFrom(com.google.datastore.admin.v1.ListIndexesResponse other
             indexesBuilder_ = null;
             indexes_ = other.indexes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            indexesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getIndexesFieldBuilder() : null;
+            indexesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getIndexesFieldBuilder()
+                    : null;
           } else {
             indexesBuilder_.addAllMessages(other.indexes_);
           }
@@ -567,7 +612,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.datastore.admin.v1.ListIndexesResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.datastore.admin.v1.ListIndexesResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -576,21 +622,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List indexes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureIndexesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         indexes_ = new java.util.ArrayList(indexes_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder> indexesBuilder_;
+            com.google.datastore.admin.v1.Index,
+            com.google.datastore.admin.v1.Index.Builder,
+            com.google.datastore.admin.v1.IndexOrBuilder>
+        indexesBuilder_;
 
     /**
+     *
+     *
      * 
      * The indexes.
      * 
@@ -605,6 +658,8 @@ public java.util.List getIndexesList() { } } /** + * + * *
      * The indexes.
      * 
@@ -619,6 +674,8 @@ public int getIndexesCount() { } } /** + * + * *
      * The indexes.
      * 
@@ -633,14 +690,15 @@ public com.google.datastore.admin.v1.Index getIndexes(int index) { } } /** + * + * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public Builder setIndexes( - int index, com.google.datastore.admin.v1.Index value) { + public Builder setIndexes(int index, com.google.datastore.admin.v1.Index value) { if (indexesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +712,8 @@ public Builder setIndexes( return this; } /** + * + * *
      * The indexes.
      * 
@@ -672,6 +732,8 @@ public Builder setIndexes( return this; } /** + * + * *
      * The indexes.
      * 
@@ -692,14 +754,15 @@ public Builder addIndexes(com.google.datastore.admin.v1.Index value) { return this; } /** + * + * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public Builder addIndexes( - int index, com.google.datastore.admin.v1.Index value) { + public Builder addIndexes(int index, com.google.datastore.admin.v1.Index value) { if (indexesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +776,15 @@ public Builder addIndexes( return this; } /** + * + * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public Builder addIndexes( - com.google.datastore.admin.v1.Index.Builder builderForValue) { + public Builder addIndexes(com.google.datastore.admin.v1.Index.Builder builderForValue) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); indexes_.add(builderForValue.build()); @@ -731,6 +795,8 @@ public Builder addIndexes( return this; } /** + * + * *
      * The indexes.
      * 
@@ -749,6 +815,8 @@ public Builder addIndexes( return this; } /** + * + * *
      * The indexes.
      * 
@@ -759,8 +827,7 @@ public Builder addAllIndexes( java.lang.Iterable values) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, indexes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexes_); onChanged(); } else { indexesBuilder_.addAllMessages(values); @@ -768,6 +835,8 @@ public Builder addAllIndexes( return this; } /** + * + * *
      * The indexes.
      * 
@@ -785,6 +854,8 @@ public Builder clearIndexes() { return this; } /** + * + * *
      * The indexes.
      * 
@@ -802,39 +873,44 @@ public Builder removeIndexes(int index) { return this; } /** + * + * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public com.google.datastore.admin.v1.Index.Builder getIndexesBuilder( - int index) { + public com.google.datastore.admin.v1.Index.Builder getIndexesBuilder(int index) { return getIndexesFieldBuilder().getBuilder(index); } /** + * + * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder( - int index) { + public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) { if (indexesBuilder_ == null) { - return indexes_.get(index); } else { + return indexes_.get(index); + } else { return indexesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public java.util.List - getIndexesOrBuilderList() { + public java.util.List + getIndexesOrBuilderList() { if (indexesBuilder_ != null) { return indexesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +918,8 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder( } } /** + * + * *
      * The indexes.
      * 
@@ -849,42 +927,47 @@ public com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder( * repeated .google.datastore.admin.v1.Index indexes = 1; */ public com.google.datastore.admin.v1.Index.Builder addIndexesBuilder() { - return getIndexesFieldBuilder().addBuilder( - com.google.datastore.admin.v1.Index.getDefaultInstance()); + return getIndexesFieldBuilder() + .addBuilder(com.google.datastore.admin.v1.Index.getDefaultInstance()); } /** + * + * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public com.google.datastore.admin.v1.Index.Builder addIndexesBuilder( - int index) { - return getIndexesFieldBuilder().addBuilder( - index, com.google.datastore.admin.v1.Index.getDefaultInstance()); + public com.google.datastore.admin.v1.Index.Builder addIndexesBuilder(int index) { + return getIndexesFieldBuilder() + .addBuilder(index, com.google.datastore.admin.v1.Index.getDefaultInstance()); } /** + * + * *
      * The indexes.
      * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - public java.util.List - getIndexesBuilderList() { + public java.util.List getIndexesBuilderList() { return getIndexesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder> + com.google.datastore.admin.v1.Index, + com.google.datastore.admin.v1.Index.Builder, + com.google.datastore.admin.v1.IndexOrBuilder> getIndexesFieldBuilder() { if (indexesBuilder_ == null) { - indexesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.admin.v1.Index, com.google.datastore.admin.v1.Index.Builder, com.google.datastore.admin.v1.IndexOrBuilder>( - indexes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + indexesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.admin.v1.Index, + com.google.datastore.admin.v1.Index.Builder, + com.google.datastore.admin.v1.IndexOrBuilder>( + indexes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); indexes_ = null; } return indexesBuilder_; @@ -892,18 +975,20 @@ public com.google.datastore.admin.v1.Index.Builder addIndexesBuilder( 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; @@ -912,20 +997,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 { @@ -933,61 +1019,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); } @@ -997,12 +1090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.ListIndexesResponse) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.ListIndexesResponse) private static final com.google.datastore.admin.v1.ListIndexesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.ListIndexesResponse(); } @@ -1011,16 +1104,16 @@ public static com.google.datastore.admin.v1.ListIndexesResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListIndexesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListIndexesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1035,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.ListIndexesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java index 696b17066..e3fb1989e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ListIndexesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ListIndexesResponseOrBuilder extends +public interface ListIndexesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.ListIndexesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The indexes.
    * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - java.util.List - getIndexesList(); + java.util.List getIndexesList(); /** + * + * *
    * The indexes.
    * 
@@ -25,6 +44,8 @@ public interface ListIndexesResponseOrBuilder extends */ com.google.datastore.admin.v1.Index getIndexes(int index); /** + * + * *
    * The indexes.
    * 
@@ -33,41 +54,48 @@ public interface ListIndexesResponseOrBuilder extends */ int getIndexesCount(); /** + * + * *
    * The indexes.
    * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - java.util.List - getIndexesOrBuilderList(); + java.util.List getIndexesOrBuilderList(); /** + * + * *
    * The indexes.
    * 
* * repeated .google.datastore.admin.v1.Index indexes = 1; */ - com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder( - int index); + com.google.datastore.admin.v1.IndexOrBuilder getIndexesOrBuilder(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/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java index 53e1ea55f..d2c8bb86e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEvent.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/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; /** + * + * *
  * An event signifying the start of a new step in a [migration from Cloud
  * Datastore to Cloud Firestore in Datastore
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent}
  */
-public final class MigrationProgressEvent extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationProgressEvent extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.MigrationProgressEvent)
     MigrationProgressEventOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationProgressEvent.newBuilder() to construct.
   private MigrationProgressEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MigrationProgressEvent() {
     step_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationProgressEvent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MigrationProgressEvent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,47 +72,69 @@ private MigrationProgressEvent(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            step_ = rawValue;
-            break;
-          }
-          case 18: {
-            com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder subBuilder = null;
-            if (stepDetailsCase_ == 2) {
-              subBuilder = ((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_).toBuilder();
-            }
-            stepDetails_ =
-                input.readMessage(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_);
-              stepDetails_ = subBuilder.buildPartial();
+              step_ = rawValue;
+              break;
             }
-            stepDetailsCase_ = 2;
-            break;
-          }
-          case 26: {
-            com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder subBuilder = null;
-            if (stepDetailsCase_ == 3) {
-              subBuilder = ((com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_).toBuilder();
+          case 18:
+            {
+              com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder
+                  subBuilder = null;
+              if (stepDetailsCase_ == 2) {
+                subBuilder =
+                    ((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)
+                            stepDetails_)
+                        .toBuilder();
+              }
+              stepDetails_ =
+                  input.readMessage(
+                      com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)
+                        stepDetails_);
+                stepDetails_ = subBuilder.buildPartial();
+              }
+              stepDetailsCase_ = 2;
+              break;
             }
-            stepDetails_ =
-                input.readMessage(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_);
-              stepDetails_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder
+                  subBuilder = null;
+              if (stepDetailsCase_ == 3) {
+                subBuilder =
+                    ((com.google.datastore.admin.v1.MigrationProgressEvent
+                                .RedirectWritesStepDetails)
+                            stepDetails_)
+                        .toBuilder();
+              }
+              stepDetails_ =
+                  input.readMessage(
+                      com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails)
+                        stepDetails_);
+                stepDetails_ = subBuilder.buildPartial();
+              }
+              stepDetailsCase_ = 3;
+              break;
             }
-            stepDetailsCase_ = 3;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,36 +142,41 @@ private MigrationProgressEvent(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.MigrationProto
+        .internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable
+    return com.google.datastore.admin.v1.MigrationProto
+        .internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.MigrationProgressEvent.class, com.google.datastore.admin.v1.MigrationProgressEvent.Builder.class);
+            com.google.datastore.admin.v1.MigrationProgressEvent.class,
+            com.google.datastore.admin.v1.MigrationProgressEvent.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Concurrency modes for transactions in Cloud Firestore.
    * 
* * Protobuf enum {@code google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode} */ - public enum ConcurrencyMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -141,6 +185,8 @@ public enum ConcurrencyMode */ CONCURRENCY_MODE_UNSPECIFIED(0), /** + * + * *
      * Pessimistic concurrency.
      * 
@@ -149,6 +195,8 @@ public enum ConcurrencyMode */ PESSIMISTIC(1), /** + * + * *
      * Optimistic concurrency.
      * 
@@ -157,6 +205,8 @@ public enum ConcurrencyMode */ OPTIMISTIC(2), /** + * + * *
      * Optimistic concurrency with entity groups.
      * 
@@ -168,6 +218,8 @@ public enum ConcurrencyMode ; /** + * + * *
      * Unspecified.
      * 
@@ -176,6 +228,8 @@ public enum ConcurrencyMode */ public static final int CONCURRENCY_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Pessimistic concurrency.
      * 
@@ -184,6 +238,8 @@ public enum ConcurrencyMode */ public static final int PESSIMISTIC_VALUE = 1; /** + * + * *
      * Optimistic concurrency.
      * 
@@ -192,6 +248,8 @@ public enum ConcurrencyMode */ public static final int OPTIMISTIC_VALUE = 2; /** + * + * *
      * Optimistic concurrency with entity groups.
      * 
@@ -200,7 +258,6 @@ public enum ConcurrencyMode */ public static final int OPTIMISTIC_WITH_ENTITY_GROUPS_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,41 +282,47 @@ public static ConcurrencyMode valueOf(int value) { */ public static ConcurrencyMode forNumber(int value) { switch (value) { - case 0: return CONCURRENCY_MODE_UNSPECIFIED; - case 1: return PESSIMISTIC; - case 2: return OPTIMISTIC; - case 3: return OPTIMISTIC_WITH_ENTITY_GROUPS; - default: return null; + case 0: + return CONCURRENCY_MODE_UNSPECIFIED; + case 1: + return PESSIMISTIC; + case 2: + return OPTIMISTIC; + case 3: + return OPTIMISTIC_WITH_ENTITY_GROUPS; + 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< - ConcurrencyMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConcurrencyMode findValueByNumber(int number) { - return ConcurrencyMode.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 ConcurrencyMode findValueByNumber(int number) { + return ConcurrencyMode.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.datastore.admin.v1.MigrationProgressEvent.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.datastore.admin.v1.MigrationProgressEvent.getDescriptor() + .getEnumTypes() + .get(0); } private static final ConcurrencyMode[] VALUES = values(); @@ -267,8 +330,7 @@ public ConcurrencyMode findValueByNumber(int number) { public static ConcurrencyMode 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; @@ -285,63 +347,74 @@ private ConcurrencyMode(int value) { // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode) } - public interface PrepareStepDetailsOrBuilder extends + public interface PrepareStepDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The concurrency mode this database will use when it reaches the
      * `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The enum numeric value on the wire for concurrencyMode. */ int getConcurrencyModeValue(); /** + * + * *
      * The concurrency mode this database will use when it reaches the
      * `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The concurrencyMode. */ com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode(); } /** + * + * *
    * Details for the `PREPARE` step.
    * 
* * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails} */ - public static final class PrepareStepDetails extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PrepareStepDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) PrepareStepDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrepareStepDetails.newBuilder() to construct. private PrepareStepDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrepareStepDetails() { concurrencyMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrepareStepDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PrepareStepDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -360,19 +433,20 @@ private PrepareStepDetails( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - concurrencyMode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + concurrencyMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -380,56 +454,75 @@ private PrepareStepDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.class, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder.class); + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.class, + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder + .class); } public static final int CONCURRENCY_MODE_FIELD_NUMBER = 1; private int concurrencyMode_; /** + * + * *
      * The concurrency mode this database will use when it reaches the
      * `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The enum numeric value on the wire for concurrencyMode. */ - @java.lang.Override public int getConcurrencyModeValue() { + @java.lang.Override + public int getConcurrencyModeValue() { return concurrencyMode_; } /** + * + * *
      * The concurrency mode this database will use when it reaches the
      * `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The concurrencyMode. */ - @java.lang.Override public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode() { + @java.lang.Override + public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode + getConcurrencyMode() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf(concurrencyMode_); - return result == null ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED : result; + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf( + concurrencyMode_); + return result == null + ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -441,9 +534,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (concurrencyMode_ != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (concurrencyMode_ + != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode + .CONCURRENCY_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, concurrencyMode_); } unknownFields.writeTo(output); @@ -455,9 +550,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (concurrencyMode_ != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, concurrencyMode_); + if (concurrencyMode_ + != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode + .CONCURRENCY_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, concurrencyMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -467,12 +564,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)) { + if (!(obj + instanceof com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)) { return super.equals(obj); } - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails other = (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) obj; + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails other = + (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) obj; if (concurrencyMode_ != other.concurrencyMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -494,87 +593,95 @@ public int hashCode() { } public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prototype) { + + public static Builder newBuilder( + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -584,44 +691,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.class, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder.class); + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.class, + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder + .class); } - // Construct using com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.newBuilder() + // Construct using + // com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -631,19 +744,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getDefaultInstanceForType() { - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + getDefaultInstanceForType() { + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance(); } @java.lang.Override public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails build() { - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails result = buildPartial(); + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -651,8 +767,10 @@ public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails b } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails buildPartial() { - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails result = new com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails(this); + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + buildPartial() { + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails result = + new com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails(this); result.concurrencyMode_ = concurrencyMode_; onBuilt(); return result; @@ -662,46 +780,54 @@ public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) { - return mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails)other); + if (other + instanceof com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) { + return mergeFrom( + (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails other) { - if (other == com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails other) { + if (other + == com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance()) return this; if (other.concurrencyMode_ != 0) { setConcurrencyModeValue(other.getConcurrencyModeValue()); } @@ -720,11 +846,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parsedMessage = null; + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) e.getUnfinishedMessage(); + parsedMessage = + (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -736,82 +865,115 @@ public Builder mergeFrom( private int concurrencyMode_ = 0; /** + * + * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The enum numeric value on the wire for concurrencyMode. */ - @java.lang.Override public int getConcurrencyModeValue() { + @java.lang.Override + public int getConcurrencyModeValue() { return concurrencyMode_; } /** + * + * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @param value The enum numeric value on the wire for concurrencyMode to set. * @return This builder for chaining. */ public Builder setConcurrencyModeValue(int value) { - + concurrencyMode_ = value; onChanged(); return this; } /** + * + * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The concurrencyMode. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode() { + public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode + getConcurrencyMode() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf(concurrencyMode_); - return result == null ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED : result; + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf( + concurrencyMode_); + return result == null + ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED + : result; } /** + * + * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @param value The concurrencyMode to set. * @return This builder for chaining. */ - public Builder setConcurrencyMode(com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode value) { + public Builder setConcurrencyMode( + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode value) { if (value == null) { throw new NullPointerException(); } - + concurrencyMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The concurrency mode this database will use when it reaches the
        * `REDIRECT_WRITES` step.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return This builder for chaining. */ public Builder clearConcurrencyMode() { - + concurrencyMode_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -824,30 +986,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) - private static final com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails DEFAULT_INSTANCE; + private static final com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails(); + DEFAULT_INSTANCE = + new com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails(); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getDefaultInstance() { + public static com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareStepDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareStepDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrepareStepDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrepareStepDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -859,67 +1024,79 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getDefaultInstanceForType() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface RedirectWritesStepDetailsOrBuilder extends + public interface RedirectWritesStepDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Ths concurrency mode for this database.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The enum numeric value on the wire for concurrencyMode. */ int getConcurrencyModeValue(); /** + * + * *
      * Ths concurrency mode for this database.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The concurrencyMode. */ com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode(); } /** + * + * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails} + * Protobuf type {@code + * google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails} */ - public static final class RedirectWritesStepDetails extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RedirectWritesStepDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) RedirectWritesStepDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RedirectWritesStepDetails.newBuilder() to construct. private RedirectWritesStepDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RedirectWritesStepDetails() { concurrencyMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RedirectWritesStepDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RedirectWritesStepDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -938,19 +1115,20 @@ private RedirectWritesStepDetails( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - concurrencyMode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + concurrencyMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -958,54 +1136,73 @@ private RedirectWritesStepDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.class, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder.class); + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.class, + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder + .class); } public static final int CONCURRENCY_MODE_FIELD_NUMBER = 1; private int concurrencyMode_; /** + * + * *
      * Ths concurrency mode for this database.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The enum numeric value on the wire for concurrencyMode. */ - @java.lang.Override public int getConcurrencyModeValue() { + @java.lang.Override + public int getConcurrencyModeValue() { return concurrencyMode_; } /** + * + * *
      * Ths concurrency mode for this database.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The concurrencyMode. */ - @java.lang.Override public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode() { + @java.lang.Override + public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode + getConcurrencyMode() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf(concurrencyMode_); - return result == null ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED : result; + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf( + concurrencyMode_); + return result == null + ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1017,9 +1214,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (concurrencyMode_ != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (concurrencyMode_ + != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode + .CONCURRENCY_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, concurrencyMode_); } unknownFields.writeTo(output); @@ -1031,9 +1230,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (concurrencyMode_ != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, concurrencyMode_); + if (concurrencyMode_ + != com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode + .CONCURRENCY_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, concurrencyMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1043,12 +1244,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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails)) { + if (!(obj + instanceof + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails)) { return super.equals(obj); } - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails other = (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) obj; + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails other = + (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) obj; if (concurrencyMode_ != other.concurrencyMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1069,88 +1273,101 @@ public int hashCode() { return hash; } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails 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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + 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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails 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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + 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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails prototype) { + + public static Builder newBuilder( + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1160,44 +1377,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails} + * Protobuf type {@code + * google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.class, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder.class); + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .class, + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .Builder.class); } - // Construct using com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.newBuilder() + // Construct using + // com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1207,19 +1432,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.MigrationProto + .internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getDefaultInstanceForType() { - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + getDefaultInstanceForType() { + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance(); } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails build() { - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails result = buildPartial(); + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + build() { + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1227,8 +1456,11 @@ public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDe } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails buildPartial() { - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails result = new com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails(this); + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + buildPartial() { + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails result = + new com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails( + this); result.concurrencyMode_ = concurrencyMode_; onBuilt(); return result; @@ -1238,46 +1470,56 @@ public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) { - return mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails)other); + if (other + instanceof + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) { + return mergeFrom( + (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails other) { - if (other == com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails other) { + if (other + == com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance()) return this; if (other.concurrencyMode_ != 0) { setConcurrencyModeValue(other.getConcurrencyModeValue()); } @@ -1296,11 +1538,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails parsedMessage = null; + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) e.getUnfinishedMessage(); + parsedMessage = + (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1312,77 +1557,110 @@ public Builder mergeFrom( private int concurrencyMode_ = 0; /** + * + * *
        * Ths concurrency mode for this database.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The enum numeric value on the wire for concurrencyMode. */ - @java.lang.Override public int getConcurrencyModeValue() { + @java.lang.Override + public int getConcurrencyModeValue() { return concurrencyMode_; } /** + * + * *
        * Ths concurrency mode for this database.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @param value The enum numeric value on the wire for concurrencyMode to set. * @return This builder for chaining. */ public Builder setConcurrencyModeValue(int value) { - + concurrencyMode_ = value; onChanged(); return this; } /** + * + * *
        * Ths concurrency mode for this database.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return The concurrencyMode. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode getConcurrencyMode() { + public com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode + getConcurrencyMode() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf(concurrencyMode_); - return result == null ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED : result; + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode result = + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.valueOf( + concurrencyMode_); + return result == null + ? com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode.UNRECOGNIZED + : result; } /** + * + * *
        * Ths concurrency mode for this database.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @param value The concurrencyMode to set. * @return This builder for chaining. */ - public Builder setConcurrencyMode(com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode value) { + public Builder setConcurrencyMode( + com.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode value) { if (value == null) { throw new NullPointerException(); } - + concurrencyMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Ths concurrency mode for this database.
        * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; + * + * * @return This builder for chaining. */ public Builder clearConcurrencyMode() { - + concurrencyMode_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1395,30 +1673,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) - private static final com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails DEFAULT_INSTANCE; + private static final com.google.datastore.admin.v1.MigrationProgressEvent + .RedirectWritesStepDetails + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails(); + DEFAULT_INSTANCE = + new com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails(); } - public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getDefaultInstance() { + public static com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RedirectWritesStepDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RedirectWritesStepDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedirectWritesStepDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RedirectWritesStepDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1430,21 +1712,24 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getDefaultInstanceForType() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int stepDetailsCase_ = 0; private java.lang.Object stepDetails_; + public enum StepDetailsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PREPARE_STEP_DETAILS(2), REDIRECT_WRITES_STEP_DETAILS(3), STEPDETAILS_NOT_SET(0); private final int value; + private StepDetailsCase(int value) { this.value = value; } @@ -1460,26 +1745,31 @@ public static StepDetailsCase valueOf(int value) { public static StepDetailsCase forNumber(int value) { switch (value) { - case 2: return PREPARE_STEP_DETAILS; - case 3: return REDIRECT_WRITES_STEP_DETAILS; - case 0: return STEPDETAILS_NOT_SET; - default: return null; + case 2: + return PREPARE_STEP_DETAILS; + case 3: + return REDIRECT_WRITES_STEP_DETAILS; + case 0: + return STEPDETAILS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public StepDetailsCase - getStepDetailsCase() { - return StepDetailsCase.forNumber( - stepDetailsCase_); + public StepDetailsCase getStepDetailsCase() { + return StepDetailsCase.forNumber(stepDetailsCase_); } public static final int STEP_FIELD_NUMBER = 1; private int step_; /** + * + * *
    * The step that is starting.
    * An event with step set to `START` indicates that the migration
@@ -1487,12 +1777,16 @@ public int getNumber() {
    * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @return The enum numeric value on the wire for step. */ - @java.lang.Override public int getStepValue() { + @java.lang.Override + public int getStepValue() { return step_; } /** + * + * *
    * The step that is starting.
    * An event with step set to `START` indicates that the migration
@@ -1500,21 +1794,29 @@ public int getNumber() {
    * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @return The step. */ - @java.lang.Override public com.google.datastore.admin.v1.MigrationStep getStep() { + @java.lang.Override + public com.google.datastore.admin.v1.MigrationStep getStep() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationStep result = com.google.datastore.admin.v1.MigrationStep.valueOf(step_); + com.google.datastore.admin.v1.MigrationStep result = + com.google.datastore.admin.v1.MigrationStep.valueOf(step_); return result == null ? com.google.datastore.admin.v1.MigrationStep.UNRECOGNIZED : result; } public static final int PREPARE_STEP_DETAILS_FIELD_NUMBER = 2; /** + * + * *
    * Details for the `PREPARE` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * * @return Whether the prepareStepDetails field is set. */ @java.lang.Override @@ -1522,42 +1824,60 @@ public boolean hasPrepareStepDetails() { return stepDetailsCase_ == 2; } /** + * + * *
    * Details for the `PREPARE` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * * @return The prepareStepDetails. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + getPrepareStepDetails() { if (stepDetailsCase_ == 2) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance(); } /** + * + * *
    * Details for the `PREPARE` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder + getPrepareStepDetailsOrBuilder() { if (stepDetailsCase_ == 2) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance(); } public static final int REDIRECT_WRITES_STEP_DETAILS_FIELD_NUMBER = 3; /** + * + * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * * @return Whether the redirectWritesStepDetails field is set. */ @java.lang.Override @@ -1565,36 +1885,52 @@ public boolean hasRedirectWritesStepDetails() { return stepDetailsCase_ == 3; } /** + * + * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * * @return The redirectWritesStepDetails. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getRedirectWritesStepDetails() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + getRedirectWritesStepDetails() { if (stepDetailsCase_ == 3) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance(); } /** + * + * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder getRedirectWritesStepDetailsOrBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder + getRedirectWritesStepDetailsOrBuilder() { if (stepDetailsCase_ == 3) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1606,16 +1942,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (step_ != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (step_ + != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { output.writeEnum(1, step_); } if (stepDetailsCase_ == 2) { - output.writeMessage(2, (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_); + output.writeMessage( + 2, + (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_); } if (stepDetailsCase_ == 3) { - output.writeMessage(3, (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_); + output.writeMessage( + 3, + (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + stepDetails_); } unknownFields.writeTo(output); } @@ -1626,17 +1967,23 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (step_ != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, step_); + if (step_ + != com.google.datastore.admin.v1.MigrationStep.MIGRATION_STEP_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, step_); } if (stepDetailsCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) + stepDetails_); } if (stepDetailsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + stepDetails_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1646,23 +1993,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.datastore.admin.v1.MigrationProgressEvent)) { return super.equals(obj); } - com.google.datastore.admin.v1.MigrationProgressEvent other = (com.google.datastore.admin.v1.MigrationProgressEvent) obj; + com.google.datastore.admin.v1.MigrationProgressEvent other = + (com.google.datastore.admin.v1.MigrationProgressEvent) obj; if (step_ != other.step_) return false; if (!getStepDetailsCase().equals(other.getStepDetailsCase())) return false; switch (stepDetailsCase_) { case 2: - if (!getPrepareStepDetails() - .equals(other.getPrepareStepDetails())) return false; + if (!getPrepareStepDetails().equals(other.getPrepareStepDetails())) return false; break; case 3: - if (!getRedirectWritesStepDetails() - .equals(other.getRedirectWritesStepDetails())) return false; + if (!getRedirectWritesStepDetails().equals(other.getRedirectWritesStepDetails())) + return false; break; case 0: default: @@ -1698,96 +2045,103 @@ public int hashCode() { } public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationProgressEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationProgressEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.MigrationProgressEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.MigrationProgressEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An event signifying the start of a new step in a [migration from Cloud
    * Datastore to Cloud Firestore in Datastore
@@ -1796,21 +2150,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.MigrationProgressEvent}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.MigrationProgressEvent)
       com.google.datastore.admin.v1.MigrationProgressEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.MigrationProto
+          .internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable
+      return com.google.datastore.admin.v1.MigrationProto
+          .internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.MigrationProgressEvent.class, com.google.datastore.admin.v1.MigrationProgressEvent.Builder.class);
+              com.google.datastore.admin.v1.MigrationProgressEvent.class,
+              com.google.datastore.admin.v1.MigrationProgressEvent.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.MigrationProgressEvent.newBuilder()
@@ -1818,16 +2174,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1839,9 +2194,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.MigrationProto
+          .internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor;
     }
 
     @java.lang.Override
@@ -1860,7 +2215,8 @@ public com.google.datastore.admin.v1.MigrationProgressEvent build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.MigrationProgressEvent buildPartial() {
-      com.google.datastore.admin.v1.MigrationProgressEvent result = new com.google.datastore.admin.v1.MigrationProgressEvent(this);
+      com.google.datastore.admin.v1.MigrationProgressEvent result =
+          new com.google.datastore.admin.v1.MigrationProgressEvent(this);
       result.step_ = step_;
       if (stepDetailsCase_ == 2) {
         if (prepareStepDetailsBuilder_ == null) {
@@ -1885,38 +2241,39 @@ public com.google.datastore.admin.v1.MigrationProgressEvent 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.datastore.admin.v1.MigrationProgressEvent) {
-        return mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent)other);
+        return mergeFrom((com.google.datastore.admin.v1.MigrationProgressEvent) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1924,22 +2281,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.MigrationProgressEvent other) {
-      if (other == com.google.datastore.admin.v1.MigrationProgressEvent.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.MigrationProgressEvent.getDefaultInstance())
+        return this;
       if (other.step_ != 0) {
         setStepValue(other.getStepValue());
       }
       switch (other.getStepDetailsCase()) {
-        case PREPARE_STEP_DETAILS: {
-          mergePrepareStepDetails(other.getPrepareStepDetails());
-          break;
-        }
-        case REDIRECT_WRITES_STEP_DETAILS: {
-          mergeRedirectWritesStepDetails(other.getRedirectWritesStepDetails());
-          break;
-        }
-        case STEPDETAILS_NOT_SET: {
-          break;
-        }
+        case PREPARE_STEP_DETAILS:
+          {
+            mergePrepareStepDetails(other.getPrepareStepDetails());
+            break;
+          }
+        case REDIRECT_WRITES_STEP_DETAILS:
+          {
+            mergeRedirectWritesStepDetails(other.getRedirectWritesStepDetails());
+            break;
+          }
+        case STEPDETAILS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1960,7 +2321,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.datastore.admin.v1.MigrationProgressEvent) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.datastore.admin.v1.MigrationProgressEvent) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1969,12 +2331,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int stepDetailsCase_ = 0;
     private java.lang.Object stepDetails_;
-    public StepDetailsCase
-        getStepDetailsCase() {
-      return StepDetailsCase.forNumber(
-          stepDetailsCase_);
+
+    public StepDetailsCase getStepDetailsCase() {
+      return StepDetailsCase.forNumber(stepDetailsCase_);
     }
 
     public Builder clearStepDetails() {
@@ -1984,9 +2346,10 @@ public Builder clearStepDetails() {
       return this;
     }
 
-
     private int step_ = 0;
     /**
+     *
+     *
      * 
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -1994,12 +2357,16 @@ public Builder clearStepDetails() {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @return The enum numeric value on the wire for step. */ - @java.lang.Override public int getStepValue() { + @java.lang.Override + public int getStepValue() { return step_; } /** + * + * *
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2007,16 +2374,19 @@ public Builder clearStepDetails() {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @param value The enum numeric value on the wire for step to set. * @return This builder for chaining. */ public Builder setStepValue(int value) { - + step_ = value; onChanged(); return this; } /** + * + * *
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2024,15 +2394,19 @@ public Builder setStepValue(int value) {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @return The step. */ @java.lang.Override public com.google.datastore.admin.v1.MigrationStep getStep() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationStep result = com.google.datastore.admin.v1.MigrationStep.valueOf(step_); + com.google.datastore.admin.v1.MigrationStep result = + com.google.datastore.admin.v1.MigrationStep.valueOf(step_); return result == null ? com.google.datastore.admin.v1.MigrationStep.UNRECOGNIZED : result; } /** + * + * *
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2040,6 +2414,7 @@ public com.google.datastore.admin.v1.MigrationStep getStep() {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @param value The step to set. * @return This builder for chaining. */ @@ -2047,12 +2422,14 @@ public Builder setStep(com.google.datastore.admin.v1.MigrationStep value) { if (value == null) { throw new NullPointerException(); } - + step_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The step that is starting.
      * An event with step set to `START` indicates that the migration
@@ -2060,23 +2437,32 @@ public Builder setStep(com.google.datastore.admin.v1.MigrationStep value) {
      * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @return This builder for chaining. */ public Builder clearStep() { - + step_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder> prepareStepDetailsBuilder_; + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder> + prepareStepDetailsBuilder_; /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * * @return Whether the prepareStepDetails field is set. */ @java.lang.Override @@ -2084,35 +2470,49 @@ public boolean hasPrepareStepDetails() { return stepDetailsCase_ == 2; } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * * @return The prepareStepDetails. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + getPrepareStepDetails() { if (prepareStepDetailsBuilder_ == null) { if (stepDetailsCase_ == 2) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) + stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance(); } else { if (stepDetailsCase_ == 2) { return prepareStepDetailsBuilder_.getMessage(); } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance(); } } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ - public Builder setPrepareStepDetails(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails value) { + public Builder setPrepareStepDetails( + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails value) { if (prepareStepDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2126,14 +2526,19 @@ public Builder setPrepareStepDetails(com.google.datastore.admin.v1.MigrationProg return this; } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ public Builder setPrepareStepDetails( - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder builderForValue) { + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder + builderForValue) { if (prepareStepDetailsBuilder_ == null) { stepDetails_ = builderForValue.build(); onChanged(); @@ -2144,18 +2549,29 @@ public Builder setPrepareStepDetails( return this; } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ - public Builder mergePrepareStepDetails(com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails value) { + public Builder mergePrepareStepDetails( + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails value) { if (prepareStepDetailsBuilder_ == null) { - if (stepDetailsCase_ == 2 && - stepDetails_ != com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance()) { - stepDetails_ = com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.newBuilder((com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_) - .mergeFrom(value).buildPartial(); + if (stepDetailsCase_ == 2 + && stepDetails_ + != com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance()) { + stepDetails_ = + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.newBuilder( + (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) + stepDetails_) + .mergeFrom(value) + .buildPartial(); } else { stepDetails_ = value; } @@ -2171,11 +2587,15 @@ public Builder mergePrepareStepDetails(com.google.datastore.admin.v1.MigrationPr return this; } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ public Builder clearPrepareStepDetails() { if (prepareStepDetailsBuilder_ == null) { @@ -2194,67 +2614,100 @@ public Builder clearPrepareStepDetails() { return this; } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder getPrepareStepDetailsBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder + getPrepareStepDetailsBuilder() { return getPrepareStepDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder + getPrepareStepDetailsOrBuilder() { if ((stepDetailsCase_ == 2) && (prepareStepDetailsBuilder_ != null)) { return prepareStepDetailsBuilder_.getMessageOrBuilder(); } else { if (stepDetailsCase_ == 2) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) + stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance(); } } /** + * + * *
      * Details for the `PREPARE` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder> + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder> getPrepareStepDetailsFieldBuilder() { if (prepareStepDetailsBuilder_ == null) { if (!(stepDetailsCase_ == 2)) { - stepDetails_ = com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.getDefaultInstance(); + stepDetails_ = + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails + .getDefaultInstance(); } - prepareStepDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder>( - (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) stepDetails_, + prepareStepDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails, + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.Builder, + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder>( + (com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails) + stepDetails_, getParentForChildren(), isClean()); stepDetails_ = null; } stepDetailsCase_ = 2; - onChanged();; + onChanged(); + ; return prepareStepDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder> redirectWritesStepDetailsBuilder_; + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder> + redirectWritesStepDetailsBuilder_; /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * * @return Whether the redirectWritesStepDetails field is set. */ @java.lang.Override @@ -2262,35 +2715,49 @@ public boolean hasRedirectWritesStepDetails() { return stepDetailsCase_ == 3; } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * * @return The redirectWritesStepDetails. */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getRedirectWritesStepDetails() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + getRedirectWritesStepDetails() { if (redirectWritesStepDetailsBuilder_ == null) { if (stepDetailsCase_ == 3) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance(); } else { if (stepDetailsCase_ == 3) { return redirectWritesStepDetailsBuilder_.getMessage(); } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance(); } } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ - public Builder setRedirectWritesStepDetails(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails value) { + public Builder setRedirectWritesStepDetails( + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails value) { if (redirectWritesStepDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2304,14 +2771,19 @@ public Builder setRedirectWritesStepDetails(com.google.datastore.admin.v1.Migrat return this; } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ public Builder setRedirectWritesStepDetails( - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder builderForValue) { + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder + builderForValue) { if (redirectWritesStepDetailsBuilder_ == null) { stepDetails_ = builderForValue.build(); onChanged(); @@ -2322,18 +2794,31 @@ public Builder setRedirectWritesStepDetails( return this; } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ - public Builder mergeRedirectWritesStepDetails(com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails value) { + public Builder mergeRedirectWritesStepDetails( + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails value) { if (redirectWritesStepDetailsBuilder_ == null) { - if (stepDetailsCase_ == 3 && - stepDetails_ != com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance()) { - stepDetails_ = com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.newBuilder((com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_) - .mergeFrom(value).buildPartial(); + if (stepDetailsCase_ == 3 + && stepDetails_ + != com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance()) { + stepDetails_ = + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .newBuilder( + (com.google.datastore.admin.v1.MigrationProgressEvent + .RedirectWritesStepDetails) + stepDetails_) + .mergeFrom(value) + .buildPartial(); } else { stepDetails_ = value; } @@ -2349,11 +2834,15 @@ public Builder mergeRedirectWritesStepDetails(com.google.datastore.admin.v1.Migr return this; } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ public Builder clearRedirectWritesStepDetails() { if (redirectWritesStepDetailsBuilder_ == null) { @@ -2372,61 +2861,88 @@ public Builder clearRedirectWritesStepDetails() { return this; } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder getRedirectWritesStepDetailsBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder + getRedirectWritesStepDetailsBuilder() { return getRedirectWritesStepDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ @java.lang.Override - public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder getRedirectWritesStepDetailsOrBuilder() { + public com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder + getRedirectWritesStepDetailsOrBuilder() { if ((stepDetailsCase_ == 3) && (redirectWritesStepDetailsBuilder_ != null)) { return redirectWritesStepDetailsBuilder_.getMessageOrBuilder(); } else { if (stepDetailsCase_ == 3) { - return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_; + return (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + stepDetails_; } - return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); + return com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance(); } } /** + * + * *
      * Details for the `REDIRECT_WRITES` step.
      * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder> + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder> getRedirectWritesStepDetailsFieldBuilder() { if (redirectWritesStepDetailsBuilder_ == null) { if (!(stepDetailsCase_ == 3)) { - stepDetails_ = com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.getDefaultInstance(); + stepDetails_ = + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .getDefaultInstance(); } - redirectWritesStepDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.Builder, com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder>( - (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) stepDetails_, + redirectWritesStepDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails, + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + .Builder, + com.google.datastore.admin.v1.MigrationProgressEvent + .RedirectWritesStepDetailsOrBuilder>( + (com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails) + stepDetails_, getParentForChildren(), isClean()); stepDetails_ = null; } stepDetailsCase_ = 3; - onChanged();; + onChanged(); + ; return redirectWritesStepDetailsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2436,12 +2952,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.MigrationProgressEvent) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.MigrationProgressEvent) private static final com.google.datastore.admin.v1.MigrationProgressEvent DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.MigrationProgressEvent(); } @@ -2450,16 +2966,16 @@ public static com.google.datastore.admin.v1.MigrationProgressEvent getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationProgressEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MigrationProgressEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationProgressEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrationProgressEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2474,6 +2990,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.MigrationProgressEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java index fa0727538..4660304ea 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProgressEventOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; -public interface MigrationProgressEventOrBuilder extends +public interface MigrationProgressEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.MigrationProgressEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The step that is starting.
    * An event with step set to `START` indicates that the migration
@@ -15,10 +33,13 @@ public interface MigrationProgressEventOrBuilder extends
    * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @return The enum numeric value on the wire for step. */ int getStepValue(); /** + * + * *
    * The step that is starting.
    * An event with step set to `START` indicates that the migration
@@ -26,63 +47,95 @@ public interface MigrationProgressEventOrBuilder extends
    * 
* * .google.datastore.admin.v1.MigrationStep step = 1; + * * @return The step. */ com.google.datastore.admin.v1.MigrationStep getStep(); /** + * + * *
    * Details for the `PREPARE` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * * @return Whether the prepareStepDetails field is set. */ boolean hasPrepareStepDetails(); /** + * + * *
    * Details for the `PREPARE` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * * @return The prepareStepDetails. */ com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails(); /** + * + * *
    * Details for the `PREPARE` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * + * .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; + * */ - com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder(); + com.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsOrBuilder + getPrepareStepDetailsOrBuilder(); /** + * + * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * * @return Whether the redirectWritesStepDetails field is set. */ boolean hasRedirectWritesStepDetails(); /** + * + * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * * @return The redirectWritesStepDetails. */ - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails getRedirectWritesStepDetails(); + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails + getRedirectWritesStepDetails(); /** + * + * *
    * Details for the `REDIRECT_WRITES` step.
    * 
* - * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * + * .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; + * */ - com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder getRedirectWritesStepDetailsOrBuilder(); + com.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder + getRedirectWritesStepDetailsOrBuilder(); public com.google.datastore.admin.v1.MigrationProgressEvent.StepDetailsCase getStepDetailsCase(); } diff --git a/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java new file mode 100644 index 000000000..97561eebd --- /dev/null +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationProto.java @@ -0,0 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/admin/v1/migration.proto + +package com.google.datastore.admin.v1; + +public final class MigrationProto { + private MigrationProto() {} + + 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_datastore_admin_v1_MigrationStateEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/datastore/admin/v1/migration.pr" + + "oto\022\031google.datastore.admin.v1\"O\n\023Migrat" + + "ionStateEvent\0228\n\005state\030\001 \001(\0162).google.da" + + "tastore.admin.v1.MigrationState\"\241\005\n\026Migr" + + "ationProgressEvent\0226\n\004step\030\001 \001(\0162(.googl" + + "e.datastore.admin.v1.MigrationStep\022d\n\024pr" + + "epare_step_details\030\002 \001(\0132D.google.datast" + + "ore.admin.v1.MigrationProgressEvent.Prep" + + "areStepDetailsH\000\022s\n\034redirect_writes_step" + + "_details\030\003 \001(\0132K.google.datastore.admin." + + "v1.MigrationProgressEvent.RedirectWrites" + + "StepDetailsH\000\032q\n\022PrepareStepDetails\022[\n\020c" + + "oncurrency_mode\030\001 \001(\0162A.google.datastore" + + ".admin.v1.MigrationProgressEvent.Concurr" + + "encyMode\032x\n\031RedirectWritesStepDetails\022[\n" + + "\020concurrency_mode\030\001 \001(\0162A.google.datasto" + + "re.admin.v1.MigrationProgressEvent.Concu" + + "rrencyMode\"w\n\017ConcurrencyMode\022 \n\034CONCURR" + + "ENCY_MODE_UNSPECIFIED\020\000\022\017\n\013PESSIMISTIC\020\001" + + "\022\016\n\nOPTIMISTIC\020\002\022!\n\035OPTIMISTIC_WITH_ENTI" + + "TY_GROUPS\020\003B\016\n\014step_details*X\n\016Migration" + + "State\022\037\n\033MIGRATION_STATE_UNSPECIFIED\020\000\022\013" + + "\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014\n\010COMPLETE\020\003*\343\001" + + "\n\rMigrationStep\022\036\n\032MIGRATION_STEP_UNSPEC" + + "IFIED\020\000\022\013\n\007PREPARE\020\006\022\t\n\005START\020\001\022\036\n\032APPLY" + + "_WRITES_SYNCHRONOUSLY\020\007\022\023\n\017COPY_AND_VERI" + + "FY\020\002\022(\n$REDIRECT_EVENTUALLY_CONSISTENT_R" + + "EADS\020\003\022&\n\"REDIRECT_STRONGLY_CONSISTENT_R" + + "EADS\020\004\022\023\n\017REDIRECT_WRITES\020\005B\333\001\n\035com.goog" + + "le.datastore.admin.v1B\016MigrationProtoP\001Z" + + ">google.golang.org/genproto/googleapis/d" + + "atastore/admin/v1;admin\252\002\037Google.Cloud.D" + + "atastore.Admin.V1\312\002\037Google\\Cloud\\Datasto" + + "re\\Admin\\V1\352\002#Google::Cloud::Datastore::" + + "Admin::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor, + new java.lang.String[] { + "State", + }); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor, + new java.lang.String[] { + "Step", "PrepareStepDetails", "RedirectWritesStepDetails", "StepDetails", + }); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor = + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor + .getNestedTypes() + .get(0); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_MigrationProgressEvent_PrepareStepDetails_descriptor, + new java.lang.String[] { + "ConcurrencyMode", + }); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor = + internal_static_google_datastore_admin_v1_MigrationProgressEvent_descriptor + .getNestedTypes() + .get(1); + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_datastore_admin_v1_MigrationProgressEvent_RedirectWritesStepDetails_descriptor, + new java.lang.String[] { + "ConcurrencyMode", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java index fe5796d87..40a2f72db 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationState.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/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; /** + * + * *
  * States for a migration.
  * 
* * Protobuf enum {@code google.datastore.admin.v1.MigrationState} */ -public enum MigrationState - implements com.google.protobuf.ProtocolMessageEnum { +public enum MigrationState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified.
    * 
@@ -21,6 +39,8 @@ public enum MigrationState */ MIGRATION_STATE_UNSPECIFIED(0), /** + * + * *
    * The migration is running.
    * 
@@ -29,6 +49,8 @@ public enum MigrationState */ RUNNING(1), /** + * + * *
    * The migration is paused.
    * 
@@ -37,6 +59,8 @@ public enum MigrationState */ PAUSED(2), /** + * + * *
    * The migration is complete.
    * 
@@ -48,6 +72,8 @@ public enum MigrationState ; /** + * + * *
    * Unspecified.
    * 
@@ -56,6 +82,8 @@ public enum MigrationState */ public static final int MIGRATION_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The migration is running.
    * 
@@ -64,6 +92,8 @@ public enum MigrationState */ public static final int RUNNING_VALUE = 1; /** + * + * *
    * The migration is paused.
    * 
@@ -72,6 +102,8 @@ public enum MigrationState */ public static final int PAUSED_VALUE = 2; /** + * + * *
    * The migration is complete.
    * 
@@ -80,7 +112,6 @@ public enum MigrationState */ public static final int COMPLETE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,50 +136,51 @@ public static MigrationState valueOf(int value) { */ public static MigrationState forNumber(int value) { switch (value) { - case 0: return MIGRATION_STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return PAUSED; - case 3: return COMPLETE; - default: return null; + case 0: + return MIGRATION_STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return PAUSED; + case 3: + return COMPLETE; + 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< - MigrationState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MigrationState findValueByNumber(int number) { - return MigrationState.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 MigrationState findValueByNumber(int number) { + return MigrationState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.admin.v1.MigrationProto.getDescriptor().getEnumTypes().get(0); } private static final MigrationState[] VALUES = values(); - public static MigrationState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MigrationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -164,4 +196,3 @@ private MigrationState(int value) { // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.MigrationState) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java index 4d13ee85b..95e77a6fd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEvent.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/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; /** + * + * *
  * An event signifying a change in state of a [migration from Cloud Datastore to
  * Cloud Firestore in Datastore
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.datastore.admin.v1.MigrationStateEvent}
  */
-public final class MigrationStateEvent extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationStateEvent extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.MigrationStateEvent)
     MigrationStateEventOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationStateEvent.newBuilder() to construct.
   private MigrationStateEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MigrationStateEvent() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationStateEvent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MigrationStateEvent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,19 +72,20 @@ private MigrationStateEvent(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              state_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -75,54 +93,66 @@ private MigrationStateEvent(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.admin.v1.MigrationProto
+        .internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable
+    return com.google.datastore.admin.v1.MigrationProto
+        .internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.admin.v1.MigrationStateEvent.class, com.google.datastore.admin.v1.MigrationStateEvent.Builder.class);
+            com.google.datastore.admin.v1.MigrationStateEvent.class,
+            com.google.datastore.admin.v1.MigrationStateEvent.Builder.class);
   }
 
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * The new state of the migration.
    * 
* * .google.datastore.admin.v1.MigrationState 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 new state of the migration.
    * 
* * .google.datastore.admin.v1.MigrationState state = 1; + * * @return The state. */ - @java.lang.Override public com.google.datastore.admin.v1.MigrationState getState() { + @java.lang.Override + public com.google.datastore.admin.v1.MigrationState getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationState result = com.google.datastore.admin.v1.MigrationState.valueOf(state_); + com.google.datastore.admin.v1.MigrationState result = + com.google.datastore.admin.v1.MigrationState.valueOf(state_); return result == null ? com.google.datastore.admin.v1.MigrationState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,9 +164,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } unknownFields.writeTo(output); @@ -148,9 +178,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.datastore.admin.v1.MigrationState.MIGRATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -160,12 +190,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.MigrationStateEvent)) { return super.equals(obj); } - com.google.datastore.admin.v1.MigrationStateEvent other = (com.google.datastore.admin.v1.MigrationStateEvent) obj; + com.google.datastore.admin.v1.MigrationStateEvent other = + (com.google.datastore.admin.v1.MigrationStateEvent) obj; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -187,96 +218,103 @@ public int hashCode() { } public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.admin.v1.MigrationStateEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.admin.v1.MigrationStateEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.MigrationStateEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.MigrationStateEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An event signifying a change in state of a [migration from Cloud Datastore to
    * Cloud Firestore in Datastore
@@ -285,21 +323,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.admin.v1.MigrationStateEvent}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.MigrationStateEvent)
       com.google.datastore.admin.v1.MigrationStateEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.admin.v1.MigrationProto
+          .internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable
+      return com.google.datastore.admin.v1.MigrationProto
+          .internal_static_google_datastore_admin_v1_MigrationStateEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.admin.v1.MigrationStateEvent.class, com.google.datastore.admin.v1.MigrationStateEvent.Builder.class);
+              com.google.datastore.admin.v1.MigrationStateEvent.class,
+              com.google.datastore.admin.v1.MigrationStateEvent.Builder.class);
     }
 
     // Construct using com.google.datastore.admin.v1.MigrationStateEvent.newBuilder()
@@ -307,16 +347,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -326,9 +365,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.admin.v1.MigrationProto.internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.admin.v1.MigrationProto
+          .internal_static_google_datastore_admin_v1_MigrationStateEvent_descriptor;
     }
 
     @java.lang.Override
@@ -347,7 +386,8 @@ public com.google.datastore.admin.v1.MigrationStateEvent build() {
 
     @java.lang.Override
     public com.google.datastore.admin.v1.MigrationStateEvent buildPartial() {
-      com.google.datastore.admin.v1.MigrationStateEvent result = new com.google.datastore.admin.v1.MigrationStateEvent(this);
+      com.google.datastore.admin.v1.MigrationStateEvent result =
+          new com.google.datastore.admin.v1.MigrationStateEvent(this);
       result.state_ = state_;
       onBuilt();
       return result;
@@ -357,38 +397,39 @@ public com.google.datastore.admin.v1.MigrationStateEvent 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.datastore.admin.v1.MigrationStateEvent) {
-        return mergeFrom((com.google.datastore.admin.v1.MigrationStateEvent)other);
+        return mergeFrom((com.google.datastore.admin.v1.MigrationStateEvent) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -396,7 +437,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.datastore.admin.v1.MigrationStateEvent other) {
-      if (other == com.google.datastore.admin.v1.MigrationStateEvent.getDefaultInstance()) return this;
+      if (other == com.google.datastore.admin.v1.MigrationStateEvent.getDefaultInstance())
+        return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -419,7 +461,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.datastore.admin.v1.MigrationStateEvent) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.datastore.admin.v1.MigrationStateEvent) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -431,51 +474,65 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState 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 new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState 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 new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState state = 1; + * * @return The state. */ @java.lang.Override public com.google.datastore.admin.v1.MigrationState getState() { @SuppressWarnings("deprecation") - com.google.datastore.admin.v1.MigrationState result = com.google.datastore.admin.v1.MigrationState.valueOf(state_); + com.google.datastore.admin.v1.MigrationState result = + com.google.datastore.admin.v1.MigrationState.valueOf(state_); return result == null ? com.google.datastore.admin.v1.MigrationState.UNRECOGNIZED : result; } /** + * + * *
      * The new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -483,28 +540,31 @@ public Builder setState(com.google.datastore.admin.v1.MigrationState value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The new state of the migration.
      * 
* * .google.datastore.admin.v1.MigrationState state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -514,12 +574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.MigrationStateEvent) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.MigrationStateEvent) private static final com.google.datastore.admin.v1.MigrationStateEvent DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.MigrationStateEvent(); } @@ -528,16 +588,16 @@ public static com.google.datastore.admin.v1.MigrationStateEvent getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationStateEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MigrationStateEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationStateEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrationStateEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -552,6 +612,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.MigrationStateEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java index 6a2fc1a5d..99444401b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStateEventOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; -public interface MigrationStateEventOrBuilder extends +public interface MigrationStateEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.MigrationStateEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The new state of the migration.
    * 
* * .google.datastore.admin.v1.MigrationState state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The new state of the migration.
    * 
* * .google.datastore.admin.v1.MigrationState state = 1; + * * @return The state. */ com.google.datastore.admin.v1.MigrationState getState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java index dec14bfd2..86f6eaed8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/MigrationStep.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/datastore/admin/v1/migration.proto package com.google.datastore.admin.v1; /** + * + * *
  * Steps in a migration.
  * 
* * Protobuf enum {@code google.datastore.admin.v1.MigrationStep} */ -public enum MigrationStep - implements com.google.protobuf.ProtocolMessageEnum { +public enum MigrationStep implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified.
    * 
@@ -21,6 +39,8 @@ public enum MigrationStep */ MIGRATION_STEP_UNSPECIFIED(0), /** + * + * *
    * Pre-migration: the database is prepared for migration.
    * 
@@ -29,6 +49,8 @@ public enum MigrationStep */ PREPARE(6), /** + * + * *
    * Start of migration.
    * 
@@ -37,6 +59,8 @@ public enum MigrationStep */ START(1), /** + * + * *
    * Writes are applied synchronously to at least one replica.
    * 
@@ -45,6 +69,8 @@ public enum MigrationStep */ APPLY_WRITES_SYNCHRONOUSLY(7), /** + * + * *
    * Data is copied to Cloud Firestore and then verified to match the data in
    * Cloud Datastore.
@@ -54,6 +80,8 @@ public enum MigrationStep
    */
   COPY_AND_VERIFY(2),
   /**
+   *
+   *
    * 
    * Eventually-consistent reads are redirected to Cloud Firestore.
    * 
@@ -62,6 +90,8 @@ public enum MigrationStep */ REDIRECT_EVENTUALLY_CONSISTENT_READS(3), /** + * + * *
    * Strongly-consistent reads are redirected to Cloud Firestore.
    * 
@@ -70,6 +100,8 @@ public enum MigrationStep */ REDIRECT_STRONGLY_CONSISTENT_READS(4), /** + * + * *
    * Writes are redirected to Cloud Firestore.
    * 
@@ -81,6 +113,8 @@ public enum MigrationStep ; /** + * + * *
    * Unspecified.
    * 
@@ -89,6 +123,8 @@ public enum MigrationStep */ public static final int MIGRATION_STEP_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Pre-migration: the database is prepared for migration.
    * 
@@ -97,6 +133,8 @@ public enum MigrationStep */ public static final int PREPARE_VALUE = 6; /** + * + * *
    * Start of migration.
    * 
@@ -105,6 +143,8 @@ public enum MigrationStep */ public static final int START_VALUE = 1; /** + * + * *
    * Writes are applied synchronously to at least one replica.
    * 
@@ -113,6 +153,8 @@ public enum MigrationStep */ public static final int APPLY_WRITES_SYNCHRONOUSLY_VALUE = 7; /** + * + * *
    * Data is copied to Cloud Firestore and then verified to match the data in
    * Cloud Datastore.
@@ -122,6 +164,8 @@ public enum MigrationStep
    */
   public static final int COPY_AND_VERIFY_VALUE = 2;
   /**
+   *
+   *
    * 
    * Eventually-consistent reads are redirected to Cloud Firestore.
    * 
@@ -130,6 +174,8 @@ public enum MigrationStep */ public static final int REDIRECT_EVENTUALLY_CONSISTENT_READS_VALUE = 3; /** + * + * *
    * Strongly-consistent reads are redirected to Cloud Firestore.
    * 
@@ -138,6 +184,8 @@ public enum MigrationStep */ public static final int REDIRECT_STRONGLY_CONSISTENT_READS_VALUE = 4; /** + * + * *
    * Writes are redirected to Cloud Firestore.
    * 
@@ -146,7 +194,6 @@ public enum MigrationStep */ public static final int REDIRECT_WRITES_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -171,54 +218,59 @@ public static MigrationStep valueOf(int value) { */ public static MigrationStep forNumber(int value) { switch (value) { - case 0: return MIGRATION_STEP_UNSPECIFIED; - case 6: return PREPARE; - case 1: return START; - case 7: return APPLY_WRITES_SYNCHRONOUSLY; - case 2: return COPY_AND_VERIFY; - case 3: return REDIRECT_EVENTUALLY_CONSISTENT_READS; - case 4: return REDIRECT_STRONGLY_CONSISTENT_READS; - case 5: return REDIRECT_WRITES; - default: return null; + case 0: + return MIGRATION_STEP_UNSPECIFIED; + case 6: + return PREPARE; + case 1: + return START; + case 7: + return APPLY_WRITES_SYNCHRONOUSLY; + case 2: + return COPY_AND_VERIFY; + case 3: + return REDIRECT_EVENTUALLY_CONSISTENT_READS; + case 4: + return REDIRECT_STRONGLY_CONSISTENT_READS; + case 5: + return REDIRECT_WRITES; + 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< - MigrationStep> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MigrationStep findValueByNumber(int number) { - return MigrationStep.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 MigrationStep findValueByNumber(int number) { + return MigrationStep.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.admin.v1.MigrationProto.getDescriptor().getEnumTypes().get(1); } private static final MigrationStep[] VALUES = values(); - public static MigrationStep valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MigrationStep 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; @@ -234,4 +286,3 @@ private MigrationStep(int value) { // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.MigrationStep) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java index c67276478..d1ab497e0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/OperationType.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/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * Operation types.
  * 
* * Protobuf enum {@code google.datastore.admin.v1.OperationType} */ -public enum OperationType - implements com.google.protobuf.ProtocolMessageEnum { +public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified.
    * 
@@ -21,6 +39,8 @@ public enum OperationType */ OPERATION_TYPE_UNSPECIFIED(0), /** + * + * *
    * ExportEntities.
    * 
@@ -29,6 +49,8 @@ public enum OperationType */ EXPORT_ENTITIES(1), /** + * + * *
    * ImportEntities.
    * 
@@ -37,6 +59,8 @@ public enum OperationType */ IMPORT_ENTITIES(2), /** + * + * *
    * CreateIndex.
    * 
@@ -45,6 +69,8 @@ public enum OperationType */ CREATE_INDEX(3), /** + * + * *
    * DeleteIndex.
    * 
@@ -56,6 +82,8 @@ public enum OperationType ; /** + * + * *
    * Unspecified.
    * 
@@ -64,6 +92,8 @@ public enum OperationType */ public static final int OPERATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * ExportEntities.
    * 
@@ -72,6 +102,8 @@ public enum OperationType */ public static final int EXPORT_ENTITIES_VALUE = 1; /** + * + * *
    * ImportEntities.
    * 
@@ -80,6 +112,8 @@ public enum OperationType */ public static final int IMPORT_ENTITIES_VALUE = 2; /** + * + * *
    * CreateIndex.
    * 
@@ -88,6 +122,8 @@ public enum OperationType */ public static final int CREATE_INDEX_VALUE = 3; /** + * + * *
    * DeleteIndex.
    * 
@@ -96,7 +132,6 @@ public enum OperationType */ public static final int DELETE_INDEX_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -121,51 +156,53 @@ public static OperationType valueOf(int value) { */ public static OperationType forNumber(int value) { switch (value) { - case 0: return OPERATION_TYPE_UNSPECIFIED; - case 1: return EXPORT_ENTITIES; - case 2: return IMPORT_ENTITIES; - case 3: return CREATE_INDEX; - case 4: return DELETE_INDEX; - default: return null; + case 0: + return OPERATION_TYPE_UNSPECIFIED; + case 1: + return EXPORT_ENTITIES; + case 2: + return IMPORT_ENTITIES; + case 3: + return CREATE_INDEX; + case 4: + return DELETE_INDEX; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - OperationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationType findValueByNumber(int number) { - return OperationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.admin.v1.DatastoreAdminProto.getDescriptor().getEnumTypes().get(0); } private static final OperationType[] VALUES = values(); - public static OperationType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static OperationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -181,4 +218,3 @@ private OperationType(int value) { // @@protoc_insertion_point(enum_scope:google.datastore.admin.v1.OperationType) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java index d0382592c..2eeb86c5f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/Progress.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; /** + * + * *
  * Measures the progress of a particular metric.
  * 
* * Protobuf type {@code google.datastore.admin.v1.Progress} */ -public final class Progress extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Progress extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.admin.v1.Progress) ProgressOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Progress.newBuilder() to construct. private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Progress() { - } + + private Progress() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Progress(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Progress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,23 +68,23 @@ private Progress( case 0: done = true; break; - case 8: { - - workCompleted_ = input.readInt64(); - break; - } - case 16: { - - workEstimated_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + workCompleted_ = input.readInt64(); + break; + } + case 16: + { + workEstimated_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,35 +92,40 @@ private Progress( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Progress.class, com.google.datastore.admin.v1.Progress.Builder.class); + com.google.datastore.admin.v1.Progress.class, + com.google.datastore.admin.v1.Progress.Builder.class); } public static final int WORK_COMPLETED_FIELD_NUMBER = 1; private long workCompleted_; /** + * + * *
    * The amount of work that has been completed. Note that this may be greater
    * than work_estimated.
    * 
* * int64 work_completed = 1; + * * @return The workCompleted. */ @java.lang.Override @@ -115,12 +136,15 @@ public long getWorkCompleted() { public static final int WORK_ESTIMATED_FIELD_NUMBER = 2; private long workEstimated_; /** + * + * *
    * An estimate of how much work needs to be performed. May be zero if the
    * work estimate is unavailable.
    * 
* * int64 work_estimated = 2; + * * @return The workEstimated. */ @java.lang.Override @@ -129,6 +153,7 @@ public long getWorkEstimated() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +165,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (workCompleted_ != 0L) { output.writeInt64(1, workCompleted_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (workCompleted_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, workCompleted_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, workCompleted_); } if (workEstimated_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, workEstimated_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, workEstimated_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,17 +195,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.admin.v1.Progress)) { return super.equals(obj); } com.google.datastore.admin.v1.Progress other = (com.google.datastore.admin.v1.Progress) obj; - if (getWorkCompleted() - != other.getWorkCompleted()) return false; - if (getWorkEstimated() - != other.getWorkEstimated()) return false; + if (getWorkCompleted() != other.getWorkCompleted()) return false; + if (getWorkEstimated() != other.getWorkEstimated()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -196,128 +216,135 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WORK_COMPLETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWorkCompleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWorkCompleted()); hash = (37 * hash) + WORK_ESTIMATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWorkEstimated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWorkEstimated()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.datastore.admin.v1.Progress parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.admin.v1.Progress parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Progress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.Progress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Progress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.Progress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.admin.v1.Progress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.admin.v1.Progress parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Progress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.Progress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Progress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.admin.v1.Progress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.admin.v1.Progress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.admin.v1.Progress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Measures the progress of a particular metric.
    * 
* * Protobuf type {@code google.datastore.admin.v1.Progress} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.admin.v1.Progress) com.google.datastore.admin.v1.ProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.admin.v1.Progress.class, com.google.datastore.admin.v1.Progress.Builder.class); + com.google.datastore.admin.v1.Progress.class, + com.google.datastore.admin.v1.Progress.Builder.class); } // Construct using com.google.datastore.admin.v1.Progress.newBuilder() @@ -325,16 +352,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -346,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.admin.v1.DatastoreAdminProto.internal_static_google_datastore_admin_v1_Progress_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.admin.v1.DatastoreAdminProto + .internal_static_google_datastore_admin_v1_Progress_descriptor; } @java.lang.Override @@ -367,7 +393,8 @@ public com.google.datastore.admin.v1.Progress build() { @java.lang.Override public com.google.datastore.admin.v1.Progress buildPartial() { - com.google.datastore.admin.v1.Progress result = new com.google.datastore.admin.v1.Progress(this); + com.google.datastore.admin.v1.Progress result = + new com.google.datastore.admin.v1.Progress(this); result.workCompleted_ = workCompleted_; result.workEstimated_ = workEstimated_; onBuilt(); @@ -378,38 +405,39 @@ public com.google.datastore.admin.v1.Progress 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.datastore.admin.v1.Progress) { - return mergeFrom((com.google.datastore.admin.v1.Progress)other); + return mergeFrom((com.google.datastore.admin.v1.Progress) other); } else { super.mergeFrom(other); return this; @@ -453,14 +481,17 @@ public Builder mergeFrom( return this; } - private long workCompleted_ ; + private long workCompleted_; /** + * + * *
      * The amount of work that has been completed. Note that this may be greater
      * than work_estimated.
      * 
* * int64 work_completed = 1; + * * @return The workCompleted. */ @java.lang.Override @@ -468,45 +499,54 @@ public long getWorkCompleted() { return workCompleted_; } /** + * + * *
      * The amount of work that has been completed. Note that this may be greater
      * than work_estimated.
      * 
* * int64 work_completed = 1; + * * @param value The workCompleted to set. * @return This builder for chaining. */ public Builder setWorkCompleted(long value) { - + workCompleted_ = value; onChanged(); return this; } /** + * + * *
      * The amount of work that has been completed. Note that this may be greater
      * than work_estimated.
      * 
* * int64 work_completed = 1; + * * @return This builder for chaining. */ public Builder clearWorkCompleted() { - + workCompleted_ = 0L; onChanged(); return this; } - private long workEstimated_ ; + private long workEstimated_; /** + * + * *
      * An estimate of how much work needs to be performed. May be zero if the
      * work estimate is unavailable.
      * 
* * int64 work_estimated = 2; + * * @return The workEstimated. */ @java.lang.Override @@ -514,39 +554,45 @@ public long getWorkEstimated() { return workEstimated_; } /** + * + * *
      * An estimate of how much work needs to be performed. May be zero if the
      * work estimate is unavailable.
      * 
* * int64 work_estimated = 2; + * * @param value The workEstimated to set. * @return This builder for chaining. */ public Builder setWorkEstimated(long value) { - + workEstimated_ = value; onChanged(); return this; } /** + * + * *
      * An estimate of how much work needs to be performed. May be zero if the
      * work estimate is unavailable.
      * 
* * int64 work_estimated = 2; + * * @return This builder for chaining. */ public Builder clearWorkEstimated() { - + workEstimated_ = 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); } @@ -556,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.admin.v1.Progress) } // @@protoc_insertion_point(class_scope:google.datastore.admin.v1.Progress) private static final com.google.datastore.admin.v1.Progress DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.admin.v1.Progress(); } @@ -570,16 +616,16 @@ public static com.google.datastore.admin.v1.Progress getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Progress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Progress(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Progress(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.admin.v1.Progress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java rename to proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java index cccc4759f..68343d04f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java +++ b/proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/ProgressOrBuilder.java @@ -1,30 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/admin/v1/datastore_admin.proto package com.google.datastore.admin.v1; -public interface ProgressOrBuilder extends +public interface ProgressOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.admin.v1.Progress) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The amount of work that has been completed. Note that this may be greater
    * than work_estimated.
    * 
* * int64 work_completed = 1; + * * @return The workCompleted. */ long getWorkCompleted(); /** + * + * *
    * An estimate of how much work needs to be performed. May be zero if the
    * work estimate is unavailable.
    * 
* * int64 work_estimated = 2; + * * @return The workEstimated. */ long getWorkEstimated(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/datastore_admin.proto b/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/datastore_admin.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/datastore_admin.proto rename to proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/datastore_admin.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/index.proto b/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/index.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/index.proto rename to proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/index.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/migration.proto b/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/migration.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/migration.proto rename to proto-google-cloud-datastore-admin-v1/src/main/proto/google/datastore/admin/v1/migration.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java index 4a98f492b..6345bc138 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The request for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
  * 
* * Protobuf type {@code google.datastore.v1.AllocateIdsRequest} */ -public final class AllocateIdsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AllocateIdsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.AllocateIdsRequest) AllocateIdsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllocateIdsRequest.newBuilder() to construct. private AllocateIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AllocateIdsRequest() { projectId_ = ""; keys_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private AllocateIdsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AllocateIdsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AllocateIdsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,29 @@ private AllocateIdsRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keys_.add(input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; } - keys_.add( - input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + projectId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +102,7 @@ private AllocateIdsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -94,27 +111,33 @@ private AllocateIdsRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.AllocateIdsRequest.class, com.google.datastore.v1.AllocateIdsRequest.Builder.class); + com.google.datastore.v1.AllocateIdsRequest.class, + com.google.datastore.v1.AllocateIdsRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -123,29 +146,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -156,69 +179,83 @@ public java.lang.String getProjectId() { public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getKeysList() { return keys_; } /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List - getKeysOrBuilderList() { + public java.util.List getKeysOrBuilderList() { return keys_; } /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getKeysCount() { return keys_.size(); } /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.datastore.v1.Key getKeys(int index) { return keys_.get(index); } /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < keys_.size(); i++) { output.writeMessage(1, keys_.get(i)); } @@ -248,8 +284,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, keys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -262,17 +297,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.AllocateIdsRequest)) { return super.equals(obj); } - com.google.datastore.v1.AllocateIdsRequest other = (com.google.datastore.v1.AllocateIdsRequest) obj; + com.google.datastore.v1.AllocateIdsRequest other = + (com.google.datastore.v1.AllocateIdsRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getKeysList() - .equals(other.getKeysList())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getKeysList().equals(other.getKeysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,118 +329,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.AllocateIdsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.AllocateIdsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.AllocateIdsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.AllocateIdsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.AllocateIdsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.AllocateIdsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
    * 
* * Protobuf type {@code google.datastore.v1.AllocateIdsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.AllocateIdsRequest) com.google.datastore.v1.AllocateIdsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.AllocateIdsRequest.class, com.google.datastore.v1.AllocateIdsRequest.Builder.class); + com.google.datastore.v1.AllocateIdsRequest.class, + com.google.datastore.v1.AllocateIdsRequest.Builder.class); } // Construct using com.google.datastore.v1.AllocateIdsRequest.newBuilder() @@ -414,17 +457,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getKeysFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsRequest_descriptor; } @java.lang.Override @@ -461,7 +504,8 @@ public com.google.datastore.v1.AllocateIdsRequest build() { @java.lang.Override public com.google.datastore.v1.AllocateIdsRequest buildPartial() { - com.google.datastore.v1.AllocateIdsRequest result = new com.google.datastore.v1.AllocateIdsRequest(this); + com.google.datastore.v1.AllocateIdsRequest result = + new com.google.datastore.v1.AllocateIdsRequest(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; if (keysBuilder_ == null) { @@ -481,38 +525,39 @@ public com.google.datastore.v1.AllocateIdsRequest 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.datastore.v1.AllocateIdsRequest) { - return mergeFrom((com.google.datastore.v1.AllocateIdsRequest)other); + return mergeFrom((com.google.datastore.v1.AllocateIdsRequest) other); } else { super.mergeFrom(other); return this; @@ -543,9 +588,10 @@ public Builder mergeFrom(com.google.datastore.v1.AllocateIdsRequest other) { keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -579,22 +625,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -603,20 +652,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -624,78 +674,91 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } - private java.util.List keys_ = - java.util.Collections.emptyList(); + private java.util.List keys_ = java.util.Collections.emptyList(); + private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keysBuilder_; + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> + keysBuilder_; /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getKeysList() { if (keysBuilder_ == null) { @@ -705,12 +768,15 @@ public java.util.List getKeysList() { } } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getKeysCount() { if (keysBuilder_ == null) { @@ -720,12 +786,15 @@ public int getKeysCount() { } } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.v1.Key getKeys(int index) { if (keysBuilder_ == null) { @@ -735,15 +804,17 @@ public com.google.datastore.v1.Key getKeys(int index) { } } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKeys( - int index, com.google.datastore.v1.Key value) { + public Builder setKeys(int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -757,15 +828,17 @@ public Builder setKeys( return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKeys( - int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.set(index, builderForValue.build()); @@ -776,12 +849,15 @@ public Builder setKeys( return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addKeys(com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { @@ -797,15 +873,17 @@ public Builder addKeys(com.google.datastore.v1.Key value) { return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - int index, com.google.datastore.v1.Key value) { + public Builder addKeys(int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,15 +897,17 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); @@ -838,15 +918,17 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(index, builderForValue.build()); @@ -857,19 +939,20 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addAllKeys( - java.lang.Iterable values) { + public Builder addAllKeys(java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); @@ -877,12 +960,15 @@ public Builder addAllKeys( return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearKeys() { if (keysBuilder_ == null) { @@ -895,12 +981,15 @@ public Builder clearKeys() { return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeKeys(int index) { if (keysBuilder_ == null) { @@ -913,42 +1002,49 @@ public Builder removeKeys(int index) { return this; } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.Key.Builder getKeysBuilder( - int index) { + public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) { return getKeysFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { if (keysBuilder_ == null) { - return keys_.get(index); } else { + return keys_.get(index); + } else { return keysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getKeysOrBuilderList() { + public java.util.List getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { @@ -956,59 +1052,68 @@ public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( } } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.v1.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder( - com.google.datastore.v1.Key.getDefaultInstance()); + return getKeysFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance()); } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.Key.Builder addKeysBuilder( - int index) { - return getKeysFieldBuilder().addBuilder( - index, com.google.datastore.v1.Key.getDefaultInstance()); + public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) { + return getKeysFieldBuilder() + .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance()); } /** + * + * *
      * Required. A list of keys with incomplete key paths for which to allocate IDs.
      * No key may be reserved/read-only.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getKeysBuilderList() { + public java.util.List getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>( - keys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + keysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder>( + keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1018,12 +1123,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.AllocateIdsRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.AllocateIdsRequest) private static final com.google.datastore.v1.AllocateIdsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.AllocateIdsRequest(); } @@ -1032,16 +1137,16 @@ public static com.google.datastore.v1.AllocateIdsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllocateIdsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllocateIdsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllocateIdsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllocateIdsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1056,6 +1161,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.AllocateIdsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java index 116fec549..c348f5838 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java @@ -1,78 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface AllocateIdsRequestOrBuilder extends +public interface AllocateIdsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.AllocateIdsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getKeysList(); + java.util.List getKeysList(); /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.datastore.v1.Key getKeys(int index); /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getKeysCount(); /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getKeysOrBuilderList(); + java.util.List getKeysOrBuilderList(); /** + * + * *
    * Required. A list of keys with incomplete key paths for which to allocate IDs.
    * No key may be reserved/read-only.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index); + com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java index 4463d159e..a2e0dd89b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The response for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
  * 
* * Protobuf type {@code google.datastore.v1.AllocateIdsResponse} */ -public final class AllocateIdsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AllocateIdsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.AllocateIdsResponse) AllocateIdsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllocateIdsResponse.newBuilder() to construct. private AllocateIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AllocateIdsResponse() { keys_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AllocateIdsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AllocateIdsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,22 @@ private AllocateIdsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keys_.add(input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; } - keys_.add( - input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +94,7 @@ private AllocateIdsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -87,22 +103,27 @@ private AllocateIdsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.AllocateIdsResponse.class, com.google.datastore.v1.AllocateIdsResponse.Builder.class); + com.google.datastore.v1.AllocateIdsResponse.class, + com.google.datastore.v1.AllocateIdsResponse.Builder.class); } public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** + * + * *
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -115,6 +136,8 @@ public java.util.List getKeysList() {
     return keys_;
   }
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -123,11 +146,12 @@ public java.util.List getKeysList() {
    * repeated .google.datastore.v1.Key keys = 1;
    */
   @java.lang.Override
-  public java.util.List 
-      getKeysOrBuilderList() {
+  public java.util.List getKeysOrBuilderList() {
     return keys_;
   }
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -140,6 +164,8 @@ public int getKeysCount() {
     return keys_.size();
   }
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -152,6 +178,8 @@ public com.google.datastore.v1.Key getKeys(int index) {
     return keys_.get(index);
   }
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -160,12 +188,12 @@ public com.google.datastore.v1.Key getKeys(int index) {
    * repeated .google.datastore.v1.Key keys = 1;
    */
   @java.lang.Override
-  public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
-      int index) {
+  public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) {
     return keys_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +205,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 < keys_.size(); i++) {
       output.writeMessage(1, keys_.get(i));
     }
@@ -192,8 +219,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < keys_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, keys_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +229,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.AllocateIdsResponse)) {
       return super.equals(obj);
     }
-    com.google.datastore.v1.AllocateIdsResponse other = (com.google.datastore.v1.AllocateIdsResponse) obj;
+    com.google.datastore.v1.AllocateIdsResponse other =
+        (com.google.datastore.v1.AllocateIdsResponse) obj;
 
-    if (!getKeysList()
-        .equals(other.getKeysList())) return false;
+    if (!getKeysList().equals(other.getKeysList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -232,118 +258,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.AllocateIdsResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.v1.AllocateIdsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.datastore.v1.AllocateIdsResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.AllocateIdsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.AllocateIdsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 response for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
    * 
* * Protobuf type {@code google.datastore.v1.AllocateIdsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.AllocateIdsResponse) com.google.datastore.v1.AllocateIdsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.AllocateIdsResponse.class, com.google.datastore.v1.AllocateIdsResponse.Builder.class); + com.google.datastore.v1.AllocateIdsResponse.class, + com.google.datastore.v1.AllocateIdsResponse.Builder.class); } // Construct using com.google.datastore.v1.AllocateIdsResponse.newBuilder() @@ -351,17 +386,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getKeysFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_AllocateIdsResponse_descriptor; } @java.lang.Override @@ -396,7 +431,8 @@ public com.google.datastore.v1.AllocateIdsResponse build() { @java.lang.Override public com.google.datastore.v1.AllocateIdsResponse buildPartial() { - com.google.datastore.v1.AllocateIdsResponse result = new com.google.datastore.v1.AllocateIdsResponse(this); + com.google.datastore.v1.AllocateIdsResponse result = + new com.google.datastore.v1.AllocateIdsResponse(this); int from_bitField0_ = bitField0_; if (keysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +451,39 @@ public com.google.datastore.v1.AllocateIdsResponse 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.datastore.v1.AllocateIdsResponse) { - return mergeFrom((com.google.datastore.v1.AllocateIdsResponse)other); + return mergeFrom((com.google.datastore.v1.AllocateIdsResponse) other); } else { super.mergeFrom(other); return this; @@ -473,9 +510,10 @@ public Builder mergeFrom(com.google.datastore.v1.AllocateIdsResponse other) { keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -509,21 +547,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List keys_ = - java.util.Collections.emptyList(); + private java.util.List keys_ = java.util.Collections.emptyList(); + private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keysBuilder_; + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> + keysBuilder_; /** + * + * *
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -539,6 +583,8 @@ public java.util.List getKeysList() {
       }
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -554,6 +600,8 @@ public int getKeysCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -569,6 +617,8 @@ public com.google.datastore.v1.Key getKeys(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -576,8 +626,7 @@ public com.google.datastore.v1.Key getKeys(int index) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder setKeys(
-        int index, com.google.datastore.v1.Key value) {
+    public Builder setKeys(int index, com.google.datastore.v1.Key value) {
       if (keysBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -591,6 +640,8 @@ public Builder setKeys(
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -598,8 +649,7 @@ public Builder setKeys(
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder setKeys(
-        int index, com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) {
       if (keysBuilder_ == null) {
         ensureKeysIsMutable();
         keys_.set(index, builderForValue.build());
@@ -610,6 +660,8 @@ public Builder setKeys(
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -631,6 +683,8 @@ public Builder addKeys(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -638,8 +692,7 @@ public Builder addKeys(com.google.datastore.v1.Key value) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder addKeys(
-        int index, com.google.datastore.v1.Key value) {
+    public Builder addKeys(int index, com.google.datastore.v1.Key value) {
       if (keysBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -653,6 +706,8 @@ public Builder addKeys(
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -660,8 +715,7 @@ public Builder addKeys(
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder addKeys(
-        com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) {
       if (keysBuilder_ == null) {
         ensureKeysIsMutable();
         keys_.add(builderForValue.build());
@@ -672,6 +726,8 @@ public Builder addKeys(
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -679,8 +735,7 @@ public Builder addKeys(
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder addKeys(
-        int index, com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) {
       if (keysBuilder_ == null) {
         ensureKeysIsMutable();
         keys_.add(index, builderForValue.build());
@@ -691,6 +746,8 @@ public Builder addKeys(
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -698,12 +755,10 @@ public Builder addKeys(
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public Builder addAllKeys(
-        java.lang.Iterable values) {
+    public Builder addAllKeys(java.lang.Iterable values) {
       if (keysBuilder_ == null) {
         ensureKeysIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, keys_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_);
         onChanged();
       } else {
         keysBuilder_.addAllMessages(values);
@@ -711,6 +766,8 @@ public Builder addAllKeys(
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -729,6 +786,8 @@ public Builder clearKeys() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -747,6 +806,8 @@ public Builder removeKeys(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -754,11 +815,12 @@ public Builder removeKeys(int index) {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public com.google.datastore.v1.Key.Builder getKeysBuilder(
-        int index) {
+    public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) {
       return getKeysFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -766,14 +828,16 @@ public com.google.datastore.v1.Key.Builder getKeysBuilder(
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
-        int index) {
+    public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) {
       if (keysBuilder_ == null) {
-        return keys_.get(index);  } else {
+        return keys_.get(index);
+      } else {
         return keysBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -781,8 +845,7 @@ public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public java.util.List 
-         getKeysOrBuilderList() {
+    public java.util.List getKeysOrBuilderList() {
       if (keysBuilder_ != null) {
         return keysBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +853,8 @@ public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -798,10 +863,11 @@ public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
      * repeated .google.datastore.v1.Key keys = 1;
      */
     public com.google.datastore.v1.Key.Builder addKeysBuilder() {
-      return getKeysFieldBuilder().addBuilder(
-          com.google.datastore.v1.Key.getDefaultInstance());
+      return getKeysFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -809,12 +875,13 @@ public com.google.datastore.v1.Key.Builder addKeysBuilder() {
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public com.google.datastore.v1.Key.Builder addKeysBuilder(
-        int index) {
-      return getKeysFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.Key.getDefaultInstance());
+    public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) {
+      return getKeysFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The keys specified in the request (in the same order), each with
      * its key path completed with a newly allocated ID.
@@ -822,27 +889,29 @@ public com.google.datastore.v1.Key.Builder addKeysBuilder(
      *
      * repeated .google.datastore.v1.Key keys = 1;
      */
-    public java.util.List 
-         getKeysBuilderList() {
+    public java.util.List getKeysBuilderList() {
       return getKeysFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
         getKeysFieldBuilder() {
       if (keysBuilder_ == null) {
-        keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
-                keys_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        keysBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.Key,
+                com.google.datastore.v1.Key.Builder,
+                com.google.datastore.v1.KeyOrBuilder>(
+                keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         keys_ = null;
       }
       return keysBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,12 +921,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.AllocateIdsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.AllocateIdsResponse)
   private static final com.google.datastore.v1.AllocateIdsResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.AllocateIdsResponse();
   }
@@ -866,16 +935,16 @@ public static com.google.datastore.v1.AllocateIdsResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AllocateIdsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AllocateIdsResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AllocateIdsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AllocateIdsResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +959,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.AllocateIdsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
index aaa996485..af7bb209e 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
-public interface AllocateIdsResponseOrBuilder extends
+public interface AllocateIdsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.AllocateIdsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -15,9 +33,10 @@ public interface AllocateIdsResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.Key keys = 1;
    */
-  java.util.List 
-      getKeysList();
+  java.util.List getKeysList();
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -27,6 +46,8 @@ public interface AllocateIdsResponseOrBuilder extends
    */
   com.google.datastore.v1.Key getKeys(int index);
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -36,6 +57,8 @@ public interface AllocateIdsResponseOrBuilder extends
    */
   int getKeysCount();
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -43,9 +66,10 @@ public interface AllocateIdsResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.Key keys = 1;
    */
-  java.util.List 
-      getKeysOrBuilderList();
+  java.util.List getKeysOrBuilderList();
   /**
+   *
+   *
    * 
    * The keys specified in the request (in the same order), each with
    * its key path completed with a newly allocated ID.
@@ -53,6 +77,5 @@ public interface AllocateIdsResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.Key keys = 1;
    */
-  com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(
-      int index);
+  com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
index 88d19c1bd..8485701c2 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/entity.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * An array value.
  * 
* * Protobuf type {@code google.datastore.v1.ArrayValue} */ -public final class ArrayValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ArrayValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.ArrayValue) ArrayValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrayValue.newBuilder() to construct. private ArrayValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ArrayValue() { values_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ArrayValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ArrayValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private ArrayValue( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add( + input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry)); + break; } - values_.add( - input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +95,7 @@ private ArrayValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -87,22 +104,27 @@ private ArrayValue( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.EntityProto + .internal_static_google_datastore_v1_ArrayValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable + return com.google.datastore.v1.EntityProto + .internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ArrayValue.class, com.google.datastore.v1.ArrayValue.Builder.class); + com.google.datastore.v1.ArrayValue.class, + com.google.datastore.v1.ArrayValue.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private java.util.List values_; /** + * + * *
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -116,6 +138,8 @@ public java.util.List getValuesList() {
     return values_;
   }
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -125,11 +149,12 @@ public java.util.List getValuesList() {
    * repeated .google.datastore.v1.Value values = 1;
    */
   @java.lang.Override
-  public java.util.List 
-      getValuesOrBuilderList() {
+  public java.util.List getValuesOrBuilderList() {
     return values_;
   }
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -143,6 +168,8 @@ public int getValuesCount() {
     return values_.size();
   }
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -156,6 +183,8 @@ public com.google.datastore.v1.Value getValues(int index) {
     return values_.get(index);
   }
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -165,12 +194,12 @@ public com.google.datastore.v1.Value getValues(int index) {
    * repeated .google.datastore.v1.Value values = 1;
    */
   @java.lang.Override
-  public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
-      int index) {
+  public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index) {
     return values_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -182,8 +211,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < values_.size(); i++) {
       output.writeMessage(1, values_.get(i));
     }
@@ -197,8 +225,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < values_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, values_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -208,15 +235,14 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.ArrayValue)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.ArrayValue other = (com.google.datastore.v1.ArrayValue) obj;
 
-    if (!getValuesList()
-        .equals(other.getValuesList())) return false;
+    if (!getValuesList().equals(other.getValuesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -237,118 +263,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.ArrayValue parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.ArrayValue parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.ArrayValue parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.v1.ArrayValue parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.datastore.v1.ArrayValue parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.ArrayValue parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.ArrayValue parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.ArrayValue parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.ArrayValue parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.ArrayValue parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.ArrayValue parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.ArrayValue parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.ArrayValue parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.ArrayValue parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.ArrayValue prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * An array value.
    * 
* * Protobuf type {@code google.datastore.v1.ArrayValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.ArrayValue) com.google.datastore.v1.ArrayValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.EntityProto + .internal_static_google_datastore_v1_ArrayValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable + return com.google.datastore.v1.EntityProto + .internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ArrayValue.class, com.google.datastore.v1.ArrayValue.Builder.class); + com.google.datastore.v1.ArrayValue.class, + com.google.datastore.v1.ArrayValue.Builder.class); } // Construct using com.google.datastore.v1.ArrayValue.newBuilder() @@ -356,17 +390,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValuesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_ArrayValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.EntityProto + .internal_static_google_datastore_v1_ArrayValue_descriptor; } @java.lang.Override @@ -420,38 +454,39 @@ public com.google.datastore.v1.ArrayValue 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.datastore.v1.ArrayValue) { - return mergeFrom((com.google.datastore.v1.ArrayValue)other); + return mergeFrom((com.google.datastore.v1.ArrayValue) other); } else { super.mergeFrom(other); return this; @@ -478,9 +513,10 @@ public Builder mergeFrom(com.google.datastore.v1.ArrayValue other) { valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -514,21 +550,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List values_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> valuesBuilder_; + com.google.datastore.v1.Value, + com.google.datastore.v1.Value.Builder, + com.google.datastore.v1.ValueOrBuilder> + valuesBuilder_; /** + * + * *
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -545,6 +588,8 @@ public java.util.List getValuesList() {
       }
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -561,6 +606,8 @@ public int getValuesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -577,6 +624,8 @@ public com.google.datastore.v1.Value getValues(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -585,8 +634,7 @@ public com.google.datastore.v1.Value getValues(int index) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder setValues(
-        int index, com.google.datastore.v1.Value value) {
+    public Builder setValues(int index, com.google.datastore.v1.Value value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -600,6 +648,8 @@ public Builder setValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -608,8 +658,7 @@ public Builder setValues(
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder setValues(
-        int index, com.google.datastore.v1.Value.Builder builderForValue) {
+    public Builder setValues(int index, com.google.datastore.v1.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.set(index, builderForValue.build());
@@ -620,6 +669,8 @@ public Builder setValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -642,6 +693,8 @@ public Builder addValues(com.google.datastore.v1.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -650,8 +703,7 @@ public Builder addValues(com.google.datastore.v1.Value value) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder addValues(
-        int index, com.google.datastore.v1.Value value) {
+    public Builder addValues(int index, com.google.datastore.v1.Value value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -665,6 +717,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -673,8 +727,7 @@ public Builder addValues(
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder addValues(
-        com.google.datastore.v1.Value.Builder builderForValue) {
+    public Builder addValues(com.google.datastore.v1.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(builderForValue.build());
@@ -685,6 +738,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -693,8 +748,7 @@ public Builder addValues(
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public Builder addValues(
-        int index, com.google.datastore.v1.Value.Builder builderForValue) {
+    public Builder addValues(int index, com.google.datastore.v1.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(index, builderForValue.build());
@@ -705,6 +759,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -717,8 +773,7 @@ public Builder addAllValues(
         java.lang.Iterable values) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, values_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
         onChanged();
       } else {
         valuesBuilder_.addAllMessages(values);
@@ -726,6 +781,8 @@ public Builder addAllValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -745,6 +802,8 @@ public Builder clearValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -764,6 +823,8 @@ public Builder removeValues(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -772,11 +833,12 @@ public Builder removeValues(int index) {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public com.google.datastore.v1.Value.Builder getValuesBuilder(
-        int index) {
+    public com.google.datastore.v1.Value.Builder getValuesBuilder(int index) {
       return getValuesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -785,14 +847,16 @@ public com.google.datastore.v1.Value.Builder getValuesBuilder(
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
-        int index) {
+    public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index) {
       if (valuesBuilder_ == null) {
-        return values_.get(index);  } else {
+        return values_.get(index);
+      } else {
         return valuesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -801,8 +865,8 @@ public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public java.util.List 
-         getValuesOrBuilderList() {
+    public java.util.List
+        getValuesOrBuilderList() {
       if (valuesBuilder_ != null) {
         return valuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -810,6 +874,8 @@ public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -819,10 +885,11 @@ public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
      * repeated .google.datastore.v1.Value values = 1;
      */
     public com.google.datastore.v1.Value.Builder addValuesBuilder() {
-      return getValuesFieldBuilder().addBuilder(
-          com.google.datastore.v1.Value.getDefaultInstance());
+      return getValuesFieldBuilder().addBuilder(com.google.datastore.v1.Value.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -831,12 +898,13 @@ public com.google.datastore.v1.Value.Builder addValuesBuilder() {
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public com.google.datastore.v1.Value.Builder addValuesBuilder(
-        int index) {
-      return getValuesFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.Value.getDefaultInstance());
+    public com.google.datastore.v1.Value.Builder addValuesBuilder(int index) {
+      return getValuesFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.Value.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Values in the array.
      * The order of values in an array is preserved as long as all values have
@@ -845,27 +913,29 @@ public com.google.datastore.v1.Value.Builder addValuesBuilder(
      *
      * repeated .google.datastore.v1.Value values = 1;
      */
-    public java.util.List 
-         getValuesBuilderList() {
+    public java.util.List getValuesBuilderList() {
       return getValuesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> 
+            com.google.datastore.v1.Value,
+            com.google.datastore.v1.Value.Builder,
+            com.google.datastore.v1.ValueOrBuilder>
         getValuesFieldBuilder() {
       if (valuesBuilder_ == null) {
-        valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder>(
-                values_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        valuesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.Value,
+                com.google.datastore.v1.Value.Builder,
+                com.google.datastore.v1.ValueOrBuilder>(
+                values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         values_ = null;
       }
       return valuesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -875,12 +945,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.ArrayValue)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.ArrayValue)
   private static final com.google.datastore.v1.ArrayValue DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.ArrayValue();
   }
@@ -889,16 +959,16 @@ public static com.google.datastore.v1.ArrayValue getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ArrayValue parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ArrayValue(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ArrayValue parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ArrayValue(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -913,6 +983,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.ArrayValue getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
index 94bb48881..c9f60605f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/entity.proto
 
 package com.google.datastore.v1;
 
-public interface ArrayValueOrBuilder extends
+public interface ArrayValueOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.ArrayValue)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -16,9 +34,10 @@ public interface ArrayValueOrBuilder extends
    *
    * repeated .google.datastore.v1.Value values = 1;
    */
-  java.util.List 
-      getValuesList();
+  java.util.List getValuesList();
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -29,6 +48,8 @@ public interface ArrayValueOrBuilder extends
    */
   com.google.datastore.v1.Value getValues(int index);
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -39,6 +60,8 @@ public interface ArrayValueOrBuilder extends
    */
   int getValuesCount();
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -47,9 +70,10 @@ public interface ArrayValueOrBuilder extends
    *
    * repeated .google.datastore.v1.Value values = 1;
    */
-  java.util.List 
-      getValuesOrBuilderList();
+  java.util.List getValuesOrBuilderList();
   /**
+   *
+   *
    * 
    * Values in the array.
    * The order of values in an array is preserved as long as all values have
@@ -58,6 +82,5 @@ public interface ArrayValueOrBuilder extends
    *
    * repeated .google.datastore.v1.Value values = 1;
    */
-  com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(
-      int index);
+  com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
index b1ce420bc..f77301b9d 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * The request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
  * 
* * Protobuf type {@code google.datastore.v1.BeginTransactionRequest} */ -public final class BeginTransactionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BeginTransactionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.BeginTransactionRequest) BeginTransactionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BeginTransactionRequest.newBuilder() to construct. private BeginTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BeginTransactionRequest() { projectId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BeginTransactionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BeginTransactionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private BeginTransactionRequest( case 0: done = true; break; - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 82: { - com.google.datastore.v1.TransactionOptions.Builder subBuilder = null; - if (transactionOptions_ != null) { - subBuilder = transactionOptions_.toBuilder(); + projectId_ = s; + break; } - transactionOptions_ = input.readMessage(com.google.datastore.v1.TransactionOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transactionOptions_); - transactionOptions_ = subBuilder.buildPartial(); + case 82: + { + com.google.datastore.v1.TransactionOptions.Builder subBuilder = null; + if (transactionOptions_ != null) { + subBuilder = transactionOptions_.toBuilder(); + } + transactionOptions_ = + input.readMessage( + com.google.datastore.v1.TransactionOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transactionOptions_); + transactionOptions_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,34 +107,39 @@ private BeginTransactionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.BeginTransactionRequest.class, com.google.datastore.v1.BeginTransactionRequest.Builder.class); + com.google.datastore.v1.BeginTransactionRequest.class, + com.google.datastore.v1.BeginTransactionRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -122,29 +148,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -155,11 +181,14 @@ public java.lang.String getProjectId() { public static final int TRANSACTION_OPTIONS_FIELD_NUMBER = 10; private com.google.datastore.v1.TransactionOptions transactionOptions_; /** + * + * *
    * Options for a new transaction.
    * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; + * * @return Whether the transactionOptions field is set. */ @java.lang.Override @@ -167,18 +196,25 @@ public boolean hasTransactionOptions() { return transactionOptions_ != null; } /** + * + * *
    * Options for a new transaction.
    * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; + * * @return The transactionOptions. */ @java.lang.Override public com.google.datastore.v1.TransactionOptions getTransactionOptions() { - return transactionOptions_ == null ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() : transactionOptions_; + return transactionOptions_ == null + ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() + : transactionOptions_; } /** + * + * *
    * Options for a new transaction.
    * 
@@ -191,6 +227,7 @@ public com.google.datastore.v1.TransactionOptionsOrBuilder getTransactionOptions } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +239,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_); } @@ -223,8 +259,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); } if (transactionOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getTransactionOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getTransactionOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +269,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.datastore.v1.BeginTransactionRequest)) { return super.equals(obj); } - com.google.datastore.v1.BeginTransactionRequest other = (com.google.datastore.v1.BeginTransactionRequest) obj; + com.google.datastore.v1.BeginTransactionRequest other = + (com.google.datastore.v1.BeginTransactionRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; if (hasTransactionOptions() != other.hasTransactionOptions()) return false; if (hasTransactionOptions()) { - if (!getTransactionOptions() - .equals(other.getTransactionOptions())) return false; + if (!getTransactionOptions().equals(other.getTransactionOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -270,118 +304,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.BeginTransactionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.BeginTransactionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.BeginTransactionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.BeginTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.BeginTransactionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    * 
* * Protobuf type {@code google.datastore.v1.BeginTransactionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.BeginTransactionRequest) com.google.datastore.v1.BeginTransactionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.BeginTransactionRequest.class, com.google.datastore.v1.BeginTransactionRequest.Builder.class); + com.google.datastore.v1.BeginTransactionRequest.class, + com.google.datastore.v1.BeginTransactionRequest.Builder.class); } // Construct using com.google.datastore.v1.BeginTransactionRequest.newBuilder() @@ -389,16 +432,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionRequest_descriptor; } @java.lang.Override @@ -435,7 +477,8 @@ public com.google.datastore.v1.BeginTransactionRequest build() { @java.lang.Override public com.google.datastore.v1.BeginTransactionRequest buildPartial() { - com.google.datastore.v1.BeginTransactionRequest result = new com.google.datastore.v1.BeginTransactionRequest(this); + com.google.datastore.v1.BeginTransactionRequest result = + new com.google.datastore.v1.BeginTransactionRequest(this); result.projectId_ = projectId_; if (transactionOptionsBuilder_ == null) { result.transactionOptions_ = transactionOptions_; @@ -450,38 +493,39 @@ public com.google.datastore.v1.BeginTransactionRequest 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.datastore.v1.BeginTransactionRequest) { - return mergeFrom((com.google.datastore.v1.BeginTransactionRequest)other); + return mergeFrom((com.google.datastore.v1.BeginTransactionRequest) other); } else { super.mergeFrom(other); return this; @@ -489,7 +533,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.v1.BeginTransactionRequest other) { - if (other == com.google.datastore.v1.BeginTransactionRequest.getDefaultInstance()) return this; + if (other == com.google.datastore.v1.BeginTransactionRequest.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -528,18 +573,20 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -548,20 +595,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -569,54 +617,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -624,34 +679,47 @@ public Builder setProjectIdBytes( private com.google.datastore.v1.TransactionOptions transactionOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions, com.google.datastore.v1.TransactionOptions.Builder, com.google.datastore.v1.TransactionOptionsOrBuilder> transactionOptionsBuilder_; + com.google.datastore.v1.TransactionOptions, + com.google.datastore.v1.TransactionOptions.Builder, + com.google.datastore.v1.TransactionOptionsOrBuilder> + transactionOptionsBuilder_; /** + * + * *
      * Options for a new transaction.
      * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; + * * @return Whether the transactionOptions field is set. */ public boolean hasTransactionOptions() { return transactionOptionsBuilder_ != null || transactionOptions_ != null; } /** + * + * *
      * Options for a new transaction.
      * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; + * * @return The transactionOptions. */ public com.google.datastore.v1.TransactionOptions getTransactionOptions() { if (transactionOptionsBuilder_ == null) { - return transactionOptions_ == null ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() : transactionOptions_; + return transactionOptions_ == null + ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() + : transactionOptions_; } else { return transactionOptionsBuilder_.getMessage(); } } /** + * + * *
      * Options for a new transaction.
      * 
@@ -672,6 +740,8 @@ public Builder setTransactionOptions(com.google.datastore.v1.TransactionOptions return this; } /** + * + * *
      * Options for a new transaction.
      * 
@@ -690,6 +760,8 @@ public Builder setTransactionOptions( return this; } /** + * + * *
      * Options for a new transaction.
      * 
@@ -700,7 +772,9 @@ public Builder mergeTransactionOptions(com.google.datastore.v1.TransactionOption if (transactionOptionsBuilder_ == null) { if (transactionOptions_ != null) { transactionOptions_ = - com.google.datastore.v1.TransactionOptions.newBuilder(transactionOptions_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.TransactionOptions.newBuilder(transactionOptions_) + .mergeFrom(value) + .buildPartial(); } else { transactionOptions_ = value; } @@ -712,6 +786,8 @@ public Builder mergeTransactionOptions(com.google.datastore.v1.TransactionOption return this; } /** + * + * *
      * Options for a new transaction.
      * 
@@ -730,6 +806,8 @@ public Builder clearTransactionOptions() { return this; } /** + * + * *
      * Options for a new transaction.
      * 
@@ -737,11 +815,13 @@ public Builder clearTransactionOptions() { * .google.datastore.v1.TransactionOptions transaction_options = 10; */ public com.google.datastore.v1.TransactionOptions.Builder getTransactionOptionsBuilder() { - + onChanged(); return getTransactionOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Options for a new transaction.
      * 
@@ -752,11 +832,14 @@ public com.google.datastore.v1.TransactionOptionsOrBuilder getTransactionOptions if (transactionOptionsBuilder_ != null) { return transactionOptionsBuilder_.getMessageOrBuilder(); } else { - return transactionOptions_ == null ? - com.google.datastore.v1.TransactionOptions.getDefaultInstance() : transactionOptions_; + return transactionOptions_ == null + ? com.google.datastore.v1.TransactionOptions.getDefaultInstance() + : transactionOptions_; } } /** + * + * *
      * Options for a new transaction.
      * 
@@ -764,21 +847,24 @@ public com.google.datastore.v1.TransactionOptionsOrBuilder getTransactionOptions * .google.datastore.v1.TransactionOptions transaction_options = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions, com.google.datastore.v1.TransactionOptions.Builder, com.google.datastore.v1.TransactionOptionsOrBuilder> + com.google.datastore.v1.TransactionOptions, + com.google.datastore.v1.TransactionOptions.Builder, + com.google.datastore.v1.TransactionOptionsOrBuilder> getTransactionOptionsFieldBuilder() { if (transactionOptionsBuilder_ == null) { - transactionOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions, com.google.datastore.v1.TransactionOptions.Builder, com.google.datastore.v1.TransactionOptionsOrBuilder>( - getTransactionOptions(), - getParentForChildren(), - isClean()); + transactionOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.TransactionOptions, + com.google.datastore.v1.TransactionOptions.Builder, + com.google.datastore.v1.TransactionOptionsOrBuilder>( + getTransactionOptions(), getParentForChildren(), isClean()); transactionOptions_ = null; } return transactionOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -788,12 +874,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.BeginTransactionRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.BeginTransactionRequest) private static final com.google.datastore.v1.BeginTransactionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.BeginTransactionRequest(); } @@ -802,16 +888,16 @@ public static com.google.datastore.v1.BeginTransactionRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BeginTransactionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BeginTransactionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BeginTransactionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BeginTransactionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +912,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.BeginTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java index 52b9adc0f..31bd75450 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface BeginTransactionRequestOrBuilder extends +public interface BeginTransactionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.BeginTransactionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Options for a new transaction.
    * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; + * * @return Whether the transactionOptions field is set. */ boolean hasTransactionOptions(); /** + * + * *
    * Options for a new transaction.
    * 
* * .google.datastore.v1.TransactionOptions transaction_options = 10; + * * @return The transactionOptions. */ com.google.datastore.v1.TransactionOptions getTransactionOptions(); /** + * + * *
    * Options for a new transaction.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java index 31b91d711..a63b48ba7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
  * 
* * Protobuf type {@code google.datastore.v1.BeginTransactionResponse} */ -public final class BeginTransactionResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BeginTransactionResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.BeginTransactionResponse) BeginTransactionResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BeginTransactionResponse.newBuilder() to construct. private BeginTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BeginTransactionResponse() { transaction_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BeginTransactionResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BeginTransactionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,18 +70,18 @@ private BeginTransactionResponse( case 0: done = true; break; - case 10: { - - transaction_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + transaction_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -72,34 +89,39 @@ private BeginTransactionResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.BeginTransactionResponse.class, com.google.datastore.v1.BeginTransactionResponse.Builder.class); + com.google.datastore.v1.BeginTransactionResponse.class, + com.google.datastore.v1.BeginTransactionResponse.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; private com.google.protobuf.ByteString transaction_; /** + * + * *
    * The transaction identifier (always present).
    * 
* * bytes transaction = 1; + * * @return The transaction. */ @java.lang.Override @@ -108,6 +130,7 @@ public com.google.protobuf.ByteString getTransaction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +142,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 (!transaction_.isEmpty()) { output.writeBytes(1, transaction_); } @@ -134,8 +156,7 @@ public int getSerializedSize() { size = 0; if (!transaction_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, transaction_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, transaction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -145,15 +166,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.datastore.v1.BeginTransactionResponse)) { return super.equals(obj); } - com.google.datastore.v1.BeginTransactionResponse other = (com.google.datastore.v1.BeginTransactionResponse) obj; + com.google.datastore.v1.BeginTransactionResponse other = + (com.google.datastore.v1.BeginTransactionResponse) obj; - if (!getTransaction() - .equals(other.getTransaction())) return false; + if (!getTransaction().equals(other.getTransaction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -172,118 +193,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.BeginTransactionResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.BeginTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.BeginTransactionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.BeginTransactionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.BeginTransactionResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.BeginTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.BeginTransactionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    * 
* * Protobuf type {@code google.datastore.v1.BeginTransactionResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.BeginTransactionResponse) com.google.datastore.v1.BeginTransactionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.BeginTransactionResponse.class, com.google.datastore.v1.BeginTransactionResponse.Builder.class); + com.google.datastore.v1.BeginTransactionResponse.class, + com.google.datastore.v1.BeginTransactionResponse.Builder.class); } // Construct using com.google.datastore.v1.BeginTransactionResponse.newBuilder() @@ -291,16 +321,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_BeginTransactionResponse_descriptor; } @java.lang.Override @@ -331,7 +360,8 @@ public com.google.datastore.v1.BeginTransactionResponse build() { @java.lang.Override public com.google.datastore.v1.BeginTransactionResponse buildPartial() { - com.google.datastore.v1.BeginTransactionResponse result = new com.google.datastore.v1.BeginTransactionResponse(this); + com.google.datastore.v1.BeginTransactionResponse result = + new com.google.datastore.v1.BeginTransactionResponse(this); result.transaction_ = transaction_; onBuilt(); return result; @@ -341,38 +371,39 @@ public com.google.datastore.v1.BeginTransactionResponse 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.datastore.v1.BeginTransactionResponse) { - return mergeFrom((com.google.datastore.v1.BeginTransactionResponse)other); + return mergeFrom((com.google.datastore.v1.BeginTransactionResponse) other); } else { super.mergeFrom(other); return this; @@ -380,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.v1.BeginTransactionResponse other) { - if (other == com.google.datastore.v1.BeginTransactionResponse.getDefaultInstance()) return this; + if (other == com.google.datastore.v1.BeginTransactionResponse.getDefaultInstance()) + return this; if (other.getTransaction() != com.google.protobuf.ByteString.EMPTY) { setTransaction(other.getTransaction()); } @@ -415,11 +447,14 @@ public Builder mergeFrom( private com.google.protobuf.ByteString transaction_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The transaction identifier (always present).
      * 
* * bytes transaction = 1; + * * @return The transaction. */ @java.lang.Override @@ -427,40 +462,46 @@ public com.google.protobuf.ByteString getTransaction() { return transaction_; } /** + * + * *
      * The transaction identifier (always present).
      * 
* * bytes transaction = 1; + * * @param value The transaction to set. * @return This builder for chaining. */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transaction_ = value; onChanged(); return this; } /** + * + * *
      * The transaction identifier (always present).
      * 
* * bytes transaction = 1; + * * @return This builder for chaining. */ public Builder clearTransaction() { - + transaction_ = getDefaultInstance().getTransaction(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -470,12 +511,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.BeginTransactionResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.BeginTransactionResponse) private static final com.google.datastore.v1.BeginTransactionResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.BeginTransactionResponse(); } @@ -484,16 +525,16 @@ public static com.google.datastore.v1.BeginTransactionResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BeginTransactionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BeginTransactionResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BeginTransactionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BeginTransactionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -508,6 +549,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.BeginTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java new file mode 100644 index 000000000..950fac3fb --- /dev/null +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.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/datastore/v1/datastore.proto + +package com.google.datastore.v1; + +public interface BeginTransactionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.datastore.v1.BeginTransactionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The transaction identifier (always present).
+   * 
+ * + * bytes transaction = 1; + * + * @return The transaction. + */ + com.google.protobuf.ByteString getTransaction(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java index 6787946c4..1af1bc6c9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
  * 
* * Protobuf type {@code google.datastore.v1.CommitRequest} */ -public final class CommitRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommitRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.CommitRequest) CommitRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommitRequest.newBuilder() to construct. private CommitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CommitRequest() { projectId_ = ""; mode_ = 0; @@ -27,16 +45,15 @@ private CommitRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommitRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,39 +73,43 @@ private CommitRequest( case 0: done = true; break; - case 10: { - transactionSelector_ = input.readBytes(); - transactionSelectorCase_ = 1; - break; - } - case 40: { - int rawValue = input.readEnum(); + case 10: + { + transactionSelector_ = input.readBytes(); + transactionSelectorCase_ = 1; + break; + } + case 40: + { + int rawValue = input.readEnum(); - mode_ = rawValue; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mutations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mode_ = rawValue; + break; } - mutations_.add( - input.readMessage(com.google.datastore.v1.Mutation.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mutations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + mutations_.add( + input.readMessage(com.google.datastore.v1.Mutation.parser(), extensionRegistry)); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + projectId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,8 +117,7 @@ private CommitRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mutations_ = java.util.Collections.unmodifiableList(mutations_); @@ -106,29 +126,35 @@ private CommitRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CommitRequest.class, com.google.datastore.v1.CommitRequest.Builder.class); + com.google.datastore.v1.CommitRequest.class, + com.google.datastore.v1.CommitRequest.Builder.class); } /** + * + * *
    * The modes available for commits.
    * 
* * Protobuf enum {@code google.datastore.v1.CommitRequest.Mode} */ - public enum Mode - implements com.google.protobuf.ProtocolMessageEnum { + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -137,6 +163,8 @@ public enum Mode */ MODE_UNSPECIFIED(0), /** + * + * *
      * Transactional: The mutations are either all applied, or none are applied.
      * Learn about transactions
@@ -147,6 +175,8 @@ public enum Mode
      */
     TRANSACTIONAL(1),
     /**
+     *
+     *
      * 
      * Non-transactional: The mutations may not apply as all or none.
      * 
@@ -158,6 +188,8 @@ public enum Mode ; /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -166,6 +198,8 @@ public enum Mode */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Transactional: The mutations are either all applied, or none are applied.
      * Learn about transactions
@@ -176,6 +210,8 @@ public enum Mode
      */
     public static final int TRANSACTIONAL_VALUE = 1;
     /**
+     *
+     *
      * 
      * Non-transactional: The mutations may not apply as all or none.
      * 
@@ -184,7 +220,6 @@ public enum Mode */ public static final int NON_TRANSACTIONAL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -209,49 +244,49 @@ public static Mode valueOf(int value) { */ public static Mode forNumber(int value) { switch (value) { - case 0: return MODE_UNSPECIFIED; - case 1: return TRANSACTIONAL; - case 2: return NON_TRANSACTIONAL; - default: return null; + case 0: + return MODE_UNSPECIFIED; + case 1: + return TRANSACTIONAL; + case 2: + return NON_TRANSACTIONAL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Mode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.v1.CommitRequest.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); - public static Mode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -270,12 +305,15 @@ private Mode(int value) { private int transactionSelectorCase_ = 0; private java.lang.Object transactionSelector_; + public enum TransactionSelectorCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSACTION(1), TRANSACTIONSELECTOR_NOT_SET(0); private final int value; + private TransactionSelectorCase(int value) { this.value = value; } @@ -291,30 +329,35 @@ public static TransactionSelectorCase valueOf(int value) { public static TransactionSelectorCase forNumber(int value) { switch (value) { - case 1: return TRANSACTION; - case 0: return TRANSACTIONSELECTOR_NOT_SET; - default: return null; + case 1: + return TRANSACTION; + case 0: + return TRANSACTIONSELECTOR_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TransactionSelectorCase - getTransactionSelectorCase() { - return TransactionSelectorCase.forNumber( - transactionSelectorCase_); + public TransactionSelectorCase getTransactionSelectorCase() { + return TransactionSelectorCase.forNumber(transactionSelectorCase_); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -323,29 +366,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -356,32 +399,43 @@ public java.lang.String getProjectId() { public static final int MODE_FIELD_NUMBER = 5; private int mode_; /** + * + * *
    * The type of commit to perform. Defaults to `TRANSACTIONAL`.
    * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
    * The type of commit to perform. Defaults to `TRANSACTIONAL`.
    * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @return The mode. */ - @java.lang.Override public com.google.datastore.v1.CommitRequest.Mode getMode() { + @java.lang.Override + public com.google.datastore.v1.CommitRequest.Mode getMode() { @SuppressWarnings("deprecation") - com.google.datastore.v1.CommitRequest.Mode result = com.google.datastore.v1.CommitRequest.Mode.valueOf(mode_); + com.google.datastore.v1.CommitRequest.Mode result = + com.google.datastore.v1.CommitRequest.Mode.valueOf(mode_); return result == null ? com.google.datastore.v1.CommitRequest.Mode.UNRECOGNIZED : result; } public static final int TRANSACTION_FIELD_NUMBER = 1; /** + * + * *
    * The identifier of the transaction associated with the commit. A
    * transaction identifier is returned by a call to
@@ -389,6 +443,7 @@ public java.lang.String getProjectId() {
    * 
* * bytes transaction = 1; + * * @return Whether the transaction field is set. */ @java.lang.Override @@ -396,6 +451,8 @@ public boolean hasTransaction() { return transactionSelectorCase_ == 1; } /** + * + * *
    * The identifier of the transaction associated with the commit. A
    * transaction identifier is returned by a call to
@@ -403,6 +460,7 @@ public boolean hasTransaction() {
    * 
* * bytes transaction = 1; + * * @return The transaction. */ @java.lang.Override @@ -416,6 +474,8 @@ public com.google.protobuf.ByteString getTransaction() { public static final int MUTATIONS_FIELD_NUMBER = 6; private java.util.List mutations_; /** + * + * *
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -436,6 +496,8 @@ public java.util.List getMutationsList() {
     return mutations_;
   }
   /**
+   *
+   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -452,11 +514,13 @@ public java.util.List getMutationsList() {
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getMutationsOrBuilderList() {
     return mutations_;
   }
   /**
+   *
+   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -477,6 +541,8 @@ public int getMutationsCount() {
     return mutations_.size();
   }
   /**
+   *
+   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -497,6 +563,8 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
     return mutations_.get(index);
   }
   /**
+   *
+   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -513,12 +581,12 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
   @java.lang.Override
-  public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
-      int index) {
+  public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index) {
     return mutations_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -530,11 +598,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (transactionSelectorCase_ == 1) {
-      output.writeBytes(
-          1, (com.google.protobuf.ByteString) transactionSelector_);
+      output.writeBytes(1, (com.google.protobuf.ByteString) transactionSelector_);
     }
     if (mode_ != com.google.datastore.v1.CommitRequest.Mode.MODE_UNSPECIFIED.getNumber()) {
       output.writeEnum(5, mode_);
@@ -555,17 +621,15 @@ public int getSerializedSize() {
 
     size = 0;
     if (transactionSelectorCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(
-            1, (com.google.protobuf.ByteString) transactionSelector_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeBytesSize(
+              1, (com.google.protobuf.ByteString) transactionSelector_);
     }
     if (mode_ != com.google.datastore.v1.CommitRequest.Mode.MODE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(5, mode_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, mode_);
     }
     for (int i = 0; i < mutations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, mutations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, mutations_.get(i));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_);
@@ -578,23 +642,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.datastore.v1.CommitRequest)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.CommitRequest other = (com.google.datastore.v1.CommitRequest) obj;
 
-    if (!getProjectId()
-        .equals(other.getProjectId())) return false;
+    if (!getProjectId().equals(other.getProjectId())) return false;
     if (mode_ != other.mode_) return false;
-    if (!getMutationsList()
-        .equals(other.getMutationsList())) return false;
+    if (!getMutationsList().equals(other.getMutationsList())) return false;
     if (!getTransactionSelectorCase().equals(other.getTransactionSelectorCase())) return false;
     switch (transactionSelectorCase_) {
       case 1:
-        if (!getTransaction()
-            .equals(other.getTransaction())) return false;
+        if (!getTransaction().equals(other.getTransaction())) return false;
         break;
       case 0:
       default:
@@ -631,118 +692,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.CommitRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.CommitRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.CommitRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.v1.CommitRequest parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.datastore.v1.CommitRequest parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.CommitRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.CommitRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.CommitRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.CommitRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.CommitRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.CommitRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.CommitRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.CommitRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.CommitRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.CommitRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
    * 
* * Protobuf type {@code google.datastore.v1.CommitRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.CommitRequest) com.google.datastore.v1.CommitRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CommitRequest.class, com.google.datastore.v1.CommitRequest.Builder.class); + com.google.datastore.v1.CommitRequest.class, + com.google.datastore.v1.CommitRequest.Builder.class); } // Construct using com.google.datastore.v1.CommitRequest.newBuilder() @@ -750,17 +819,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMutationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -780,9 +849,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitRequest_descriptor; } @java.lang.Override @@ -801,7 +870,8 @@ public com.google.datastore.v1.CommitRequest build() { @java.lang.Override public com.google.datastore.v1.CommitRequest buildPartial() { - com.google.datastore.v1.CommitRequest result = new com.google.datastore.v1.CommitRequest(this); + com.google.datastore.v1.CommitRequest result = + new com.google.datastore.v1.CommitRequest(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; result.mode_ = mode_; @@ -826,38 +896,39 @@ public com.google.datastore.v1.CommitRequest 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.datastore.v1.CommitRequest) { - return mergeFrom((com.google.datastore.v1.CommitRequest)other); + return mergeFrom((com.google.datastore.v1.CommitRequest) other); } else { super.mergeFrom(other); return this; @@ -891,22 +962,25 @@ public Builder mergeFrom(com.google.datastore.v1.CommitRequest other) { mutationsBuilder_ = null; mutations_ = other.mutations_; bitField0_ = (bitField0_ & ~0x00000001); - mutationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMutationsFieldBuilder() : null; + mutationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMutationsFieldBuilder() + : null; } else { mutationsBuilder_.addAllMessages(other.mutations_); } } } switch (other.getTransactionSelectorCase()) { - case TRANSACTION: { - setTransaction(other.getTransaction()); - break; - } - case TRANSACTIONSELECTOR_NOT_SET: { - break; - } + case TRANSACTION: + { + setTransaction(other.getTransaction()); + break; + } + case TRANSACTIONSELECTOR_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -936,12 +1010,12 @@ public Builder mergeFrom( } return this; } + private int transactionSelectorCase_ = 0; private java.lang.Object transactionSelector_; - public TransactionSelectorCase - getTransactionSelectorCase() { - return TransactionSelectorCase.forNumber( - transactionSelectorCase_); + + public TransactionSelectorCase getTransactionSelectorCase() { + return TransactionSelectorCase.forNumber(transactionSelectorCase_); } public Builder clearTransactionSelector() { @@ -955,18 +1029,20 @@ public Builder clearTransactionSelector() { private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -975,20 +1051,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -996,54 +1073,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1051,51 +1135,65 @@ public Builder setProjectIdBytes( private int mode_ = 0; /** + * + * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { - + mode_ = value; onChanged(); return this; } /** + * + * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @return The mode. */ @java.lang.Override public com.google.datastore.v1.CommitRequest.Mode getMode() { @SuppressWarnings("deprecation") - com.google.datastore.v1.CommitRequest.Mode result = com.google.datastore.v1.CommitRequest.Mode.valueOf(mode_); + com.google.datastore.v1.CommitRequest.Mode result = + com.google.datastore.v1.CommitRequest.Mode.valueOf(mode_); return result == null ? com.google.datastore.v1.CommitRequest.Mode.UNRECOGNIZED : result; } /** + * + * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @param value The mode to set. * @return This builder for chaining. */ @@ -1103,27 +1201,32 @@ public Builder setMode(com.google.datastore.v1.CommitRequest.Mode value) { if (value == null) { throw new NullPointerException(); } - + mode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of commit to perform. Defaults to `TRANSACTIONAL`.
      * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = 0; onChanged(); return this; } /** + * + * *
      * The identifier of the transaction associated with the commit. A
      * transaction identifier is returned by a call to
@@ -1131,12 +1234,15 @@ public Builder clearMode() {
      * 
* * bytes transaction = 1; + * * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionSelectorCase_ == 1; } /** + * + * *
      * The identifier of the transaction associated with the commit. A
      * transaction identifier is returned by a call to
@@ -1144,6 +1250,7 @@ public boolean hasTransaction() {
      * 
* * bytes transaction = 1; + * * @return The transaction. */ public com.google.protobuf.ByteString getTransaction() { @@ -1153,6 +1260,8 @@ public com.google.protobuf.ByteString getTransaction() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The identifier of the transaction associated with the commit. A
      * transaction identifier is returned by a call to
@@ -1160,19 +1269,22 @@ public com.google.protobuf.ByteString getTransaction() {
      * 
* * bytes transaction = 1; + * * @param value The transaction to set. * @return This builder for chaining. */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - transactionSelectorCase_ = 1; + throw new NullPointerException(); + } + transactionSelectorCase_ = 1; transactionSelector_ = value; onChanged(); return this; } /** + * + * *
      * The identifier of the transaction associated with the commit. A
      * transaction identifier is returned by a call to
@@ -1180,6 +1292,7 @@ public Builder setTransaction(com.google.protobuf.ByteString value) {
      * 
* * bytes transaction = 1; + * * @return This builder for chaining. */ public Builder clearTransaction() { @@ -1192,18 +1305,24 @@ public Builder clearTransaction() { } private java.util.List mutations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMutationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { mutations_ = new java.util.ArrayList(mutations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Mutation, com.google.datastore.v1.Mutation.Builder, com.google.datastore.v1.MutationOrBuilder> mutationsBuilder_; + com.google.datastore.v1.Mutation, + com.google.datastore.v1.Mutation.Builder, + com.google.datastore.v1.MutationOrBuilder> + mutationsBuilder_; /** + * + * *
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1227,6 +1346,8 @@ public java.util.List getMutationsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1250,6 +1371,8 @@ public int getMutationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1273,6 +1396,8 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1288,8 +1413,7 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public Builder setMutations(
-        int index, com.google.datastore.v1.Mutation value) {
+    public Builder setMutations(int index, com.google.datastore.v1.Mutation value) {
       if (mutationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1303,6 +1427,8 @@ public Builder setMutations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1330,6 +1456,8 @@ public Builder setMutations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1359,6 +1487,8 @@ public Builder addMutations(com.google.datastore.v1.Mutation value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1374,8 +1504,7 @@ public Builder addMutations(com.google.datastore.v1.Mutation value) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public Builder addMutations(
-        int index, com.google.datastore.v1.Mutation value) {
+    public Builder addMutations(int index, com.google.datastore.v1.Mutation value) {
       if (mutationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1389,6 +1518,8 @@ public Builder addMutations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1404,8 +1535,7 @@ public Builder addMutations(
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public Builder addMutations(
-        com.google.datastore.v1.Mutation.Builder builderForValue) {
+    public Builder addMutations(com.google.datastore.v1.Mutation.Builder builderForValue) {
       if (mutationsBuilder_ == null) {
         ensureMutationsIsMutable();
         mutations_.add(builderForValue.build());
@@ -1416,6 +1546,8 @@ public Builder addMutations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1443,6 +1575,8 @@ public Builder addMutations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1462,8 +1596,7 @@ public Builder addAllMutations(
         java.lang.Iterable values) {
       if (mutationsBuilder_ == null) {
         ensureMutationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, mutations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mutations_);
         onChanged();
       } else {
         mutationsBuilder_.addAllMessages(values);
@@ -1471,6 +1604,8 @@ public Builder addAllMutations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1497,6 +1632,8 @@ public Builder clearMutations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1523,6 +1660,8 @@ public Builder removeMutations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1538,11 +1677,12 @@ public Builder removeMutations(int index) {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public com.google.datastore.v1.Mutation.Builder getMutationsBuilder(
-        int index) {
+    public com.google.datastore.v1.Mutation.Builder getMutationsBuilder(int index) {
       return getMutationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1558,14 +1698,16 @@ public com.google.datastore.v1.Mutation.Builder getMutationsBuilder(
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
-        int index) {
+    public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index) {
       if (mutationsBuilder_ == null) {
-        return mutations_.get(index);  } else {
+        return mutations_.get(index);
+      } else {
         return mutationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1581,8 +1723,8 @@ public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public java.util.List 
-         getMutationsOrBuilderList() {
+    public java.util.List
+        getMutationsOrBuilderList() {
       if (mutationsBuilder_ != null) {
         return mutationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1590,6 +1732,8 @@ public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1606,10 +1750,12 @@ public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
     public com.google.datastore.v1.Mutation.Builder addMutationsBuilder() {
-      return getMutationsFieldBuilder().addBuilder(
-          com.google.datastore.v1.Mutation.getDefaultInstance());
+      return getMutationsFieldBuilder()
+          .addBuilder(com.google.datastore.v1.Mutation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1625,12 +1771,13 @@ public com.google.datastore.v1.Mutation.Builder addMutationsBuilder() {
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public com.google.datastore.v1.Mutation.Builder addMutationsBuilder(
-        int index) {
-      return getMutationsFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.Mutation.getDefaultInstance());
+    public com.google.datastore.v1.Mutation.Builder addMutationsBuilder(int index) {
+      return getMutationsFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.Mutation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The mutations to perform.
      * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -1646,27 +1793,29 @@ public com.google.datastore.v1.Mutation.Builder addMutationsBuilder(
      *
      * repeated .google.datastore.v1.Mutation mutations = 6;
      */
-    public java.util.List 
-         getMutationsBuilderList() {
+    public java.util.List getMutationsBuilderList() {
       return getMutationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.Mutation, com.google.datastore.v1.Mutation.Builder, com.google.datastore.v1.MutationOrBuilder> 
+            com.google.datastore.v1.Mutation,
+            com.google.datastore.v1.Mutation.Builder,
+            com.google.datastore.v1.MutationOrBuilder>
         getMutationsFieldBuilder() {
       if (mutationsBuilder_ == null) {
-        mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Mutation, com.google.datastore.v1.Mutation.Builder, com.google.datastore.v1.MutationOrBuilder>(
-                mutations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        mutationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.Mutation,
+                com.google.datastore.v1.Mutation.Builder,
+                com.google.datastore.v1.MutationOrBuilder>(
+                mutations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         mutations_ = null;
       }
       return mutationsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1676,12 +1825,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.CommitRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.CommitRequest)
   private static final com.google.datastore.v1.CommitRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.CommitRequest();
   }
@@ -1690,16 +1839,16 @@ public static com.google.datastore.v1.CommitRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CommitRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new CommitRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CommitRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new CommitRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1714,6 +1863,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.CommitRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
similarity index 84%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
index 6d072f024..db235efdd 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java
@@ -1,52 +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/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
-public interface CommitRequestOrBuilder extends
+public interface CommitRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.CommitRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * The type of commit to perform. Defaults to `TRANSACTIONAL`.
    * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** + * + * *
    * The type of commit to perform. Defaults to `TRANSACTIONAL`.
    * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; + * * @return The mode. */ com.google.datastore.v1.CommitRequest.Mode getMode(); /** + * + * *
    * The identifier of the transaction associated with the commit. A
    * transaction identifier is returned by a call to
@@ -54,10 +83,13 @@ public interface CommitRequestOrBuilder extends
    * 
* * bytes transaction = 1; + * * @return Whether the transaction field is set. */ boolean hasTransaction(); /** + * + * *
    * The identifier of the transaction associated with the commit. A
    * transaction identifier is returned by a call to
@@ -65,11 +97,14 @@ public interface CommitRequestOrBuilder extends
    * 
* * bytes transaction = 1; + * * @return The transaction. */ com.google.protobuf.ByteString getTransaction(); /** + * + * *
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -85,9 +120,10 @@ public interface CommitRequestOrBuilder extends
    *
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
-  java.util.List 
-      getMutationsList();
+  java.util.List getMutationsList();
   /**
+   *
+   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -105,6 +141,8 @@ public interface CommitRequestOrBuilder extends
    */
   com.google.datastore.v1.Mutation getMutations(int index);
   /**
+   *
+   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -122,6 +160,8 @@ public interface CommitRequestOrBuilder extends
    */
   int getMutationsCount();
   /**
+   *
+   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -137,9 +177,10 @@ public interface CommitRequestOrBuilder extends
    *
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
-  java.util.List 
-      getMutationsOrBuilderList();
+  java.util.List getMutationsOrBuilderList();
   /**
+   *
+   *
    * 
    * The mutations to perform.
    * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
@@ -155,8 +196,7 @@ public interface CommitRequestOrBuilder extends
    *
    * repeated .google.datastore.v1.Mutation mutations = 6;
    */
-  com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(
-      int index);
+  com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index);
 
   public com.google.datastore.v1.CommitRequest.TransactionSelectorCase getTransactionSelectorCase();
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
similarity index 76%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
index 9da1a478b..a11c88357 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * The response for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
  * 
* * Protobuf type {@code google.datastore.v1.CommitResponse} */ -public final class CommitResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommitResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.CommitResponse) CommitResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommitResponse.newBuilder() to construct. private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CommitResponse() { mutationResults_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommitResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,40 +71,45 @@ private CommitResponse( case 0: done = true; break; - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mutationResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mutationResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + mutationResults_.add( + input.readMessage( + com.google.datastore.v1.MutationResult.parser(), extensionRegistry)); + break; } - mutationResults_.add( - input.readMessage(com.google.datastore.v1.MutationResult.parser(), extensionRegistry)); - break; - } - case 32: { - - indexUpdates_ = input.readInt32(); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (commitTime_ != null) { - subBuilder = commitTime_.toBuilder(); - } - commitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(commitTime_); - commitTime_ = subBuilder.buildPartial(); + case 32: + { + indexUpdates_ = input.readInt32(); + break; } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (commitTime_ != null) { + subBuilder = commitTime_.toBuilder(); + } + commitTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(commitTime_); + commitTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,8 +117,7 @@ private CommitResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mutationResults_ = java.util.Collections.unmodifiableList(mutationResults_); @@ -105,22 +126,27 @@ private CommitResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CommitResponse.class, com.google.datastore.v1.CommitResponse.Builder.class); + com.google.datastore.v1.CommitResponse.class, + com.google.datastore.v1.CommitResponse.Builder.class); } public static final int MUTATION_RESULTS_FIELD_NUMBER = 3; private java.util.List mutationResults_; /** + * + * *
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -133,6 +159,8 @@ public java.util.List getMutationResults
     return mutationResults_;
   }
   /**
+   *
+   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -141,11 +169,13 @@ public java.util.List getMutationResults
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getMutationResultsOrBuilderList() {
     return mutationResults_;
   }
   /**
+   *
+   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -158,6 +188,8 @@ public int getMutationResultsCount() {
     return mutationResults_.size();
   }
   /**
+   *
+   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -170,6 +202,8 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
     return mutationResults_.get(index);
   }
   /**
+   *
+   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -178,20 +212,22 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
   @java.lang.Override
-  public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(
-      int index) {
+  public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(int index) {
     return mutationResults_.get(index);
   }
 
   public static final int INDEX_UPDATES_FIELD_NUMBER = 4;
   private int indexUpdates_;
   /**
+   *
+   *
    * 
    * The number of index entries updated during the commit, or zero if none were
    * updated.
    * 
* * int32 index_updates = 4; + * * @return The indexUpdates. */ @java.lang.Override @@ -202,11 +238,14 @@ public int getIndexUpdates() { public static final int COMMIT_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp commitTime_; /** + * + * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
* * .google.protobuf.Timestamp commit_time = 8; + * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -214,11 +253,14 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** + * + * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
* * .google.protobuf.Timestamp commit_time = 8; + * * @return The commitTime. */ @java.lang.Override @@ -226,6 +268,8 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** + * + * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
@@ -238,6 +282,7 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,8 +294,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 < mutationResults_.size(); i++) { output.writeMessage(3, mutationResults_.get(i)); } @@ -270,16 +314,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < mutationResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, mutationResults_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, mutationResults_.get(i)); } if (indexUpdates_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, indexUpdates_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, indexUpdates_); } if (commitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCommitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCommitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -289,21 +330,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.datastore.v1.CommitResponse)) { return super.equals(obj); } com.google.datastore.v1.CommitResponse other = (com.google.datastore.v1.CommitResponse) obj; - if (!getMutationResultsList() - .equals(other.getMutationResultsList())) return false; - if (getIndexUpdates() - != other.getIndexUpdates()) return false; + if (!getMutationResultsList().equals(other.getMutationResultsList())) return false; + if (getIndexUpdates() != other.getIndexUpdates()) return false; if (hasCommitTime() != other.hasCommitTime()) return false; if (hasCommitTime()) { - if (!getCommitTime() - .equals(other.getCommitTime())) return false; + if (!getCommitTime().equals(other.getCommitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -331,118 +369,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.CommitResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.CommitResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.CommitResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.CommitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.CommitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.CommitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.CommitResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.CommitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.CommitResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.CommitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.CommitResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.CommitResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.CommitResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.CommitResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
    * 
* * Protobuf type {@code google.datastore.v1.CommitResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.CommitResponse) com.google.datastore.v1.CommitResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CommitResponse.class, com.google.datastore.v1.CommitResponse.Builder.class); + com.google.datastore.v1.CommitResponse.class, + com.google.datastore.v1.CommitResponse.Builder.class); } // Construct using com.google.datastore.v1.CommitResponse.newBuilder() @@ -450,17 +497,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMutationResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_CommitResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_CommitResponse_descriptor; } @java.lang.Override @@ -503,7 +550,8 @@ public com.google.datastore.v1.CommitResponse build() { @java.lang.Override public com.google.datastore.v1.CommitResponse buildPartial() { - com.google.datastore.v1.CommitResponse result = new com.google.datastore.v1.CommitResponse(this); + com.google.datastore.v1.CommitResponse result = + new com.google.datastore.v1.CommitResponse(this); int from_bitField0_ = bitField0_; if (mutationResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -528,38 +576,39 @@ public com.google.datastore.v1.CommitResponse 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.datastore.v1.CommitResponse) { - return mergeFrom((com.google.datastore.v1.CommitResponse)other); + return mergeFrom((com.google.datastore.v1.CommitResponse) other); } else { super.mergeFrom(other); return this; @@ -586,9 +635,10 @@ public Builder mergeFrom(com.google.datastore.v1.CommitResponse other) { mutationResultsBuilder_ = null; mutationResults_ = other.mutationResults_; bitField0_ = (bitField0_ & ~0x00000001); - mutationResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMutationResultsFieldBuilder() : null; + mutationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMutationResultsFieldBuilder() + : null; } else { mutationResultsBuilder_.addAllMessages(other.mutationResults_); } @@ -628,21 +678,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List mutationResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMutationResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mutationResults_ = new java.util.ArrayList(mutationResults_); + mutationResults_ = + new java.util.ArrayList(mutationResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.MutationResult, com.google.datastore.v1.MutationResult.Builder, com.google.datastore.v1.MutationResultOrBuilder> mutationResultsBuilder_; + com.google.datastore.v1.MutationResult, + com.google.datastore.v1.MutationResult.Builder, + com.google.datastore.v1.MutationResultOrBuilder> + mutationResultsBuilder_; /** + * + * *
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -658,6 +716,8 @@ public java.util.List getMutationResults
       }
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -673,6 +733,8 @@ public int getMutationResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -688,6 +750,8 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -695,8 +759,7 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public Builder setMutationResults(
-        int index, com.google.datastore.v1.MutationResult value) {
+    public Builder setMutationResults(int index, com.google.datastore.v1.MutationResult value) {
       if (mutationResultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -710,6 +773,8 @@ public Builder setMutationResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -729,6 +794,8 @@ public Builder setMutationResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -750,6 +817,8 @@ public Builder addMutationResults(com.google.datastore.v1.MutationResult value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -757,8 +826,7 @@ public Builder addMutationResults(com.google.datastore.v1.MutationResult value)
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public Builder addMutationResults(
-        int index, com.google.datastore.v1.MutationResult value) {
+    public Builder addMutationResults(int index, com.google.datastore.v1.MutationResult value) {
       if (mutationResultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -772,6 +840,8 @@ public Builder addMutationResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -791,6 +861,8 @@ public Builder addMutationResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -810,6 +882,8 @@ public Builder addMutationResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -821,8 +895,7 @@ public Builder addAllMutationResults(
         java.lang.Iterable values) {
       if (mutationResultsBuilder_ == null) {
         ensureMutationResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, mutationResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mutationResults_);
         onChanged();
       } else {
         mutationResultsBuilder_.addAllMessages(values);
@@ -830,6 +903,8 @@ public Builder addAllMutationResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -848,6 +923,8 @@ public Builder clearMutationResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -866,6 +943,8 @@ public Builder removeMutationResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -873,11 +952,12 @@ public Builder removeMutationResults(int index) {
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public com.google.datastore.v1.MutationResult.Builder getMutationResultsBuilder(
-        int index) {
+    public com.google.datastore.v1.MutationResult.Builder getMutationResultsBuilder(int index) {
       return getMutationResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -885,14 +965,16 @@ public com.google.datastore.v1.MutationResult.Builder getMutationResultsBuilder(
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(
-        int index) {
+    public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(int index) {
       if (mutationResultsBuilder_ == null) {
-        return mutationResults_.get(index);  } else {
+        return mutationResults_.get(index);
+      } else {
         return mutationResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -900,8 +982,8 @@ public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuild
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public java.util.List 
-         getMutationResultsOrBuilderList() {
+    public java.util.List
+        getMutationResultsOrBuilderList() {
       if (mutationResultsBuilder_ != null) {
         return mutationResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -909,6 +991,8 @@ public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -917,10 +1001,12 @@ public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuild
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
     public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder() {
-      return getMutationResultsFieldBuilder().addBuilder(
-          com.google.datastore.v1.MutationResult.getDefaultInstance());
+      return getMutationResultsFieldBuilder()
+          .addBuilder(com.google.datastore.v1.MutationResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -928,12 +1014,13 @@ public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
-        int index) {
-      return getMutationResultsFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.MutationResult.getDefaultInstance());
+    public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(int index) {
+      return getMutationResultsFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.MutationResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The result of performing the mutations.
      * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -941,16 +1028,22 @@ public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
      *
      * repeated .google.datastore.v1.MutationResult mutation_results = 3;
      */
-    public java.util.List 
-         getMutationResultsBuilderList() {
+    public java.util.List
+        getMutationResultsBuilderList() {
       return getMutationResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.MutationResult, com.google.datastore.v1.MutationResult.Builder, com.google.datastore.v1.MutationResultOrBuilder> 
+            com.google.datastore.v1.MutationResult,
+            com.google.datastore.v1.MutationResult.Builder,
+            com.google.datastore.v1.MutationResultOrBuilder>
         getMutationResultsFieldBuilder() {
       if (mutationResultsBuilder_ == null) {
-        mutationResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.MutationResult, com.google.datastore.v1.MutationResult.Builder, com.google.datastore.v1.MutationResultOrBuilder>(
+        mutationResultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.MutationResult,
+                com.google.datastore.v1.MutationResult.Builder,
+                com.google.datastore.v1.MutationResultOrBuilder>(
                 mutationResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -960,14 +1053,17 @@ public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
       return mutationResultsBuilder_;
     }
 
-    private int indexUpdates_ ;
+    private int indexUpdates_;
     /**
+     *
+     *
      * 
      * The number of index entries updated during the commit, or zero if none were
      * updated.
      * 
* * int32 index_updates = 4; + * * @return The indexUpdates. */ @java.lang.Override @@ -975,32 +1071,38 @@ public int getIndexUpdates() { return indexUpdates_; } /** + * + * *
      * The number of index entries updated during the commit, or zero if none were
      * updated.
      * 
* * int32 index_updates = 4; + * * @param value The indexUpdates to set. * @return This builder for chaining. */ public Builder setIndexUpdates(int value) { - + indexUpdates_ = value; onChanged(); return this; } /** + * + * *
      * The number of index entries updated during the commit, or zero if none were
      * updated.
      * 
* * int32 index_updates = 4; + * * @return This builder for chaining. */ public Builder clearIndexUpdates() { - + indexUpdates_ = 0; onChanged(); return this; @@ -1008,34 +1110,47 @@ public Builder clearIndexUpdates() { private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + commitTimeBuilder_; /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
* * .google.protobuf.Timestamp commit_time = 8; + * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return commitTimeBuilder_ != null || commitTime_ != null; } /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
* * .google.protobuf.Timestamp commit_time = 8; + * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1056,14 +1171,15 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
* * .google.protobuf.Timestamp commit_time = 8; */ - public Builder setCommitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimeBuilder_ == null) { commitTime_ = builderForValue.build(); onChanged(); @@ -1074,6 +1190,8 @@ public Builder setCommitTime( return this; } /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1084,7 +1202,7 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { if (commitTime_ != null) { commitTime_ = - com.google.protobuf.Timestamp.newBuilder(commitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(commitTime_).mergeFrom(value).buildPartial(); } else { commitTime_ = value; } @@ -1096,6 +1214,8 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1114,6 +1234,8 @@ public Builder clearCommitTime() { return this; } /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1121,11 +1243,13 @@ public Builder clearCommitTime() { * .google.protobuf.Timestamp commit_time = 8; */ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { - + onChanged(); return getCommitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1136,11 +1260,14 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { if (commitTimeBuilder_ != null) { return commitTimeBuilder_.getMessageOrBuilder(); } else { - return commitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; } } /** + * + * *
      * The transaction commit timestamp. Not set for non-transactional commits.
      * 
@@ -1148,21 +1275,24 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { * .google.protobuf.Timestamp commit_time = 8; */ 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> getCommitTimeFieldBuilder() { if (commitTimeBuilder_ == null) { - commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCommitTime(), - getParentForChildren(), - isClean()); + commitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCommitTime(), getParentForChildren(), isClean()); commitTime_ = null; } return commitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1172,12 +1302,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.CommitResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.CommitResponse) private static final com.google.datastore.v1.CommitResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.CommitResponse(); } @@ -1186,16 +1316,16 @@ public static com.google.datastore.v1.CommitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommitResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommitResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1210,6 +1340,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.CommitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java index a1487efe5..9b1681cfa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface CommitResponseOrBuilder extends +public interface CommitResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.CommitResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -15,9 +33,10 @@ public interface CommitResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
-  java.util.List 
-      getMutationResultsList();
+  java.util.List getMutationResultsList();
   /**
+   *
+   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -27,6 +46,8 @@ public interface CommitResponseOrBuilder extends
    */
   com.google.datastore.v1.MutationResult getMutationResults(int index);
   /**
+   *
+   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -36,6 +57,8 @@ public interface CommitResponseOrBuilder extends
    */
   int getMutationResultsCount();
   /**
+   *
+   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -43,9 +66,11 @@ public interface CommitResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
-  java.util.List 
+  java.util.List
       getMutationResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * The result of performing the mutations.
    * The i-th mutation result corresponds to the i-th mutation in the request.
@@ -53,39 +78,49 @@ public interface CommitResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.MutationResult mutation_results = 3;
    */
-  com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(
-      int index);
+  com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The number of index entries updated during the commit, or zero if none were
    * updated.
    * 
* * int32 index_updates = 4; + * * @return The indexUpdates. */ int getIndexUpdates(); /** + * + * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
* * .google.protobuf.Timestamp commit_time = 8; + * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** + * + * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
* * .google.protobuf.Timestamp commit_time = 8; + * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** + * + * *
    * The transaction commit timestamp. Not set for non-transactional commits.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java index 79bccdda8..72432f944 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.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/datastore/v1/query.proto package com.google.datastore.v1; /** + * + * *
  * A filter that merges multiple other filters using the given operator.
  * 
* * Protobuf type {@code google.datastore.v1.CompositeFilter} */ -public final class CompositeFilter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CompositeFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.CompositeFilter) CompositeFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CompositeFilter.newBuilder() to construct. private CompositeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CompositeFilter() { op_ = 0; filters_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private CompositeFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CompositeFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CompositeFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private CompositeFilter( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - op_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - filters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + op_ = rawValue; + break; } - filters_.add( - input.readMessage(com.google.datastore.v1.Filter.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + filters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + filters_.add( + input.readMessage(com.google.datastore.v1.Filter.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private CompositeFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { filters_ = java.util.Collections.unmodifiableList(filters_); @@ -94,29 +112,35 @@ private CompositeFilter( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_CompositeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CompositeFilter.class, com.google.datastore.v1.CompositeFilter.Builder.class); + com.google.datastore.v1.CompositeFilter.class, + com.google.datastore.v1.CompositeFilter.Builder.class); } /** + * + * *
    * A composite filter operator.
    * 
* * Protobuf enum {@code google.datastore.v1.CompositeFilter.Operator} */ - public enum Operator - implements com.google.protobuf.ProtocolMessageEnum { + public enum Operator implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -125,6 +149,8 @@ public enum Operator */ OPERATOR_UNSPECIFIED(0), /** + * + * *
      * The results are required to satisfy each of the combined filters.
      * 
@@ -136,6 +162,8 @@ public enum Operator ; /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -144,6 +172,8 @@ public enum Operator */ public static final int OPERATOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The results are required to satisfy each of the combined filters.
      * 
@@ -152,7 +182,6 @@ public enum Operator */ public static final int AND_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -177,48 +206,47 @@ public static Operator valueOf(int value) { */ public static Operator forNumber(int value) { switch (value) { - case 0: return OPERATOR_UNSPECIFIED; - case 1: return AND; - default: return null; + case 0: + return OPERATOR_UNSPECIFIED; + case 1: + return AND; + 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< - Operator> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operator findValueByNumber(int number) { - return Operator.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 Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.v1.CompositeFilter.getDescriptor().getEnumTypes().get(0); } private static final Operator[] VALUES = values(); - public static Operator valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Operator 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; @@ -238,33 +266,44 @@ private Operator(int value) { public static final int OP_FIELD_NUMBER = 1; private int op_; /** + * + * *
    * The operator for combining multiple filters.
    * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @return The enum numeric value on the wire for op. */ - @java.lang.Override public int getOpValue() { + @java.lang.Override + public int getOpValue() { return op_; } /** + * + * *
    * The operator for combining multiple filters.
    * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @return The op. */ - @java.lang.Override public com.google.datastore.v1.CompositeFilter.Operator getOp() { + @java.lang.Override + public com.google.datastore.v1.CompositeFilter.Operator getOp() { @SuppressWarnings("deprecation") - com.google.datastore.v1.CompositeFilter.Operator result = com.google.datastore.v1.CompositeFilter.Operator.valueOf(op_); + com.google.datastore.v1.CompositeFilter.Operator result = + com.google.datastore.v1.CompositeFilter.Operator.valueOf(op_); return result == null ? com.google.datastore.v1.CompositeFilter.Operator.UNRECOGNIZED : result; } public static final int FILTERS_FIELD_NUMBER = 2; private java.util.List filters_; /** + * + * *
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -277,6 +316,8 @@ public java.util.List getFiltersList() {
     return filters_;
   }
   /**
+   *
+   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -285,11 +326,13 @@ public java.util.List getFiltersList() {
    * repeated .google.datastore.v1.Filter filters = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getFiltersOrBuilderList() {
     return filters_;
   }
   /**
+   *
+   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -302,6 +345,8 @@ public int getFiltersCount() {
     return filters_.size();
   }
   /**
+   *
+   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -314,6 +359,8 @@ public com.google.datastore.v1.Filter getFilters(int index) {
     return filters_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -322,12 +369,12 @@ public com.google.datastore.v1.Filter getFilters(int index) {
    * repeated .google.datastore.v1.Filter filters = 2;
    */
   @java.lang.Override
-  public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
-      int index) {
+  public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index) {
     return filters_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -339,8 +386,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 (op_ != com.google.datastore.v1.CompositeFilter.Operator.OPERATOR_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, op_);
     }
@@ -357,12 +403,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (op_ != com.google.datastore.v1.CompositeFilter.Operator.OPERATOR_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, op_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, op_);
     }
     for (int i = 0; i < filters_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, filters_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, filters_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -372,7 +416,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.CompositeFilter)) {
       return super.equals(obj);
@@ -380,8 +424,7 @@ public boolean equals(final java.lang.Object obj) {
     com.google.datastore.v1.CompositeFilter other = (com.google.datastore.v1.CompositeFilter) obj;
 
     if (op_ != other.op_) return false;
-    if (!getFiltersList()
-        .equals(other.getFiltersList())) return false;
+    if (!getFiltersList().equals(other.getFiltersList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -404,118 +447,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.CompositeFilter parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.CompositeFilter parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.v1.CompositeFilter parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.datastore.v1.CompositeFilter parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.CompositeFilter parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.CompositeFilter prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A filter that merges multiple other filters using the given operator.
    * 
* * Protobuf type {@code google.datastore.v1.CompositeFilter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.CompositeFilter) com.google.datastore.v1.CompositeFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_CompositeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.CompositeFilter.class, com.google.datastore.v1.CompositeFilter.Builder.class); + com.google.datastore.v1.CompositeFilter.class, + com.google.datastore.v1.CompositeFilter.Builder.class); } // Construct using com.google.datastore.v1.CompositeFilter.newBuilder() @@ -523,17 +575,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFiltersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -549,9 +601,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_CompositeFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_CompositeFilter_descriptor; } @java.lang.Override @@ -570,7 +622,8 @@ public com.google.datastore.v1.CompositeFilter build() { @java.lang.Override public com.google.datastore.v1.CompositeFilter buildPartial() { - com.google.datastore.v1.CompositeFilter result = new com.google.datastore.v1.CompositeFilter(this); + com.google.datastore.v1.CompositeFilter result = + new com.google.datastore.v1.CompositeFilter(this); int from_bitField0_ = bitField0_; result.op_ = op_; if (filtersBuilder_ == null) { @@ -590,38 +643,39 @@ public com.google.datastore.v1.CompositeFilter 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.datastore.v1.CompositeFilter) { - return mergeFrom((com.google.datastore.v1.CompositeFilter)other); + return mergeFrom((com.google.datastore.v1.CompositeFilter) other); } else { super.mergeFrom(other); return this; @@ -651,9 +705,10 @@ public Builder mergeFrom(com.google.datastore.v1.CompositeFilter other) { filtersBuilder_ = null; filters_ = other.filters_; bitField0_ = (bitField0_ & ~0x00000001); - filtersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFiltersFieldBuilder() : null; + filtersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFiltersFieldBuilder() + : null; } else { filtersBuilder_.addAllMessages(other.filters_); } @@ -687,55 +742,72 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int op_ = 0; /** + * + * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @return The enum numeric value on the wire for op. */ - @java.lang.Override public int getOpValue() { + @java.lang.Override + public int getOpValue() { return op_; } /** + * + * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @param value The enum numeric value on the wire for op to set. * @return This builder for chaining. */ public Builder setOpValue(int value) { - + op_ = value; onChanged(); return this; } /** + * + * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @return The op. */ @java.lang.Override public com.google.datastore.v1.CompositeFilter.Operator getOp() { @SuppressWarnings("deprecation") - com.google.datastore.v1.CompositeFilter.Operator result = com.google.datastore.v1.CompositeFilter.Operator.valueOf(op_); - return result == null ? com.google.datastore.v1.CompositeFilter.Operator.UNRECOGNIZED : result; + com.google.datastore.v1.CompositeFilter.Operator result = + com.google.datastore.v1.CompositeFilter.Operator.valueOf(op_); + return result == null + ? com.google.datastore.v1.CompositeFilter.Operator.UNRECOGNIZED + : result; } /** + * + * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @param value The op to set. * @return This builder for chaining. */ @@ -743,39 +815,48 @@ public Builder setOp(com.google.datastore.v1.CompositeFilter.Operator value) { if (value == null) { throw new NullPointerException(); } - + op_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The operator for combining multiple filters.
      * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @return This builder for chaining. */ public Builder clearOp() { - + op_ = 0; onChanged(); return this; } private java.util.List filters_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { filters_ = new java.util.ArrayList(filters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder> filtersBuilder_; + com.google.datastore.v1.Filter, + com.google.datastore.v1.Filter.Builder, + com.google.datastore.v1.FilterOrBuilder> + filtersBuilder_; /** + * + * *
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -791,6 +872,8 @@ public java.util.List getFiltersList() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -806,6 +889,8 @@ public int getFiltersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -821,6 +906,8 @@ public com.google.datastore.v1.Filter getFilters(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -828,8 +915,7 @@ public com.google.datastore.v1.Filter getFilters(int index) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder setFilters(
-        int index, com.google.datastore.v1.Filter value) {
+    public Builder setFilters(int index, com.google.datastore.v1.Filter value) {
       if (filtersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -843,6 +929,8 @@ public Builder setFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -850,8 +938,7 @@ public Builder setFilters(
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder setFilters(
-        int index, com.google.datastore.v1.Filter.Builder builderForValue) {
+    public Builder setFilters(int index, com.google.datastore.v1.Filter.Builder builderForValue) {
       if (filtersBuilder_ == null) {
         ensureFiltersIsMutable();
         filters_.set(index, builderForValue.build());
@@ -862,6 +949,8 @@ public Builder setFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -883,6 +972,8 @@ public Builder addFilters(com.google.datastore.v1.Filter value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -890,8 +981,7 @@ public Builder addFilters(com.google.datastore.v1.Filter value) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder addFilters(
-        int index, com.google.datastore.v1.Filter value) {
+    public Builder addFilters(int index, com.google.datastore.v1.Filter value) {
       if (filtersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -905,6 +995,8 @@ public Builder addFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -912,8 +1004,7 @@ public Builder addFilters(
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder addFilters(
-        com.google.datastore.v1.Filter.Builder builderForValue) {
+    public Builder addFilters(com.google.datastore.v1.Filter.Builder builderForValue) {
       if (filtersBuilder_ == null) {
         ensureFiltersIsMutable();
         filters_.add(builderForValue.build());
@@ -924,6 +1015,8 @@ public Builder addFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -931,8 +1024,7 @@ public Builder addFilters(
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public Builder addFilters(
-        int index, com.google.datastore.v1.Filter.Builder builderForValue) {
+    public Builder addFilters(int index, com.google.datastore.v1.Filter.Builder builderForValue) {
       if (filtersBuilder_ == null) {
         ensureFiltersIsMutable();
         filters_.add(index, builderForValue.build());
@@ -943,6 +1035,8 @@ public Builder addFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -954,8 +1048,7 @@ public Builder addAllFilters(
         java.lang.Iterable values) {
       if (filtersBuilder_ == null) {
         ensureFiltersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, filters_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filters_);
         onChanged();
       } else {
         filtersBuilder_.addAllMessages(values);
@@ -963,6 +1056,8 @@ public Builder addAllFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -981,6 +1076,8 @@ public Builder clearFilters() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -999,6 +1096,8 @@ public Builder removeFilters(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1006,11 +1105,12 @@ public Builder removeFilters(int index) {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public com.google.datastore.v1.Filter.Builder getFiltersBuilder(
-        int index) {
+    public com.google.datastore.v1.Filter.Builder getFiltersBuilder(int index) {
       return getFiltersFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1018,14 +1118,16 @@ public com.google.datastore.v1.Filter.Builder getFiltersBuilder(
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
-        int index) {
+    public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index) {
       if (filtersBuilder_ == null) {
-        return filters_.get(index);  } else {
+        return filters_.get(index);
+      } else {
         return filtersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1033,8 +1135,8 @@ public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public java.util.List 
-         getFiltersOrBuilderList() {
+    public java.util.List
+        getFiltersOrBuilderList() {
       if (filtersBuilder_ != null) {
         return filtersBuilder_.getMessageOrBuilderList();
       } else {
@@ -1042,6 +1144,8 @@ public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1050,10 +1154,12 @@ public com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
      * repeated .google.datastore.v1.Filter filters = 2;
      */
     public com.google.datastore.v1.Filter.Builder addFiltersBuilder() {
-      return getFiltersFieldBuilder().addBuilder(
-          com.google.datastore.v1.Filter.getDefaultInstance());
+      return getFiltersFieldBuilder()
+          .addBuilder(com.google.datastore.v1.Filter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1061,12 +1167,13 @@ public com.google.datastore.v1.Filter.Builder addFiltersBuilder() {
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public com.google.datastore.v1.Filter.Builder addFiltersBuilder(
-        int index) {
-      return getFiltersFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.Filter.getDefaultInstance());
+    public com.google.datastore.v1.Filter.Builder addFiltersBuilder(int index) {
+      return getFiltersFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.Filter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of filters to combine.
      * Must contain at least one filter.
@@ -1074,27 +1181,29 @@ public com.google.datastore.v1.Filter.Builder addFiltersBuilder(
      *
      * repeated .google.datastore.v1.Filter filters = 2;
      */
-    public java.util.List 
-         getFiltersBuilderList() {
+    public java.util.List getFiltersBuilderList() {
       return getFiltersFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder> 
+            com.google.datastore.v1.Filter,
+            com.google.datastore.v1.Filter.Builder,
+            com.google.datastore.v1.FilterOrBuilder>
         getFiltersFieldBuilder() {
       if (filtersBuilder_ == null) {
-        filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder>(
-                filters_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        filtersBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.Filter,
+                com.google.datastore.v1.Filter.Builder,
+                com.google.datastore.v1.FilterOrBuilder>(
+                filters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         filters_ = null;
       }
       return filtersBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1104,12 +1213,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.CompositeFilter)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.CompositeFilter)
   private static final com.google.datastore.v1.CompositeFilter DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.CompositeFilter();
   }
@@ -1118,16 +1227,16 @@ public static com.google.datastore.v1.CompositeFilter getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CompositeFilter parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new CompositeFilter(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CompositeFilter parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new CompositeFilter(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1142,6 +1251,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.CompositeFilter getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
index 93d6bde77..ad644173e 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java
@@ -1,32 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
-public interface CompositeFilterOrBuilder extends
+public interface CompositeFilterOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.CompositeFilter)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The operator for combining multiple filters.
    * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @return The enum numeric value on the wire for op. */ int getOpValue(); /** + * + * *
    * The operator for combining multiple filters.
    * 
* * .google.datastore.v1.CompositeFilter.Operator op = 1; + * * @return The op. */ com.google.datastore.v1.CompositeFilter.Operator getOp(); /** + * + * *
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -34,9 +58,10 @@ public interface CompositeFilterOrBuilder extends
    *
    * repeated .google.datastore.v1.Filter filters = 2;
    */
-  java.util.List 
-      getFiltersList();
+  java.util.List getFiltersList();
   /**
+   *
+   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -46,6 +71,8 @@ public interface CompositeFilterOrBuilder extends
    */
   com.google.datastore.v1.Filter getFilters(int index);
   /**
+   *
+   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -55,6 +82,8 @@ public interface CompositeFilterOrBuilder extends
    */
   int getFiltersCount();
   /**
+   *
+   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -62,9 +91,10 @@ public interface CompositeFilterOrBuilder extends
    *
    * repeated .google.datastore.v1.Filter filters = 2;
    */
-  java.util.List 
-      getFiltersOrBuilderList();
+  java.util.List getFiltersOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of filters to combine.
    * Must contain at least one filter.
@@ -72,6 +102,5 @@ public interface CompositeFilterOrBuilder extends
    *
    * repeated .google.datastore.v1.Filter filters = 2;
    */
-  com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(
-      int index);
+  com.google.datastore.v1.FilterOrBuilder getFiltersOrBuilder(int index);
 }
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java
new file mode 100644
index 000000000..256f06c9a
--- /dev/null
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java
@@ -0,0 +1,424 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/v1/datastore.proto
+
+package com.google.datastore.v1;
+
+public final class DatastoreProto {
+  private DatastoreProto() {}
+
+  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_datastore_v1_LookupRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_LookupResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_RunQueryRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_RunQueryResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_BeginTransactionRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_BeginTransactionRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_BeginTransactionResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_BeginTransactionResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_RollbackRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_RollbackResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_CommitRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_CommitRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_CommitResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_CommitResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_AllocateIdsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_AllocateIdsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_AllocateIdsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_AllocateIdsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_ReserveIdsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_ReserveIdsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Mutation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Mutation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_MutationResult_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_MutationResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_ReadOptions_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_TransactionOptions_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n#google/datastore/v1/datastore.proto\022\023g"
+          + "oogle.datastore.v1\032\034google/api/annotatio"
+          + "ns.proto\032\027google/api/client.proto\032\037googl"
+          + "e/api/field_behavior.proto\032 google/datas"
+          + "tore/v1/entity.proto\032\037google/datastore/v"
+          + "1/query.proto\032\037google/protobuf/timestamp"
+          + ".proto\"\215\001\n\rLookupRequest\022\027\n\nproject_id\030\010"
+          + " \001(\tB\003\340A\002\0226\n\014read_options\030\001 \001(\0132 .google"
+          + ".datastore.v1.ReadOptions\022+\n\004keys\030\003 \003(\0132"
+          + "\030.google.datastore.v1.KeyB\003\340A\002\"\321\001\n\016Looku"
+          + "pResponse\0220\n\005found\030\001 \003(\0132!.google.datast"
+          + "ore.v1.EntityResult\0222\n\007missing\030\002 \003(\0132!.g"
+          + "oogle.datastore.v1.EntityResult\022*\n\010defer"
+          + "red\030\003 \003(\0132\030.google.datastore.v1.Key\022-\n\tr"
+          + "ead_time\030\007 \001(\0132\032.google.protobuf.Timesta"
+          + "mp\"\211\002\n\017RunQueryRequest\022\027\n\nproject_id\030\010 \001"
+          + "(\tB\003\340A\002\0226\n\014partition_id\030\002 \001(\0132 .google.d"
+          + "atastore.v1.PartitionId\0226\n\014read_options\030"
+          + "\001 \001(\0132 .google.datastore.v1.ReadOptions\022"
+          + "+\n\005query\030\003 \001(\0132\032.google.datastore.v1.Que"
+          + "ryH\000\0222\n\tgql_query\030\007 \001(\0132\035.google.datasto"
+          + "re.v1.GqlQueryH\000B\014\n\nquery_type\"s\n\020RunQue"
+          + "ryResponse\0224\n\005batch\030\001 \001(\0132%.google.datas"
+          + "tore.v1.QueryResultBatch\022)\n\005query\030\002 \001(\0132"
+          + "\032.google.datastore.v1.Query\"x\n\027BeginTran"
+          + "sactionRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022"
+          + "D\n\023transaction_options\030\n \001(\0132\'.google.da"
+          + "tastore.v1.TransactionOptions\"/\n\030BeginTr"
+          + "ansactionResponse\022\023\n\013transaction\030\001 \001(\014\"D"
+          + "\n\017RollbackRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340"
+          + "A\002\022\030\n\013transaction\030\001 \001(\014B\003\340A\002\"\022\n\020Rollback"
+          + "Response\"\210\002\n\rCommitRequest\022\027\n\nproject_id"
+          + "\030\010 \001(\tB\003\340A\002\0225\n\004mode\030\005 \001(\0162\'.google.datas"
+          + "tore.v1.CommitRequest.Mode\022\025\n\013transactio"
+          + "n\030\001 \001(\014H\000\0220\n\tmutations\030\006 \003(\0132\035.google.da"
+          + "tastore.v1.Mutation\"F\n\004Mode\022\024\n\020MODE_UNSP"
+          + "ECIFIED\020\000\022\021\n\rTRANSACTIONAL\020\001\022\025\n\021NON_TRAN"
+          + "SACTIONAL\020\002B\026\n\024transaction_selector\"\227\001\n\016"
+          + "CommitResponse\022=\n\020mutation_results\030\003 \003(\013"
+          + "2#.google.datastore.v1.MutationResult\022\025\n"
+          + "\rindex_updates\030\004 \001(\005\022/\n\013commit_time\030\010 \001("
+          + "\0132\032.google.protobuf.Timestamp\"Z\n\022Allocat"
+          + "eIdsRequest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022+\n\004"
+          + "keys\030\001 \003(\0132\030.google.datastore.v1.KeyB\003\340A"
+          + "\002\"=\n\023AllocateIdsResponse\022&\n\004keys\030\001 \003(\0132\030"
+          + ".google.datastore.v1.Key\"n\n\021ReserveIdsRe"
+          + "quest\022\027\n\nproject_id\030\010 \001(\tB\003\340A\002\022\023\n\013databa"
+          + "se_id\030\t \001(\t\022+\n\004keys\030\001 \003(\0132\030.google.datas"
+          + "tore.v1.KeyB\003\340A\002\"\024\n\022ReserveIdsResponse\"\272"
+          + "\002\n\010Mutation\022-\n\006insert\030\004 \001(\0132\033.google.dat"
+          + "astore.v1.EntityH\000\022-\n\006update\030\005 \001(\0132\033.goo"
+          + "gle.datastore.v1.EntityH\000\022-\n\006upsert\030\006 \001("
+          + "\0132\033.google.datastore.v1.EntityH\000\022*\n\006dele"
+          + "te\030\007 \001(\0132\030.google.datastore.v1.KeyH\000\022\026\n\014"
+          + "base_version\030\010 \001(\003H\001\0221\n\013update_time\030\013 \001("
+          + "\0132\032.google.protobuf.TimestampH\001B\013\n\topera"
+          + "tionB\035\n\033conflict_detection_strategy\"\224\001\n\016"
+          + "MutationResult\022%\n\003key\030\003 \001(\0132\030.google.dat"
+          + "astore.v1.Key\022\017\n\007version\030\004 \001(\003\022/\n\013update"
+          + "_time\030\006 \001(\0132\032.google.protobuf.Timestamp\022"
+          + "\031\n\021conflict_detected\030\005 \001(\010\"\206\002\n\013ReadOptio"
+          + "ns\022L\n\020read_consistency\030\001 \001(\01620.google.da"
+          + "tastore.v1.ReadOptions.ReadConsistencyH\000"
+          + "\022\025\n\013transaction\030\002 \001(\014H\000\022/\n\tread_time\030\004 \001"
+          + "(\0132\032.google.protobuf.TimestampH\000\"M\n\017Read"
+          + "Consistency\022 \n\034READ_CONSISTENCY_UNSPECIF"
+          + "IED\020\000\022\n\n\006STRONG\020\001\022\014\n\010EVENTUAL\020\002B\022\n\020consi"
+          + "stency_type\"\222\002\n\022TransactionOptions\022G\n\nre"
+          + "ad_write\030\001 \001(\01321.google.datastore.v1.Tra"
+          + "nsactionOptions.ReadWriteH\000\022E\n\tread_only"
+          + "\030\002 \001(\01320.google.datastore.v1.Transaction"
+          + "Options.ReadOnlyH\000\032)\n\tReadWrite\022\034\n\024previ"
+          + "ous_transaction\030\001 \001(\014\0329\n\010ReadOnly\022-\n\trea"
+          + "d_time\030\001 \001(\0132\032.google.protobuf.Timestamp"
+          + "B\006\n\004mode2\223\n\n\tDatastore\022\235\001\n\006Lookup\022\".goog"
+          + "le.datastore.v1.LookupRequest\032#.google.d"
+          + "atastore.v1.LookupResponse\"J\202\323\344\223\002%\" /v1/"
+          + "projects/{project_id}:lookup:\001*\332A\034projec"
+          + "t_id,read_options,keys\022\206\001\n\010RunQuery\022$.go"
+          + "ogle.datastore.v1.RunQueryRequest\032%.goog"
+          + "le.datastore.v1.RunQueryResponse\"-\202\323\344\223\002\'"
+          + "\"\"/v1/projects/{project_id}:runQuery:\001*\022"
+          + "\263\001\n\020BeginTransaction\022,.google.datastore."
+          + "v1.BeginTransactionRequest\032-.google.data"
+          + "store.v1.BeginTransactionResponse\"B\202\323\344\223\002"
+          + "/\"*/v1/projects/{project_id}:beginTransa"
+          + "ction:\001*\332A\nproject_id\022\302\001\n\006Commit\022\".googl"
+          + "e.datastore.v1.CommitRequest\032#.google.da"
+          + "tastore.v1.CommitResponse\"o\202\323\344\223\002%\" /v1/p"
+          + "rojects/{project_id}:commit:\001*\332A%project"
+          + "_id,mode,transaction,mutations\332A\031project"
+          + "_id,mode,mutations\022\237\001\n\010Rollback\022$.google"
+          + ".datastore.v1.RollbackRequest\032%.google.d"
+          + "atastore.v1.RollbackResponse\"F\202\323\344\223\002\'\"\"/v"
+          + "1/projects/{project_id}:rollback:\001*\332A\026pr"
+          + "oject_id,transaction\022\244\001\n\013AllocateIds\022\'.g"
+          + "oogle.datastore.v1.AllocateIdsRequest\032(."
+          + "google.datastore.v1.AllocateIdsResponse\""
+          + "B\202\323\344\223\002*\"%/v1/projects/{project_id}:alloc"
+          + "ateIds:\001*\332A\017project_id,keys\022\240\001\n\nReserveI"
+          + "ds\022&.google.datastore.v1.ReserveIdsReque"
+          + "st\032\'.google.datastore.v1.ReserveIdsRespo"
+          + "nse\"A\202\323\344\223\002)\"$/v1/projects/{project_id}:r"
+          + "eserveIds:\001*\332A\017project_id,keys\032v\312A\030datas"
+          + "tore.googleapis.com\322AXhttps://www.google"
+          + "apis.com/auth/cloud-platform,https://www"
+          + ".googleapis.com/auth/datastoreB\300\001\n\027com.g"
+          + "oogle.datastore.v1B\016DatastoreProtoP\001Z
  * A Datastore data object.
  * An entity is limited to 1 megabyte when stored. That _roughly_
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.datastore.v1.Entity}
  */
-public final class Entity extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Entity extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.Entity)
     EntityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Entity.newBuilder() to construct.
   private Entity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Entity() {
-  }
+
+  private Entity() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Entity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Entity(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,39 +72,43 @@ private Entity(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.datastore.v1.Key.Builder subBuilder = null;
-            if (key_ != null) {
-              subBuilder = key_.toBuilder();
-            }
-            key_ = input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(key_);
-              key_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.datastore.v1.Key.Builder subBuilder = null;
+              if (key_ != null) {
+                subBuilder = key_.toBuilder();
+              }
+              key_ = input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(key_);
+                key_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              properties_ = com.google.protobuf.MapField.newMapField(
-                  PropertiesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            com.google.protobuf.MapEntry
-            properties__ = input.readMessage(
-                PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            properties_.getMutableMap().put(
-                properties__.getKey(), properties__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                properties_ =
+                    com.google.protobuf.MapField.newMapField(
+                        PropertiesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  properties__ =
+                      input.readMessage(
+                          PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              properties_.getMutableMap().put(properties__.getKey(), properties__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -96,34 +116,34 @@ private Entity(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.v1.EntityProto
+        .internal_static_google_datastore_v1_Entity_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 3:
         return internalGetProperties();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_fieldAccessorTable
+    return com.google.datastore.v1.EntityProto
+        .internal_static_google_datastore_v1_Entity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.datastore.v1.Entity.class, com.google.datastore.v1.Entity.Builder.class);
   }
@@ -131,6 +151,8 @@ protected com.google.protobuf.MapField internalGetMapField(
   public static final int KEY_FIELD_NUMBER = 1;
   private com.google.datastore.v1.Key key_;
   /**
+   *
+   *
    * 
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -140,6 +162,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * .google.datastore.v1.Key key = 1; + * * @return Whether the key field is set. */ @java.lang.Override @@ -147,6 +170,8 @@ public boolean hasKey() { return key_ != null; } /** + * + * *
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -156,6 +181,7 @@ public boolean hasKey() {
    * 
* * .google.datastore.v1.Key key = 1; + * * @return The key. */ @java.lang.Override @@ -163,6 +189,8 @@ public com.google.datastore.v1.Key getKey() { return key_ == null ? com.google.datastore.v1.Key.getDefaultInstance() : key_; } /** + * + * *
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -179,24 +207,26 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 3;
+
   private static final class PropertiesDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.datastore.v1.Value> defaultEntry =
+    static final com.google.protobuf.MapEntry
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_PropertiesEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.datastore.v1.Value.getDefaultInstance());
+                .newDefaultInstance(
+                    com.google.datastore.v1.EntityProto
+                        .internal_static_google_datastore_v1_Entity_PropertiesEntry_descriptor,
+                    com.google.protobuf.WireFormat.FieldType.STRING,
+                    "",
+                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                    com.google.datastore.v1.Value.getDefaultInstance());
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, com.google.datastore.v1.Value> properties_;
+
+  private com.google.protobuf.MapField properties_;
+
   private com.google.protobuf.MapField
-  internalGetProperties() {
+      internalGetProperties() {
     if (properties_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          PropertiesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry);
     }
     return properties_;
   }
@@ -205,6 +235,8 @@ public int getPropertiesCount() {
     return internalGetProperties().getMap().size();
   }
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -216,22 +248,22 @@ public int getPropertiesCount() {
    *
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
-
   @java.lang.Override
-  public boolean containsProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getPropertiesMap()} instead.
-   */
+  /** Use {@link #getPropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getProperties() {
     return getPropertiesMap();
   }
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -244,11 +276,12 @@ public java.util.Map getPropert
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
   @java.lang.Override
-
   public java.util.Map getPropertiesMap() {
     return internalGetProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -261,16 +294,18 @@ public java.util.Map getPropert
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
   @java.lang.Override
-
   public com.google.datastore.v1.Value getPropertiesOrDefault(
-      java.lang.String key,
-      com.google.datastore.v1.Value defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.datastore.v1.Value defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -283,10 +318,10 @@ public com.google.datastore.v1.Value getPropertiesOrDefault(
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
   @java.lang.Override
-
-  public com.google.datastore.v1.Value getPropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -296,6 +331,7 @@ public com.google.datastore.v1.Value getPropertiesOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -307,17 +343,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (key_ != null) {
       output.writeMessage(1, getKey());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetProperties(),
-        PropertiesDefaultEntryHolder.defaultEntry,
-        3);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3);
     unknownFields.writeTo(output);
   }
 
@@ -328,18 +359,17 @@ public int getSerializedSize() {
 
     size = 0;
     if (key_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getKey());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKey());
     }
-    for (java.util.Map.Entry entry
-         : internalGetProperties().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, properties__);
+    for (java.util.Map.Entry entry :
+        internalGetProperties().getMap().entrySet()) {
+      com.google.protobuf.MapEntry properties__ =
+          PropertiesDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, properties__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -349,7 +379,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.Entity)) {
       return super.equals(obj);
@@ -358,11 +388,9 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasKey() != other.hasKey()) return false;
     if (hasKey()) {
-      if (!getKey()
-          .equals(other.getKey())) return false;
+      if (!getKey().equals(other.getKey())) return false;
     }
-    if (!internalGetProperties().equals(
-        other.internalGetProperties())) return false;
+    if (!internalGetProperties().equals(other.internalGetProperties())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -387,97 +415,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.Entity parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.Entity parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Entity parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.v1.Entity parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.datastore.v1.Entity parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Entity parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Entity parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Entity parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Entity parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Entity parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Entity parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Entity parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.v1.Entity parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.datastore.v1.Entity parseFrom(com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Entity parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.Entity prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A Datastore data object.
    * An entity is limited to 1 megabyte when stored. That _roughly_
@@ -487,41 +521,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.v1.Entity}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.Entity)
       com.google.datastore.v1.EntityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Entity_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 3:
           return internalGetProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 3:
           return internalGetMutableProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Entity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.datastore.v1.Entity.class, com.google.datastore.v1.Entity.Builder.class);
     }
@@ -531,16 +564,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -555,9 +587,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Entity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Entity_descriptor;
     }
 
     @java.lang.Override
@@ -593,38 +625,39 @@ public com.google.datastore.v1.Entity 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.datastore.v1.Entity) {
-        return mergeFrom((com.google.datastore.v1.Entity)other);
+        return mergeFrom((com.google.datastore.v1.Entity) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -636,8 +669,7 @@ public Builder mergeFrom(com.google.datastore.v1.Entity other) {
       if (other.hasKey()) {
         mergeKey(other.getKey());
       }
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -666,12 +698,18 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.datastore.v1.Key key_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keyBuilder_;
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
+        keyBuilder_;
     /**
+     *
+     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -681,12 +719,15 @@ public Builder mergeFrom(
      * 
* * .google.datastore.v1.Key key = 1; + * * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** + * + * *
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -696,6 +737,7 @@ public boolean hasKey() {
      * 
* * .google.datastore.v1.Key key = 1; + * * @return The key. */ public com.google.datastore.v1.Key getKey() { @@ -706,6 +748,8 @@ public com.google.datastore.v1.Key getKey() { } } /** + * + * *
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -730,6 +774,8 @@ public Builder setKey(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -740,8 +786,7 @@ public Builder setKey(com.google.datastore.v1.Key value) {
      *
      * .google.datastore.v1.Key key = 1;
      */
-    public Builder setKey(
-        com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) {
       if (keyBuilder_ == null) {
         key_ = builderForValue.build();
         onChanged();
@@ -752,6 +797,8 @@ public Builder setKey(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -765,8 +812,7 @@ public Builder setKey(
     public Builder mergeKey(com.google.datastore.v1.Key value) {
       if (keyBuilder_ == null) {
         if (key_ != null) {
-          key_ =
-            com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial();
+          key_ = com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial();
         } else {
           key_ = value;
         }
@@ -778,6 +824,8 @@ public Builder mergeKey(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -800,6 +848,8 @@ public Builder clearKey() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -811,11 +861,13 @@ public Builder clearKey() {
      * .google.datastore.v1.Key key = 1;
      */
     public com.google.datastore.v1.Key.Builder getKeyBuilder() {
-      
+
       onChanged();
       return getKeyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -830,11 +882,12 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
       if (keyBuilder_ != null) {
         return keyBuilder_.getMessageOrBuilder();
       } else {
-        return key_ == null ?
-            com.google.datastore.v1.Key.getDefaultInstance() : key_;
+        return key_ == null ? com.google.datastore.v1.Key.getDefaultInstance() : key_;
       }
     }
     /**
+     *
+     *
      * 
      * The entity's key.
      * An entity must have a key, unless otherwise documented (for example,
@@ -846,35 +899,40 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
      * .google.datastore.v1.Key key = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
         getKeyFieldBuilder() {
       if (keyBuilder_ == null) {
-        keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
-                getKey(),
-                getParentForChildren(),
-                isClean());
+        keyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.Key,
+                com.google.datastore.v1.Key.Builder,
+                com.google.datastore.v1.KeyOrBuilder>(getKey(), getParentForChildren(), isClean());
         key_ = null;
       }
       return keyBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, com.google.datastore.v1.Value> properties_;
     private com.google.protobuf.MapField
-    internalGetProperties() {
+        properties_;
+
+    private com.google.protobuf.MapField
+        internalGetProperties() {
       if (properties_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             PropertiesDefaultEntryHolder.defaultEntry);
       }
       return properties_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableProperties() {
-      onChanged();;
+        internalGetMutableProperties() {
+      onChanged();
+      ;
       if (properties_ == null) {
-        properties_ = com.google.protobuf.MapField.newMapField(
-            PropertiesDefaultEntryHolder.defaultEntry);
+        properties_ =
+            com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry);
       }
       if (!properties_.isMutable()) {
         properties_ = properties_.copy();
@@ -886,6 +944,8 @@ public int getPropertiesCount() {
       return internalGetProperties().getMap().size();
     }
     /**
+     *
+     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -897,22 +957,22 @@ public int getPropertiesCount() {
      *
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
-
     @java.lang.Override
-    public boolean containsProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getPropertiesMap()} instead.
-     */
+    /** Use {@link #getPropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getProperties() {
       return getPropertiesMap();
     }
     /**
+     *
+     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -925,11 +985,12 @@ public java.util.Map getPropert
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
     @java.lang.Override
-
     public java.util.Map getPropertiesMap() {
       return internalGetProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -942,16 +1003,18 @@ public java.util.Map getPropert
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
     @java.lang.Override
-
     public com.google.datastore.v1.Value getPropertiesOrDefault(
-        java.lang.String key,
-        com.google.datastore.v1.Value defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.datastore.v1.Value defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -964,10 +1027,10 @@ public com.google.datastore.v1.Value getPropertiesOrDefault(
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
     @java.lang.Override
-
-    public com.google.datastore.v1.Value getPropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -977,11 +1040,12 @@ public com.google.datastore.v1.Value getPropertiesOrThrow(
     }
 
     public Builder clearProperties() {
-      internalGetMutableProperties().getMutableMap()
-          .clear();
+      internalGetMutableProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -993,23 +1057,21 @@ public Builder clearProperties() {
      *
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
-
-    public Builder removeProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableProperties().getMutableMap()
-          .remove(key);
+    public Builder removeProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableProperties() {
+    public java.util.Map getMutableProperties() {
       return internalGetMutableProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -1021,19 +1083,20 @@ public Builder removeProperties(
      *
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
-    public Builder putProperties(
-        java.lang.String key,
-        com.google.datastore.v1.Value value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putProperties(java.lang.String key, com.google.datastore.v1.Value value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableProperties().getMutableMap()
-          .put(key, value);
+      internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity's properties.
      * The map's keys are property names.
@@ -1045,16 +1108,14 @@ public Builder putProperties(
      *
      * map<string, .google.datastore.v1.Value> properties = 3;
      */
-
     public Builder putAllProperties(
         java.util.Map values) {
-      internalGetMutableProperties().getMutableMap()
-          .putAll(values);
+      internalGetMutableProperties().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1064,12 +1125,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.Entity)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.Entity)
   private static final com.google.datastore.v1.Entity DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.Entity();
   }
@@ -1078,16 +1139,16 @@ public static com.google.datastore.v1.Entity getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Entity parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Entity(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Entity parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Entity(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1102,6 +1163,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.Entity getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
index a690fcec2..23abf4c0a 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/entity.proto
 
 package com.google.datastore.v1;
 
-public interface EntityOrBuilder extends
+public interface EntityOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.Entity)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -17,10 +35,13 @@ public interface EntityOrBuilder extends
    * 
* * .google.datastore.v1.Key key = 1; + * * @return Whether the key field is set. */ boolean hasKey(); /** + * + * *
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -30,10 +51,13 @@ public interface EntityOrBuilder extends
    * 
* * .google.datastore.v1.Key key = 1; + * * @return The key. */ com.google.datastore.v1.Key getKey(); /** + * + * *
    * The entity's key.
    * An entity must have a key, unless otherwise documented (for example,
@@ -47,6 +71,8 @@ public interface EntityOrBuilder extends
   com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -60,6 +86,8 @@ public interface EntityOrBuilder extends
    */
   int getPropertiesCount();
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -71,15 +99,13 @@ public interface EntityOrBuilder extends
    *
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
-  boolean containsProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getPropertiesMap()} instead.
-   */
+  boolean containsProperties(java.lang.String key);
+  /** Use {@link #getPropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getProperties();
+  java.util.Map getProperties();
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -91,9 +117,10 @@ boolean containsProperties(
    *
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
-  java.util.Map
-  getPropertiesMap();
+  java.util.Map getPropertiesMap();
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -107,11 +134,13 @@ boolean containsProperties(
    */
 
   /* nullable */
-com.google.datastore.v1.Value getPropertiesOrDefault(
+  com.google.datastore.v1.Value getPropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.datastore.v1.Value defaultValue);
+      com.google.datastore.v1.Value defaultValue);
   /**
+   *
+   *
    * 
    * The entity's properties.
    * The map's keys are property names.
@@ -123,7 +152,5 @@ com.google.datastore.v1.Value getPropertiesOrDefault(
    *
    * map<string, .google.datastore.v1.Value> properties = 3;
    */
-
-  com.google.datastore.v1.Value getPropertiesOrThrow(
-      java.lang.String key);
+  com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key);
 }
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java
new file mode 100644
index 000000000..4040129ea
--- /dev/null
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java
@@ -0,0 +1,183 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/v1/entity.proto
+
+package com.google.datastore.v1;
+
+public final class EntityProto {
+  private EntityProto() {}
+
+  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_datastore_v1_PartitionId_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_PartitionId_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Key_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Key_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Key_PathElement_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_ArrayValue_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_ArrayValue_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Value_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Value_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Entity_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Entity_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Entity_PropertiesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Entity_PropertiesEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n google/datastore/v1/entity.proto\022\023goog"
+          + "le.datastore.v1\032\034google/protobuf/struct."
+          + "proto\032\037google/protobuf/timestamp.proto\032\030"
+          + "google/type/latlng.proto\"7\n\013PartitionId\022"
+          + "\022\n\nproject_id\030\002 \001(\t\022\024\n\014namespace_id\030\004 \001("
+          + "\t\"\267\001\n\003Key\0226\n\014partition_id\030\001 \001(\0132 .google"
+          + ".datastore.v1.PartitionId\0222\n\004path\030\002 \003(\0132"
+          + "$.google.datastore.v1.Key.PathElement\032D\n"
+          + "\013PathElement\022\014\n\004kind\030\001 \001(\t\022\014\n\002id\030\002 \001(\003H\000"
+          + "\022\016\n\004name\030\003 \001(\tH\000B\t\n\007id_type\"8\n\nArrayValu"
+          + "e\022*\n\006values\030\001 \003(\0132\032.google.datastore.v1."
+          + "Value\"\361\003\n\005Value\0220\n\nnull_value\030\013 \001(\0162\032.go"
+          + "ogle.protobuf.NullValueH\000\022\027\n\rboolean_val"
+          + "ue\030\001 \001(\010H\000\022\027\n\rinteger_value\030\002 \001(\003H\000\022\026\n\014d"
+          + "ouble_value\030\003 \001(\001H\000\0225\n\017timestamp_value\030\n"
+          + " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\tke"
+          + "y_value\030\005 \001(\0132\030.google.datastore.v1.KeyH"
+          + "\000\022\026\n\014string_value\030\021 \001(\tH\000\022\024\n\nblob_value\030"
+          + "\022 \001(\014H\000\022.\n\017geo_point_value\030\010 \001(\0132\023.googl"
+          + "e.type.LatLngH\000\0223\n\014entity_value\030\006 \001(\0132\033."
+          + "google.datastore.v1.EntityH\000\0226\n\013array_va"
+          + "lue\030\t \001(\0132\037.google.datastore.v1.ArrayVal"
+          + "ueH\000\022\017\n\007meaning\030\016 \001(\005\022\034\n\024exclude_from_in"
+          + "dexes\030\023 \001(\010B\014\n\nvalue_type\"\277\001\n\006Entity\022%\n\003"
+          + "key\030\001 \001(\0132\030.google.datastore.v1.Key\022?\n\np"
+          + "roperties\030\003 \003(\0132+.google.datastore.v1.En"
+          + "tity.PropertiesEntry\032M\n\017PropertiesEntry\022"
+          + "\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.dat"
+          + "astore.v1.Value:\0028\001B\275\001\n\027com.google.datas"
+          + "tore.v1B\013EntityProtoP\001Z
  * The result of fetching an entity from Datastore.
  * 
* * Protobuf type {@code google.datastore.v1.EntityResult} */ -public final class EntityResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EntityResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.EntityResult) EntityResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EntityResult.newBuilder() to construct. private EntityResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EntityResult() { cursor_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EntityResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EntityResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,49 +70,53 @@ private EntityResult( case 0: done = true; break; - case 10: { - com.google.datastore.v1.Entity.Builder subBuilder = null; - if (entity_ != null) { - subBuilder = entity_.toBuilder(); + case 10: + { + com.google.datastore.v1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); + } + entity_ = + input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); + } + + break; } - entity_ = input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); + case 26: + { + cursor_ = input.readBytes(); + break; } - - break; - } - case 26: { - - cursor_ = input.readBytes(); - break; - } - case 32: { - - version_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 32: + { + version_ = input.readInt64(); + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,27 +124,31 @@ private EntityResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_EntityResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_EntityResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.EntityResult.class, com.google.datastore.v1.EntityResult.Builder.class); + com.google.datastore.v1.EntityResult.class, + com.google.datastore.v1.EntityResult.Builder.class); } /** + * + * *
    * Specifies what data the 'entity' field contains.
    * A `ResultType` is either implied (for example, in `LookupResponse.missing`
@@ -134,9 +159,10 @@ private EntityResult(
    *
    * Protobuf enum {@code google.datastore.v1.EntityResult.ResultType}
    */
-  public enum ResultType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ResultType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified. This value is never used.
      * 
@@ -145,6 +171,8 @@ public enum ResultType */ RESULT_TYPE_UNSPECIFIED(0), /** + * + * *
      * The key and properties.
      * 
@@ -153,6 +181,8 @@ public enum ResultType */ FULL(1), /** + * + * *
      * A projected subset of properties. The entity may have no key.
      * 
@@ -161,6 +191,8 @@ public enum ResultType */ PROJECTION(2), /** + * + * *
      * Only the key.
      * 
@@ -172,6 +204,8 @@ public enum ResultType ; /** + * + * *
      * Unspecified. This value is never used.
      * 
@@ -180,6 +214,8 @@ public enum ResultType */ public static final int RESULT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The key and properties.
      * 
@@ -188,6 +224,8 @@ public enum ResultType */ public static final int FULL_VALUE = 1; /** + * + * *
      * A projected subset of properties. The entity may have no key.
      * 
@@ -196,6 +234,8 @@ public enum ResultType */ public static final int PROJECTION_VALUE = 2; /** + * + * *
      * Only the key.
      * 
@@ -204,7 +244,6 @@ public enum ResultType */ public static final int KEY_ONLY_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -229,50 +268,51 @@ public static ResultType valueOf(int value) { */ public static ResultType forNumber(int value) { switch (value) { - case 0: return RESULT_TYPE_UNSPECIFIED; - case 1: return FULL; - case 2: return PROJECTION; - case 3: return KEY_ONLY; - default: return null; + case 0: + return RESULT_TYPE_UNSPECIFIED; + case 1: + return FULL; + case 2: + return PROJECTION; + case 3: + return KEY_ONLY; + 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< - ResultType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultType findValueByNumber(int number) { - return ResultType.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 ResultType findValueByNumber(int number) { + return ResultType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.v1.EntityResult.getDescriptor().getEnumTypes().get(0); } private static final ResultType[] VALUES = values(); - public static ResultType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultType 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; @@ -292,11 +332,14 @@ private ResultType(int value) { public static final int ENTITY_FIELD_NUMBER = 1; private com.google.datastore.v1.Entity entity_; /** + * + * *
    * The resulting entity.
    * 
* * .google.datastore.v1.Entity entity = 1; + * * @return Whether the entity field is set. */ @java.lang.Override @@ -304,11 +347,14 @@ public boolean hasEntity() { return entity_ != null; } /** + * + * *
    * The resulting entity.
    * 
* * .google.datastore.v1.Entity entity = 1; + * * @return The entity. */ @java.lang.Override @@ -316,6 +362,8 @@ public com.google.datastore.v1.Entity getEntity() { return entity_ == null ? com.google.datastore.v1.Entity.getDefaultInstance() : entity_; } /** + * + * *
    * The resulting entity.
    * 
@@ -330,6 +378,8 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() { public static final int VERSION_FIELD_NUMBER = 4; private long version_; /** + * + * *
    * The version of the entity, a strictly positive number that monotonically
    * increases with changes to the entity.
@@ -341,6 +391,7 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() {
    * 
* * int64 version = 4; + * * @return The version. */ @java.lang.Override @@ -351,6 +402,8 @@ public long getVersion() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -359,6 +412,7 @@ public long getVersion() {
    * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -366,6 +420,8 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -374,6 +430,7 @@ public boolean hasUpdateTime() {
    * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return The updateTime. */ @java.lang.Override @@ -381,6 +438,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -398,12 +457,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int CURSOR_FIELD_NUMBER = 3;
   private com.google.protobuf.ByteString cursor_;
   /**
+   *
+   *
    * 
    * A cursor that points to the position after the result entity.
    * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
    * 
* * bytes cursor = 3; + * * @return The cursor. */ @java.lang.Override @@ -412,6 +474,7 @@ public com.google.protobuf.ByteString getCursor() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -423,8 +486,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 (entity_ != null) { output.writeMessage(1, getEntity()); } @@ -447,20 +509,16 @@ public int getSerializedSize() { size = 0; if (entity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntity()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); } if (!cursor_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, cursor_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, cursor_); } if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, version_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, version_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -470,7 +528,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.EntityResult)) { return super.equals(obj); @@ -479,18 +537,14 @@ public boolean equals(final java.lang.Object obj) { if (hasEntity() != other.hasEntity()) return false; if (hasEntity()) { - if (!getEntity() - .equals(other.getEntity())) return false; + if (!getEntity().equals(other.getEntity())) return false; } - if (getVersion() - != other.getVersion()) return false; + if (getVersion() != other.getVersion()) 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 (!getCursor() - .equals(other.getCursor())) return false; + if (!getCursor().equals(other.getCursor())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -507,8 +561,7 @@ public int hashCode() { hash = (53 * hash) + getEntity().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -520,118 +573,126 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.EntityResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.EntityResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.EntityResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.EntityResult parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.datastore.v1.EntityResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.EntityResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.EntityResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.EntityResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.EntityResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.EntityResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.EntityResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.EntityResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.EntityResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.EntityResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.EntityResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 result of fetching an entity from Datastore.
    * 
* * Protobuf type {@code google.datastore.v1.EntityResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.EntityResult) com.google.datastore.v1.EntityResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_EntityResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_EntityResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.EntityResult.class, com.google.datastore.v1.EntityResult.Builder.class); + com.google.datastore.v1.EntityResult.class, + com.google.datastore.v1.EntityResult.Builder.class); } // Construct using com.google.datastore.v1.EntityResult.newBuilder() @@ -639,16 +700,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -672,9 +732,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_EntityResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_EntityResult_descriptor; } @java.lang.Override @@ -714,38 +774,39 @@ public com.google.datastore.v1.EntityResult 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.datastore.v1.EntityResult) { - return mergeFrom((com.google.datastore.v1.EntityResult)other); + return mergeFrom((com.google.datastore.v1.EntityResult) other); } else { super.mergeFrom(other); return this; @@ -797,24 +858,33 @@ public Builder mergeFrom( private com.google.datastore.v1.Entity entity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> entityBuilder_; + com.google.datastore.v1.Entity, + com.google.datastore.v1.Entity.Builder, + com.google.datastore.v1.EntityOrBuilder> + entityBuilder_; /** + * + * *
      * The resulting entity.
      * 
* * .google.datastore.v1.Entity entity = 1; + * * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; } /** + * + * *
      * The resulting entity.
      * 
* * .google.datastore.v1.Entity entity = 1; + * * @return The entity. */ public com.google.datastore.v1.Entity getEntity() { @@ -825,6 +895,8 @@ public com.google.datastore.v1.Entity getEntity() { } } /** + * + * *
      * The resulting entity.
      * 
@@ -845,14 +917,15 @@ public Builder setEntity(com.google.datastore.v1.Entity value) { return this; } /** + * + * *
      * The resulting entity.
      * 
* * .google.datastore.v1.Entity entity = 1; */ - public Builder setEntity( - com.google.datastore.v1.Entity.Builder builderForValue) { + public Builder setEntity(com.google.datastore.v1.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); onChanged(); @@ -863,6 +936,8 @@ public Builder setEntity( return this; } /** + * + * *
      * The resulting entity.
      * 
@@ -873,7 +948,7 @@ public Builder mergeEntity(com.google.datastore.v1.Entity value) { if (entityBuilder_ == null) { if (entity_ != null) { entity_ = - com.google.datastore.v1.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); } else { entity_ = value; } @@ -885,6 +960,8 @@ public Builder mergeEntity(com.google.datastore.v1.Entity value) { return this; } /** + * + * *
      * The resulting entity.
      * 
@@ -903,6 +980,8 @@ public Builder clearEntity() { return this; } /** + * + * *
      * The resulting entity.
      * 
@@ -910,11 +989,13 @@ public Builder clearEntity() { * .google.datastore.v1.Entity entity = 1; */ public com.google.datastore.v1.Entity.Builder getEntityBuilder() { - + onChanged(); return getEntityFieldBuilder().getBuilder(); } /** + * + * *
      * The resulting entity.
      * 
@@ -925,11 +1006,12 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() { if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_ == null ? - com.google.datastore.v1.Entity.getDefaultInstance() : entity_; + return entity_ == null ? com.google.datastore.v1.Entity.getDefaultInstance() : entity_; } } /** + * + * *
      * The resulting entity.
      * 
@@ -937,21 +1019,26 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() { * .google.datastore.v1.Entity entity = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> + com.google.datastore.v1.Entity, + com.google.datastore.v1.Entity.Builder, + com.google.datastore.v1.EntityOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { - entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>( - getEntity(), - getParentForChildren(), - isClean()); + entityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Entity, + com.google.datastore.v1.Entity.Builder, + com.google.datastore.v1.EntityOrBuilder>( + getEntity(), getParentForChildren(), isClean()); entity_ = null; } return entityBuilder_; } - private long version_ ; + private long version_; /** + * + * *
      * The version of the entity, a strictly positive number that monotonically
      * increases with changes to the entity.
@@ -963,6 +1050,7 @@ public com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder() {
      * 
* * int64 version = 4; + * * @return The version. */ @java.lang.Override @@ -970,6 +1058,8 @@ public long getVersion() { return version_; } /** + * + * *
      * The version of the entity, a strictly positive number that monotonically
      * increases with changes to the entity.
@@ -981,16 +1071,19 @@ public long getVersion() {
      * 
* * int64 version = 4; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * The version of the entity, a strictly positive number that monotonically
      * increases with changes to the entity.
@@ -1002,10 +1095,11 @@ public Builder setVersion(long value) {
      * 
* * int64 version = 4; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0L; onChanged(); return this; @@ -1013,8 +1107,13 @@ public Builder clearVersion() { 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 time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1023,12 +1122,15 @@ public Builder clearVersion() {
      * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1037,16 +1139,21 @@ public boolean hasUpdateTime() {
      * 
* * .google.protobuf.Timestamp update_time = 5; + * * @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 time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1070,6 +1177,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1079,8 +1188,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 5;
      */
-    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();
@@ -1091,6 +1199,8 @@ public Builder setUpdateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1104,7 +1214,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;
         }
@@ -1116,6 +1226,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1137,6 +1249,8 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1147,11 +1261,13 @@ public Builder clearUpdateTime() {
      * .google.protobuf.Timestamp update_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-      
+
       onChanged();
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1165,11 +1281,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 time at which the entity was last changed.
      * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -1180,14 +1299,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 5;
      */
     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_;
@@ -1195,12 +1317,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
 
     private com.google.protobuf.ByteString cursor_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * A cursor that points to the position after the result entity.
      * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
      * 
* * bytes cursor = 3; + * * @return The cursor. */ @java.lang.Override @@ -1208,42 +1333,48 @@ public com.google.protobuf.ByteString getCursor() { return cursor_; } /** + * + * *
      * A cursor that points to the position after the result entity.
      * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
      * 
* * bytes cursor = 3; + * * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cursor_ = value; onChanged(); return this; } /** + * + * *
      * A cursor that points to the position after the result entity.
      * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
      * 
* * bytes cursor = 3; + * * @return This builder for chaining. */ public Builder clearCursor() { - + cursor_ = getDefaultInstance().getCursor(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1253,12 +1384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.EntityResult) } // @@protoc_insertion_point(class_scope:google.datastore.v1.EntityResult) private static final com.google.datastore.v1.EntityResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.EntityResult(); } @@ -1267,16 +1398,16 @@ public static com.google.datastore.v1.EntityResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntityResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1291,6 +1422,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.EntityResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java index 3520e5562..6be5b8e1a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityResultOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface EntityResultOrBuilder extends +public interface EntityResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.EntityResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resulting entity.
    * 
* * .google.datastore.v1.Entity entity = 1; + * * @return Whether the entity field is set. */ boolean hasEntity(); /** + * + * *
    * The resulting entity.
    * 
* * .google.datastore.v1.Entity entity = 1; + * * @return The entity. */ com.google.datastore.v1.Entity getEntity(); /** + * + * *
    * The resulting entity.
    * 
@@ -35,6 +59,8 @@ public interface EntityResultOrBuilder extends com.google.datastore.v1.EntityOrBuilder getEntityOrBuilder(); /** + * + * *
    * The version of the entity, a strictly positive number that monotonically
    * increases with changes to the entity.
@@ -46,11 +72,14 @@ public interface EntityResultOrBuilder extends
    * 
* * int64 version = 4; + * * @return The version. */ long getVersion(); /** + * + * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -59,10 +88,13 @@ public interface EntityResultOrBuilder extends
    * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -71,10 +103,13 @@ public interface EntityResultOrBuilder extends
    * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time at which the entity was last changed.
    * This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
@@ -87,12 +122,15 @@ public interface EntityResultOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * A cursor that points to the position after the result entity.
    * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
    * 
* * bytes cursor = 3; + * * @return The cursor. */ com.google.protobuf.ByteString getCursor(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java index f69ef5481..9d6a72de9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Filter.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** + * + * *
  * A holder for any type of filter.
  * 
* * Protobuf type {@code google.datastore.v1.Filter} */ -public final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.Filter) FilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Filter() { - } + + private Filter() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Filter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,41 +68,45 @@ private Filter( case 0: done = true; break; - case 10: { - com.google.datastore.v1.CompositeFilter.Builder subBuilder = null; - if (filterTypeCase_ == 1) { - subBuilder = ((com.google.datastore.v1.CompositeFilter) filterType_).toBuilder(); + case 10: + { + com.google.datastore.v1.CompositeFilter.Builder subBuilder = null; + if (filterTypeCase_ == 1) { + subBuilder = ((com.google.datastore.v1.CompositeFilter) filterType_).toBuilder(); + } + filterType_ = + input.readMessage( + com.google.datastore.v1.CompositeFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.CompositeFilter) filterType_); + filterType_ = subBuilder.buildPartial(); + } + filterTypeCase_ = 1; + break; } - filterType_ = - input.readMessage(com.google.datastore.v1.CompositeFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.CompositeFilter) filterType_); - filterType_ = subBuilder.buildPartial(); + case 18: + { + com.google.datastore.v1.PropertyFilter.Builder subBuilder = null; + if (filterTypeCase_ == 2) { + subBuilder = ((com.google.datastore.v1.PropertyFilter) filterType_).toBuilder(); + } + filterType_ = + input.readMessage( + com.google.datastore.v1.PropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.PropertyFilter) filterType_); + filterType_ = subBuilder.buildPartial(); + } + filterTypeCase_ = 2; + break; } - filterTypeCase_ = 1; - break; - } - case 18: { - com.google.datastore.v1.PropertyFilter.Builder subBuilder = null; - if (filterTypeCase_ == 2) { - subBuilder = ((com.google.datastore.v1.PropertyFilter) filterType_).toBuilder(); - } - filterType_ = - input.readMessage(com.google.datastore.v1.PropertyFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.PropertyFilter) filterType_); - filterType_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - filterTypeCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,35 +114,38 @@ private Filter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Filter.class, com.google.datastore.v1.Filter.Builder.class); } private int filterTypeCase_ = 0; private java.lang.Object filterType_; + public enum FilterTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { COMPOSITE_FILTER(1), PROPERTY_FILTER(2), FILTERTYPE_NOT_SET(0); private final int value; + private FilterTypeCase(int value) { this.value = value; } @@ -138,30 +161,36 @@ public static FilterTypeCase valueOf(int value) { public static FilterTypeCase forNumber(int value) { switch (value) { - case 1: return COMPOSITE_FILTER; - case 2: return PROPERTY_FILTER; - case 0: return FILTERTYPE_NOT_SET; - default: return null; + case 1: + return COMPOSITE_FILTER; + case 2: + return PROPERTY_FILTER; + case 0: + return FILTERTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FilterTypeCase - getFilterTypeCase() { - return FilterTypeCase.forNumber( - filterTypeCase_); + public FilterTypeCase getFilterTypeCase() { + return FilterTypeCase.forNumber(filterTypeCase_); } public static final int COMPOSITE_FILTER_FIELD_NUMBER = 1; /** + * + * *
    * A composite filter.
    * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; + * * @return Whether the compositeFilter field is set. */ @java.lang.Override @@ -169,21 +198,26 @@ public boolean hasCompositeFilter() { return filterTypeCase_ == 1; } /** + * + * *
    * A composite filter.
    * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; + * * @return The compositeFilter. */ @java.lang.Override public com.google.datastore.v1.CompositeFilter getCompositeFilter() { if (filterTypeCase_ == 1) { - return (com.google.datastore.v1.CompositeFilter) filterType_; + return (com.google.datastore.v1.CompositeFilter) filterType_; } return com.google.datastore.v1.CompositeFilter.getDefaultInstance(); } /** + * + * *
    * A composite filter.
    * 
@@ -193,18 +227,21 @@ public com.google.datastore.v1.CompositeFilter getCompositeFilter() { @java.lang.Override public com.google.datastore.v1.CompositeFilterOrBuilder getCompositeFilterOrBuilder() { if (filterTypeCase_ == 1) { - return (com.google.datastore.v1.CompositeFilter) filterType_; + return (com.google.datastore.v1.CompositeFilter) filterType_; } return com.google.datastore.v1.CompositeFilter.getDefaultInstance(); } public static final int PROPERTY_FILTER_FIELD_NUMBER = 2; /** + * + * *
    * A filter on a property.
    * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; + * * @return Whether the propertyFilter field is set. */ @java.lang.Override @@ -212,21 +249,26 @@ public boolean hasPropertyFilter() { return filterTypeCase_ == 2; } /** + * + * *
    * A filter on a property.
    * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; + * * @return The propertyFilter. */ @java.lang.Override public com.google.datastore.v1.PropertyFilter getPropertyFilter() { if (filterTypeCase_ == 2) { - return (com.google.datastore.v1.PropertyFilter) filterType_; + return (com.google.datastore.v1.PropertyFilter) filterType_; } return com.google.datastore.v1.PropertyFilter.getDefaultInstance(); } /** + * + * *
    * A filter on a property.
    * 
@@ -236,12 +278,13 @@ public com.google.datastore.v1.PropertyFilter getPropertyFilter() { @java.lang.Override public com.google.datastore.v1.PropertyFilterOrBuilder getPropertyFilterOrBuilder() { if (filterTypeCase_ == 2) { - return (com.google.datastore.v1.PropertyFilter) filterType_; + return (com.google.datastore.v1.PropertyFilter) filterType_; } return com.google.datastore.v1.PropertyFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +296,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (filterTypeCase_ == 1) { output.writeMessage(1, (com.google.datastore.v1.CompositeFilter) filterType_); } @@ -271,12 +313,14 @@ public int getSerializedSize() { size = 0; if (filterTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.datastore.v1.CompositeFilter) filterType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.datastore.v1.CompositeFilter) filterType_); } if (filterTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.datastore.v1.PropertyFilter) filterType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.datastore.v1.PropertyFilter) filterType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -286,7 +330,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.Filter)) { return super.equals(obj); @@ -296,12 +340,10 @@ public boolean equals(final java.lang.Object obj) { if (!getFilterTypeCase().equals(other.getFilterTypeCase())) return false; switch (filterTypeCase_) { case 1: - if (!getCompositeFilter() - .equals(other.getCompositeFilter())) return false; + if (!getCompositeFilter().equals(other.getCompositeFilter())) return false; break; case 2: - if (!getPropertyFilter() - .equals(other.getPropertyFilter())) return false; + if (!getPropertyFilter().equals(other.getPropertyFilter())) return false; break; case 0: default: @@ -334,116 +376,123 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.Filter parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.Filter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Filter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Filter parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.datastore.v1.Filter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Filter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Filter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Filter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.Filter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.Filter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.Filter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.Filter parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.datastore.v1.Filter parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.Filter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.Filter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A holder for any type of filter.
    * 
* * Protobuf type {@code google.datastore.v1.Filter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.Filter) com.google.datastore.v1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Filter.class, com.google.datastore.v1.Filter.Builder.class); } @@ -453,16 +502,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Filter_descriptor; } @java.lang.Override @@ -517,38 +565,39 @@ public com.google.datastore.v1.Filter 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.datastore.v1.Filter) { - return mergeFrom((com.google.datastore.v1.Filter)other); + return mergeFrom((com.google.datastore.v1.Filter) other); } else { super.mergeFrom(other); return this; @@ -558,17 +607,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.datastore.v1.Filter other) { if (other == com.google.datastore.v1.Filter.getDefaultInstance()) return this; switch (other.getFilterTypeCase()) { - case COMPOSITE_FILTER: { - mergeCompositeFilter(other.getCompositeFilter()); - break; - } - case PROPERTY_FILTER: { - mergePropertyFilter(other.getPropertyFilter()); - break; - } - case FILTERTYPE_NOT_SET: { - break; - } + case COMPOSITE_FILTER: + { + mergeCompositeFilter(other.getCompositeFilter()); + break; + } + case PROPERTY_FILTER: + { + mergePropertyFilter(other.getPropertyFilter()); + break; + } + case FILTERTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -598,12 +650,12 @@ public Builder mergeFrom( } return this; } + private int filterTypeCase_ = 0; private java.lang.Object filterType_; - public FilterTypeCase - getFilterTypeCase() { - return FilterTypeCase.forNumber( - filterTypeCase_); + + public FilterTypeCase getFilterTypeCase() { + return FilterTypeCase.forNumber(filterTypeCase_); } public Builder clearFilterType() { @@ -613,15 +665,20 @@ public Builder clearFilterType() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.CompositeFilter, com.google.datastore.v1.CompositeFilter.Builder, com.google.datastore.v1.CompositeFilterOrBuilder> compositeFilterBuilder_; + com.google.datastore.v1.CompositeFilter, + com.google.datastore.v1.CompositeFilter.Builder, + com.google.datastore.v1.CompositeFilterOrBuilder> + compositeFilterBuilder_; /** + * + * *
      * A composite filter.
      * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; + * * @return Whether the compositeFilter field is set. */ @java.lang.Override @@ -629,11 +686,14 @@ public boolean hasCompositeFilter() { return filterTypeCase_ == 1; } /** + * + * *
      * A composite filter.
      * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; + * * @return The compositeFilter. */ @java.lang.Override @@ -651,6 +711,8 @@ public com.google.datastore.v1.CompositeFilter getCompositeFilter() { } } /** + * + * *
      * A composite filter.
      * 
@@ -671,6 +733,8 @@ public Builder setCompositeFilter(com.google.datastore.v1.CompositeFilter value) return this; } /** + * + * *
      * A composite filter.
      * 
@@ -689,6 +753,8 @@ public Builder setCompositeFilter( return this; } /** + * + * *
      * A composite filter.
      * 
@@ -697,10 +763,13 @@ public Builder setCompositeFilter( */ public Builder mergeCompositeFilter(com.google.datastore.v1.CompositeFilter value) { if (compositeFilterBuilder_ == null) { - if (filterTypeCase_ == 1 && - filterType_ != com.google.datastore.v1.CompositeFilter.getDefaultInstance()) { - filterType_ = com.google.datastore.v1.CompositeFilter.newBuilder((com.google.datastore.v1.CompositeFilter) filterType_) - .mergeFrom(value).buildPartial(); + if (filterTypeCase_ == 1 + && filterType_ != com.google.datastore.v1.CompositeFilter.getDefaultInstance()) { + filterType_ = + com.google.datastore.v1.CompositeFilter.newBuilder( + (com.google.datastore.v1.CompositeFilter) filterType_) + .mergeFrom(value) + .buildPartial(); } else { filterType_ = value; } @@ -716,6 +785,8 @@ public Builder mergeCompositeFilter(com.google.datastore.v1.CompositeFilter valu return this; } /** + * + * *
      * A composite filter.
      * 
@@ -739,6 +810,8 @@ public Builder clearCompositeFilter() { return this; } /** + * + * *
      * A composite filter.
      * 
@@ -749,6 +822,8 @@ public com.google.datastore.v1.CompositeFilter.Builder getCompositeFilterBuilder return getCompositeFilterFieldBuilder().getBuilder(); } /** + * + * *
      * A composite filter.
      * 
@@ -767,6 +842,8 @@ public com.google.datastore.v1.CompositeFilterOrBuilder getCompositeFilterOrBuil } } /** + * + * *
      * A composite filter.
      * 
@@ -774,32 +851,44 @@ public com.google.datastore.v1.CompositeFilterOrBuilder getCompositeFilterOrBuil * .google.datastore.v1.CompositeFilter composite_filter = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.CompositeFilter, com.google.datastore.v1.CompositeFilter.Builder, com.google.datastore.v1.CompositeFilterOrBuilder> + com.google.datastore.v1.CompositeFilter, + com.google.datastore.v1.CompositeFilter.Builder, + com.google.datastore.v1.CompositeFilterOrBuilder> getCompositeFilterFieldBuilder() { if (compositeFilterBuilder_ == null) { if (!(filterTypeCase_ == 1)) { filterType_ = com.google.datastore.v1.CompositeFilter.getDefaultInstance(); } - compositeFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.CompositeFilter, com.google.datastore.v1.CompositeFilter.Builder, com.google.datastore.v1.CompositeFilterOrBuilder>( + compositeFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.CompositeFilter, + com.google.datastore.v1.CompositeFilter.Builder, + com.google.datastore.v1.CompositeFilterOrBuilder>( (com.google.datastore.v1.CompositeFilter) filterType_, getParentForChildren(), isClean()); filterType_ = null; } filterTypeCase_ = 1; - onChanged();; + onChanged(); + ; return compositeFilterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyFilter, com.google.datastore.v1.PropertyFilter.Builder, com.google.datastore.v1.PropertyFilterOrBuilder> propertyFilterBuilder_; + com.google.datastore.v1.PropertyFilter, + com.google.datastore.v1.PropertyFilter.Builder, + com.google.datastore.v1.PropertyFilterOrBuilder> + propertyFilterBuilder_; /** + * + * *
      * A filter on a property.
      * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; + * * @return Whether the propertyFilter field is set. */ @java.lang.Override @@ -807,11 +896,14 @@ public boolean hasPropertyFilter() { return filterTypeCase_ == 2; } /** + * + * *
      * A filter on a property.
      * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; + * * @return The propertyFilter. */ @java.lang.Override @@ -829,6 +921,8 @@ public com.google.datastore.v1.PropertyFilter getPropertyFilter() { } } /** + * + * *
      * A filter on a property.
      * 
@@ -849,6 +943,8 @@ public Builder setPropertyFilter(com.google.datastore.v1.PropertyFilter value) { return this; } /** + * + * *
      * A filter on a property.
      * 
@@ -867,6 +963,8 @@ public Builder setPropertyFilter( return this; } /** + * + * *
      * A filter on a property.
      * 
@@ -875,10 +973,13 @@ public Builder setPropertyFilter( */ public Builder mergePropertyFilter(com.google.datastore.v1.PropertyFilter value) { if (propertyFilterBuilder_ == null) { - if (filterTypeCase_ == 2 && - filterType_ != com.google.datastore.v1.PropertyFilter.getDefaultInstance()) { - filterType_ = com.google.datastore.v1.PropertyFilter.newBuilder((com.google.datastore.v1.PropertyFilter) filterType_) - .mergeFrom(value).buildPartial(); + if (filterTypeCase_ == 2 + && filterType_ != com.google.datastore.v1.PropertyFilter.getDefaultInstance()) { + filterType_ = + com.google.datastore.v1.PropertyFilter.newBuilder( + (com.google.datastore.v1.PropertyFilter) filterType_) + .mergeFrom(value) + .buildPartial(); } else { filterType_ = value; } @@ -894,6 +995,8 @@ public Builder mergePropertyFilter(com.google.datastore.v1.PropertyFilter value) return this; } /** + * + * *
      * A filter on a property.
      * 
@@ -917,6 +1020,8 @@ public Builder clearPropertyFilter() { return this; } /** + * + * *
      * A filter on a property.
      * 
@@ -927,6 +1032,8 @@ public com.google.datastore.v1.PropertyFilter.Builder getPropertyFilterBuilder() return getPropertyFilterFieldBuilder().getBuilder(); } /** + * + * *
      * A filter on a property.
      * 
@@ -945,6 +1052,8 @@ public com.google.datastore.v1.PropertyFilterOrBuilder getPropertyFilterOrBuilde } } /** + * + * *
      * A filter on a property.
      * 
@@ -952,26 +1061,32 @@ public com.google.datastore.v1.PropertyFilterOrBuilder getPropertyFilterOrBuilde * .google.datastore.v1.PropertyFilter property_filter = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyFilter, com.google.datastore.v1.PropertyFilter.Builder, com.google.datastore.v1.PropertyFilterOrBuilder> + com.google.datastore.v1.PropertyFilter, + com.google.datastore.v1.PropertyFilter.Builder, + com.google.datastore.v1.PropertyFilterOrBuilder> getPropertyFilterFieldBuilder() { if (propertyFilterBuilder_ == null) { if (!(filterTypeCase_ == 2)) { filterType_ = com.google.datastore.v1.PropertyFilter.getDefaultInstance(); } - propertyFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyFilter, com.google.datastore.v1.PropertyFilter.Builder, com.google.datastore.v1.PropertyFilterOrBuilder>( + propertyFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.PropertyFilter, + com.google.datastore.v1.PropertyFilter.Builder, + com.google.datastore.v1.PropertyFilterOrBuilder>( (com.google.datastore.v1.PropertyFilter) filterType_, getParentForChildren(), isClean()); filterType_ = null; } filterTypeCase_ = 2; - onChanged();; + onChanged(); + ; return propertyFilterBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -981,12 +1096,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.Filter) } // @@protoc_insertion_point(class_scope:google.datastore.v1.Filter) private static final com.google.datastore.v1.Filter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.Filter(); } @@ -995,16 +1110,16 @@ public static com.google.datastore.v1.Filter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Filter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Filter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1134,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java index 0f7f0d477..5f51396a7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FilterOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface FilterOrBuilder extends +public interface FilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.Filter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A composite filter.
    * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; + * * @return Whether the compositeFilter field is set. */ boolean hasCompositeFilter(); /** + * + * *
    * A composite filter.
    * 
* * .google.datastore.v1.CompositeFilter composite_filter = 1; + * * @return The compositeFilter. */ com.google.datastore.v1.CompositeFilter getCompositeFilter(); /** + * + * *
    * A composite filter.
    * 
@@ -35,24 +59,32 @@ public interface FilterOrBuilder extends com.google.datastore.v1.CompositeFilterOrBuilder getCompositeFilterOrBuilder(); /** + * + * *
    * A filter on a property.
    * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; + * * @return Whether the propertyFilter field is set. */ boolean hasPropertyFilter(); /** + * + * *
    * A filter on a property.
    * 
* * .google.datastore.v1.PropertyFilter property_filter = 2; + * * @return The propertyFilter. */ com.google.datastore.v1.PropertyFilter getPropertyFilter(); /** + * + * *
    * A filter on a property.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java index e9d9c8fa2..e2026ea3d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.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/datastore/v1/query.proto package com.google.datastore.v1; /** + * + * *
  * A [GQL
  * query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.datastore.v1.GqlQuery}
  */
-public final class GqlQuery extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GqlQuery extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.GqlQuery)
     GqlQueryOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GqlQuery.newBuilder() to construct.
   private GqlQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GqlQuery() {
     queryString_ = "";
     positionalBindings_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private GqlQuery() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GqlQuery();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GqlQuery(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,46 +73,56 @@ private GqlQuery(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            queryString_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            allowLiterals_ = input.readBool();
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              positionalBindings_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              queryString_ = s;
+              break;
             }
-            positionalBindings_.add(
-                input.readMessage(com.google.datastore.v1.GqlQueryParameter.parser(), extensionRegistry));
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              namedBindings_ = com.google.protobuf.MapField.newMapField(
-                  NamedBindingsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 16:
+            {
+              allowLiterals_ = input.readBool();
+              break;
             }
-            com.google.protobuf.MapEntry
-            namedBindings__ = input.readMessage(
-                NamedBindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            namedBindings_.getMutableMap().put(
-                namedBindings__.getKey(), namedBindings__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                positionalBindings_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              positionalBindings_.add(
+                  input.readMessage(
+                      com.google.datastore.v1.GqlQueryParameter.parser(), extensionRegistry));
+              break;
+            }
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                namedBindings_ =
+                    com.google.protobuf.MapField.newMapField(
+                        NamedBindingsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry<
+                      java.lang.String, com.google.datastore.v1.GqlQueryParameter>
+                  namedBindings__ =
+                      input.readMessage(
+                          NamedBindingsDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              namedBindings_
+                  .getMutableMap()
+                  .put(namedBindings__.getKey(), namedBindings__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,8 +130,7 @@ private GqlQuery(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         positionalBindings_ = java.util.Collections.unmodifiableList(positionalBindings_);
@@ -113,27 +139,28 @@ private GqlQuery(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.v1.QueryProto
+        .internal_static_google_datastore_v1_GqlQuery_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetNamedBindings();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable
+    return com.google.datastore.v1.QueryProto
+        .internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.datastore.v1.GqlQuery.class, com.google.datastore.v1.GqlQuery.Builder.class);
   }
@@ -141,12 +168,15 @@ protected com.google.protobuf.MapField internalGetMapField(
   public static final int QUERY_STRING_FIELD_NUMBER = 1;
   private volatile java.lang.Object queryString_;
   /**
+   *
+   *
    * 
    * A string of the format described
    * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    * 
* * string query_string = 1; + * * @return The queryString. */ @java.lang.Override @@ -155,30 +185,30 @@ public java.lang.String getQueryString() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryString_ = s; return s; } } /** + * + * *
    * A string of the format described
    * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    * 
* * string query_string = 1; + * * @return The bytes for queryString. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryStringBytes() { + public com.google.protobuf.ByteString getQueryStringBytes() { java.lang.Object ref = queryString_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryString_ = b; return b; } else { @@ -189,6 +219,8 @@ public java.lang.String getQueryString() { public static final int ALLOW_LITERALS_FIELD_NUMBER = 2; private boolean allowLiterals_; /** + * + * *
    * When false, the query string must not contain any literals and instead must
    * bind all values. For example,
@@ -197,6 +229,7 @@ public java.lang.String getQueryString() {
    * 
* * bool allow_literals = 2; + * * @return The allowLiterals. */ @java.lang.Override @@ -205,21 +238,26 @@ public boolean getAllowLiterals() { } public static final int NAMED_BINDINGS_FIELD_NUMBER = 5; + private static final class NamedBindingsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.datastore.v1.GqlQueryParameter> defaultEntry = + java.lang.String, com.google.datastore.v1.GqlQueryParameter> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()); + .newDefaultInstance( + com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.datastore.v1.GqlQueryParameter> namedBindings_; + + private com.google.protobuf.MapField + namedBindings_; + private com.google.protobuf.MapField - internalGetNamedBindings() { + internalGetNamedBindings() { if (namedBindings_ == null) { return com.google.protobuf.MapField.emptyMapField( NamedBindingsDefaultEntryHolder.defaultEntry); @@ -231,6 +269,8 @@ public int getNamedBindingsCount() { return internalGetNamedBindings().getMap().size(); } /** + * + * *
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -240,22 +280,23 @@ public int getNamedBindingsCount() {
    *
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
-
   @java.lang.Override
-  public boolean containsNamedBindings(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsNamedBindings(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetNamedBindings().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getNamedBindingsMap()} instead.
-   */
+  /** Use {@link #getNamedBindingsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map getNamedBindings() {
+  public java.util.Map
+      getNamedBindings() {
     return getNamedBindingsMap();
   }
   /**
+   *
+   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -266,11 +307,13 @@ public java.util.Mapmap<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
   @java.lang.Override
-
-  public java.util.Map getNamedBindingsMap() {
+  public java.util.Map
+      getNamedBindingsMap() {
     return internalGetNamedBindings().getMap();
   }
   /**
+   *
+   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -281,16 +324,18 @@ public java.util.Mapmap<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
   @java.lang.Override
-
   public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
-      java.lang.String key,
-      com.google.datastore.v1.GqlQueryParameter defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.datastore.v1.GqlQueryParameter defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetNamedBindings().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -301,10 +346,10 @@ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
   @java.lang.Override
-
-  public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetNamedBindings().getMap();
     if (!map.containsKey(key)) {
@@ -316,6 +361,8 @@ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
   public static final int POSITIONAL_BINDINGS_FIELD_NUMBER = 4;
   private java.util.List positionalBindings_;
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -330,6 +377,8 @@ public java.util.List getPositionalBi
     return positionalBindings_;
   }
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -340,11 +389,13 @@ public java.util.List getPositionalBi
    * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPositionalBindingsOrBuilderList() {
     return positionalBindings_;
   }
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -359,6 +410,8 @@ public int getPositionalBindingsCount() {
     return positionalBindings_.size();
   }
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -373,6 +426,8 @@ public com.google.datastore.v1.GqlQueryParameter getPositionalBindings(int index
     return positionalBindings_.get(index);
   }
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -389,6 +444,7 @@ public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsO
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -400,8 +456,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(queryString_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryString_);
     }
@@ -411,12 +466,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < positionalBindings_.size(); i++) {
       output.writeMessage(4, positionalBindings_.get(i));
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetNamedBindings(),
-        NamedBindingsDefaultEntryHolder.defaultEntry,
-        5);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetNamedBindings(), NamedBindingsDefaultEntryHolder.defaultEntry, 5);
     unknownFields.writeTo(output);
   }
 
@@ -430,22 +481,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryString_);
     }
     if (allowLiterals_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(2, allowLiterals_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowLiterals_);
     }
     for (int i = 0; i < positionalBindings_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, positionalBindings_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(4, positionalBindings_.get(i));
     }
-    for (java.util.Map.Entry entry
-         : internalGetNamedBindings().getMap().entrySet()) {
+    for (java.util.Map.Entry entry :
+        internalGetNamedBindings().getMap().entrySet()) {
       com.google.protobuf.MapEntry
-      namedBindings__ = NamedBindingsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(5, namedBindings__);
+          namedBindings__ =
+              NamedBindingsDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, namedBindings__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -455,21 +506,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.datastore.v1.GqlQuery)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.GqlQuery other = (com.google.datastore.v1.GqlQuery) obj;
 
-    if (!getQueryString()
-        .equals(other.getQueryString())) return false;
-    if (getAllowLiterals()
-        != other.getAllowLiterals()) return false;
-    if (!internalGetNamedBindings().equals(
-        other.internalGetNamedBindings())) return false;
-    if (!getPositionalBindingsList()
-        .equals(other.getPositionalBindingsList())) return false;
+    if (!getQueryString().equals(other.getQueryString())) return false;
+    if (getAllowLiterals() != other.getAllowLiterals()) return false;
+    if (!internalGetNamedBindings().equals(other.internalGetNamedBindings())) return false;
+    if (!getPositionalBindingsList().equals(other.getPositionalBindingsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -484,8 +531,7 @@ public int hashCode() {
     hash = (37 * hash) + QUERY_STRING_FIELD_NUMBER;
     hash = (53 * hash) + getQueryString().hashCode();
     hash = (37 * hash) + ALLOW_LITERALS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getAllowLiterals());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowLiterals());
     if (!internalGetNamedBindings().getMap().isEmpty()) {
       hash = (37 * hash) + NAMED_BINDINGS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetNamedBindings().hashCode();
@@ -499,97 +545,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.GqlQuery parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.GqlQuery parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.GqlQuery parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.v1.GqlQuery parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.datastore.v1.GqlQuery parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.GqlQuery parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.GqlQuery parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.GqlQuery parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.GqlQuery parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.GqlQuery parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.GqlQuery parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.GqlQuery parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.GqlQuery parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.GqlQuery parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.GqlQuery prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A [GQL
    * query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
@@ -597,43 +649,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.v1.GqlQuery}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.GqlQuery)
       com.google.datastore.v1.GqlQueryOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.v1.QueryProto
+          .internal_static_google_datastore_v1_GqlQuery_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetNamedBindings();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableNamedBindings();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable
+      return com.google.datastore.v1.QueryProto
+          .internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.GqlQuery.class, com.google.datastore.v1.GqlQuery.Builder.class);
+              com.google.datastore.v1.GqlQuery.class,
+              com.google.datastore.v1.GqlQuery.Builder.class);
     }
 
     // Construct using com.google.datastore.v1.GqlQuery.newBuilder()
@@ -641,17 +693,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPositionalBindingsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -670,9 +722,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQuery_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.v1.QueryProto
+          .internal_static_google_datastore_v1_GqlQuery_descriptor;
     }
 
     @java.lang.Override
@@ -714,38 +766,39 @@ public com.google.datastore.v1.GqlQuery 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.datastore.v1.GqlQuery) {
-        return mergeFrom((com.google.datastore.v1.GqlQuery)other);
+        return mergeFrom((com.google.datastore.v1.GqlQuery) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -761,8 +814,7 @@ public Builder mergeFrom(com.google.datastore.v1.GqlQuery other) {
       if (other.getAllowLiterals() != false) {
         setAllowLiterals(other.getAllowLiterals());
       }
-      internalGetMutableNamedBindings().mergeFrom(
-          other.internalGetNamedBindings());
+      internalGetMutableNamedBindings().mergeFrom(other.internalGetNamedBindings());
       if (positionalBindingsBuilder_ == null) {
         if (!other.positionalBindings_.isEmpty()) {
           if (positionalBindings_.isEmpty()) {
@@ -781,9 +833,10 @@ public Builder mergeFrom(com.google.datastore.v1.GqlQuery other) {
             positionalBindingsBuilder_ = null;
             positionalBindings_ = other.positionalBindings_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            positionalBindingsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPositionalBindingsFieldBuilder() : null;
+            positionalBindingsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPositionalBindingsFieldBuilder()
+                    : null;
           } else {
             positionalBindingsBuilder_.addAllMessages(other.positionalBindings_);
           }
@@ -817,23 +870,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object queryString_ = "";
     /**
+     *
+     *
      * 
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; + * * @return The queryString. */ public java.lang.String getQueryString() { java.lang.Object ref = queryString_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryString_ = s; return s; @@ -842,21 +898,22 @@ public java.lang.String getQueryString() { } } /** + * + * *
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; + * * @return The bytes for queryString. */ - public com.google.protobuf.ByteString - getQueryStringBytes() { + public com.google.protobuf.ByteString getQueryStringBytes() { java.lang.Object ref = queryString_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryString_ = b; return b; } else { @@ -864,64 +921,73 @@ public java.lang.String getQueryString() { } } /** + * + * *
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; + * * @param value The queryString to set. * @return This builder for chaining. */ - public Builder setQueryString( - java.lang.String value) { + public Builder setQueryString(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queryString_ = value; onChanged(); return this; } /** + * + * *
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; + * * @return This builder for chaining. */ public Builder clearQueryString() { - + queryString_ = getDefaultInstance().getQueryString(); onChanged(); return this; } /** + * + * *
      * A string of the format described
      * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
      * 
* * string query_string = 1; + * * @param value The bytes for queryString to set. * @return This builder for chaining. */ - public Builder setQueryStringBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryStringBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryString_ = value; onChanged(); return this; } - private boolean allowLiterals_ ; + private boolean allowLiterals_; /** + * + * *
      * When false, the query string must not contain any literals and instead must
      * bind all values. For example,
@@ -930,6 +996,7 @@ public Builder setQueryStringBytes(
      * 
* * bool allow_literals = 2; + * * @return The allowLiterals. */ @java.lang.Override @@ -937,6 +1004,8 @@ public boolean getAllowLiterals() { return allowLiterals_; } /** + * + * *
      * When false, the query string must not contain any literals and instead must
      * bind all values. For example,
@@ -945,16 +1014,19 @@ public boolean getAllowLiterals() {
      * 
* * bool allow_literals = 2; + * * @param value The allowLiterals to set. * @return This builder for chaining. */ public Builder setAllowLiterals(boolean value) { - + allowLiterals_ = value; onChanged(); return this; } /** + * + * *
      * When false, the query string must not contain any literals and instead must
      * bind all values. For example,
@@ -963,31 +1035,38 @@ public Builder setAllowLiterals(boolean value) {
      * 
* * bool allow_literals = 2; + * * @return This builder for chaining. */ public Builder clearAllowLiterals() { - + allowLiterals_ = false; onChanged(); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.datastore.v1.GqlQueryParameter> namedBindings_; - private com.google.protobuf.MapField - internalGetNamedBindings() { + java.lang.String, com.google.datastore.v1.GqlQueryParameter> + namedBindings_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.datastore.v1.GqlQueryParameter> + internalGetNamedBindings() { if (namedBindings_ == null) { return com.google.protobuf.MapField.emptyMapField( NamedBindingsDefaultEntryHolder.defaultEntry); } return namedBindings_; } - private com.google.protobuf.MapField - internalGetMutableNamedBindings() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.datastore.v1.GqlQueryParameter> + internalGetMutableNamedBindings() { + onChanged(); + ; if (namedBindings_ == null) { - namedBindings_ = com.google.protobuf.MapField.newMapField( - NamedBindingsDefaultEntryHolder.defaultEntry); + namedBindings_ = + com.google.protobuf.MapField.newMapField(NamedBindingsDefaultEntryHolder.defaultEntry); } if (!namedBindings_.isMutable()) { namedBindings_ = namedBindings_.copy(); @@ -999,6 +1078,8 @@ public int getNamedBindingsCount() { return internalGetNamedBindings().getMap().size(); } /** + * + * *
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1008,22 +1089,23 @@ public int getNamedBindingsCount() {
      *
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
-
     @java.lang.Override
-    public boolean containsNamedBindings(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsNamedBindings(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetNamedBindings().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getNamedBindingsMap()} instead.
-     */
+    /** Use {@link #getNamedBindingsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
-    public java.util.Map getNamedBindings() {
+    public java.util.Map
+        getNamedBindings() {
       return getNamedBindingsMap();
     }
     /**
+     *
+     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1034,11 +1116,13 @@ public java.util.Mapmap<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
     @java.lang.Override
-
-    public java.util.Map getNamedBindingsMap() {
+    public java.util.Map
+        getNamedBindingsMap() {
       return internalGetNamedBindings().getMap();
     }
     /**
+     *
+     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1049,16 +1133,18 @@ public java.util.Mapmap<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
     @java.lang.Override
-
     public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
-        java.lang.String key,
-        com.google.datastore.v1.GqlQueryParameter defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.datastore.v1.GqlQueryParameter defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetNamedBindings().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1069,10 +1155,10 @@ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
     @java.lang.Override
-
-    public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetNamedBindings().getMap();
       if (!map.containsKey(key)) {
@@ -1082,11 +1168,12 @@ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
     }
 
     public Builder clearNamedBindings() {
-      internalGetMutableNamedBindings().getMutableMap()
-          .clear();
+      internalGetMutableNamedBindings().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1096,23 +1183,22 @@ public Builder clearNamedBindings() {
      *
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
-
-    public Builder removeNamedBindings(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableNamedBindings().getMutableMap()
-          .remove(key);
+    public Builder removeNamedBindings(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableNamedBindings().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map
-    getMutableNamedBindings() {
+        getMutableNamedBindings() {
       return internalGetMutableNamedBindings().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1123,18 +1209,20 @@ public Builder removeNamedBindings(
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
     public Builder putNamedBindings(
-        java.lang.String key,
-        com.google.datastore.v1.GqlQueryParameter value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.datastore.v1.GqlQueryParameter value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableNamedBindings().getMutableMap()
-          .put(key, value);
+      internalGetMutableNamedBindings().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * For each non-reserved named binding site in the query string, there must be
      * a named parameter with that name, but not necessarily the inverse.
@@ -1144,27 +1232,32 @@ public Builder putNamedBindings(
      *
      * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
      */
-
     public Builder putAllNamedBindings(
         java.util.Map values) {
-      internalGetMutableNamedBindings().getMutableMap()
-          .putAll(values);
+      internalGetMutableNamedBindings().getMutableMap().putAll(values);
       return this;
     }
 
     private java.util.List positionalBindings_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePositionalBindingsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        positionalBindings_ = new java.util.ArrayList(positionalBindings_);
+        positionalBindings_ =
+            new java.util.ArrayList(positionalBindings_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.GqlQueryParameter, com.google.datastore.v1.GqlQueryParameter.Builder, com.google.datastore.v1.GqlQueryParameterOrBuilder> positionalBindingsBuilder_;
+            com.google.datastore.v1.GqlQueryParameter,
+            com.google.datastore.v1.GqlQueryParameter.Builder,
+            com.google.datastore.v1.GqlQueryParameterOrBuilder>
+        positionalBindingsBuilder_;
 
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1182,6 +1275,8 @@ public java.util.List getPositionalBi
       }
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1199,6 +1294,8 @@ public int getPositionalBindingsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1216,6 +1313,8 @@ public com.google.datastore.v1.GqlQueryParameter getPositionalBindings(int index
       }
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1240,6 +1339,8 @@ public Builder setPositionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1261,6 +1362,8 @@ public Builder setPositionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1284,6 +1387,8 @@ public Builder addPositionalBindings(com.google.datastore.v1.GqlQueryParameter v
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1308,6 +1413,8 @@ public Builder addPositionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1329,6 +1436,8 @@ public Builder addPositionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1350,6 +1459,8 @@ public Builder addPositionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1363,8 +1474,7 @@ public Builder addAllPositionalBindings(
         java.lang.Iterable values) {
       if (positionalBindingsBuilder_ == null) {
         ensurePositionalBindingsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, positionalBindings_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, positionalBindings_);
         onChanged();
       } else {
         positionalBindingsBuilder_.addAllMessages(values);
@@ -1372,6 +1482,8 @@ public Builder addAllPositionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1392,6 +1504,8 @@ public Builder clearPositionalBindings() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1412,6 +1526,8 @@ public Builder removePositionalBindings(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1426,6 +1542,8 @@ public com.google.datastore.v1.GqlQueryParameter.Builder getPositionalBindingsBu
       return getPositionalBindingsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1438,11 +1556,14 @@ public com.google.datastore.v1.GqlQueryParameter.Builder getPositionalBindingsBu
     public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsOrBuilder(
         int index) {
       if (positionalBindingsBuilder_ == null) {
-        return positionalBindings_.get(index);  } else {
+        return positionalBindings_.get(index);
+      } else {
         return positionalBindingsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1452,8 +1573,8 @@ public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsO
      *
      * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
      */
-    public java.util.List 
-         getPositionalBindingsOrBuilderList() {
+    public java.util.List
+        getPositionalBindingsOrBuilderList() {
       if (positionalBindingsBuilder_ != null) {
         return positionalBindingsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1461,6 +1582,8 @@ public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsO
       }
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1471,10 +1594,12 @@ public com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsO
      * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
      */
     public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBuilder() {
-      return getPositionalBindingsFieldBuilder().addBuilder(
-          com.google.datastore.v1.GqlQueryParameter.getDefaultInstance());
+      return getPositionalBindingsFieldBuilder()
+          .addBuilder(com.google.datastore.v1.GqlQueryParameter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1486,10 +1611,12 @@ public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBu
      */
     public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBuilder(
         int index) {
-      return getPositionalBindingsFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.GqlQueryParameter.getDefaultInstance());
+      return getPositionalBindingsFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.GqlQueryParameter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Numbered binding site @1 references the first numbered parameter,
      * effectively using 1-based indexing, rather than the usual 0.
@@ -1499,16 +1626,22 @@ public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBu
      *
      * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
      */
-    public java.util.List 
-         getPositionalBindingsBuilderList() {
+    public java.util.List
+        getPositionalBindingsBuilderList() {
       return getPositionalBindingsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.GqlQueryParameter, com.google.datastore.v1.GqlQueryParameter.Builder, com.google.datastore.v1.GqlQueryParameterOrBuilder> 
+            com.google.datastore.v1.GqlQueryParameter,
+            com.google.datastore.v1.GqlQueryParameter.Builder,
+            com.google.datastore.v1.GqlQueryParameterOrBuilder>
         getPositionalBindingsFieldBuilder() {
       if (positionalBindingsBuilder_ == null) {
-        positionalBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.GqlQueryParameter, com.google.datastore.v1.GqlQueryParameter.Builder, com.google.datastore.v1.GqlQueryParameterOrBuilder>(
+        positionalBindingsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.GqlQueryParameter,
+                com.google.datastore.v1.GqlQueryParameter.Builder,
+                com.google.datastore.v1.GqlQueryParameterOrBuilder>(
                 positionalBindings_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1517,9 +1650,9 @@ public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBu
       }
       return positionalBindingsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1529,12 +1662,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.GqlQuery)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQuery)
   private static final com.google.datastore.v1.GqlQuery DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.GqlQuery();
   }
@@ -1543,16 +1676,16 @@ public static com.google.datastore.v1.GqlQuery getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GqlQuery parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new GqlQuery(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GqlQuery parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new GqlQuery(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1567,6 +1700,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.GqlQuery getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
index 6444ceaa1..c53417b8c 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryOrBuilder.java
@@ -1,35 +1,58 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
-public interface GqlQueryOrBuilder extends
+public interface GqlQueryOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.GqlQuery)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A string of the format described
    * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    * 
* * string query_string = 1; + * * @return The queryString. */ java.lang.String getQueryString(); /** + * + * *
    * A string of the format described
    * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    * 
* * string query_string = 1; + * * @return The bytes for queryString. */ - com.google.protobuf.ByteString - getQueryStringBytes(); + com.google.protobuf.ByteString getQueryStringBytes(); /** + * + * *
    * When false, the query string must not contain any literals and instead must
    * bind all values. For example,
@@ -38,11 +61,14 @@ public interface GqlQueryOrBuilder extends
    * 
* * bool allow_literals = 2; + * * @return The allowLiterals. */ boolean getAllowLiterals(); /** + * + * *
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -54,6 +80,8 @@ public interface GqlQueryOrBuilder extends
    */
   int getNamedBindingsCount();
   /**
+   *
+   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -63,15 +91,13 @@ public interface GqlQueryOrBuilder extends
    *
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
-  boolean containsNamedBindings(
-      java.lang.String key);
-  /**
-   * Use {@link #getNamedBindingsMap()} instead.
-   */
+  boolean containsNamedBindings(java.lang.String key);
+  /** Use {@link #getNamedBindingsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getNamedBindings();
+  java.util.Map getNamedBindings();
   /**
+   *
+   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -81,9 +107,10 @@ boolean containsNamedBindings(
    *
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
-  java.util.Map
-  getNamedBindingsMap();
+  java.util.Map getNamedBindingsMap();
   /**
+   *
+   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -95,11 +122,13 @@ boolean containsNamedBindings(
    */
 
   /* nullable */
-com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
+  com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.datastore.v1.GqlQueryParameter defaultValue);
+      com.google.datastore.v1.GqlQueryParameter defaultValue);
   /**
+   *
+   *
    * 
    * For each non-reserved named binding site in the query string, there must be
    * a named parameter with that name, but not necessarily the inverse.
@@ -109,11 +138,11 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
    *
    * map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
    */
-
-  com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
-      java.lang.String key);
+  com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -123,9 +152,10 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
    *
    * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
    */
-  java.util.List 
-      getPositionalBindingsList();
+  java.util.List getPositionalBindingsList();
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -137,6 +167,8 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
    */
   com.google.datastore.v1.GqlQueryParameter getPositionalBindings(int index);
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -148,6 +180,8 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
    */
   int getPositionalBindingsCount();
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -157,9 +191,11 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
    *
    * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
    */
-  java.util.List 
+  java.util.List
       getPositionalBindingsOrBuilderList();
   /**
+   *
+   *
    * 
    * Numbered binding site @1 references the first numbered parameter,
    * effectively using 1-based indexing, rather than the usual 0.
@@ -169,6 +205,5 @@ com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(
    *
    * repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
    */
-  com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsOrBuilder(
-      int index);
+  com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
index f223bafdc..77f69f37e 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * A binding parameter for a GQL query.
  * 
* * Protobuf type {@code google.datastore.v1.GqlQueryParameter} */ -public final class GqlQueryParameter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GqlQueryParameter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.GqlQueryParameter) GqlQueryParameterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GqlQueryParameter.newBuilder() to construct. private GqlQueryParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GqlQueryParameter() { - } + + private GqlQueryParameter() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GqlQueryParameter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GqlQueryParameter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,32 +68,34 @@ private GqlQueryParameter( case 0: done = true; break; - case 18: { - com.google.datastore.v1.Value.Builder subBuilder = null; - if (parameterTypeCase_ == 2) { - subBuilder = ((com.google.datastore.v1.Value) parameterType_).toBuilder(); + case 18: + { + com.google.datastore.v1.Value.Builder subBuilder = null; + if (parameterTypeCase_ == 2) { + subBuilder = ((com.google.datastore.v1.Value) parameterType_).toBuilder(); + } + parameterType_ = + input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Value) parameterType_); + parameterType_ = subBuilder.buildPartial(); + } + parameterTypeCase_ = 2; + break; } - parameterType_ = - input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Value) parameterType_); - parameterType_ = subBuilder.buildPartial(); + case 26: + { + parameterType_ = input.readBytes(); + parameterTypeCase_ = 3; + break; } - parameterTypeCase_ = 2; - break; - } - case 26: { - parameterType_ = input.readBytes(); - parameterTypeCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +103,40 @@ private GqlQueryParameter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_GqlQueryParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.GqlQueryParameter.class, com.google.datastore.v1.GqlQueryParameter.Builder.class); + com.google.datastore.v1.GqlQueryParameter.class, + com.google.datastore.v1.GqlQueryParameter.Builder.class); } private int parameterTypeCase_ = 0; private java.lang.Object parameterType_; + public enum ParameterTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALUE(2), CURSOR(3), PARAMETERTYPE_NOT_SET(0); private final int value; + private ParameterTypeCase(int value) { this.value = value; } @@ -129,30 +152,36 @@ public static ParameterTypeCase valueOf(int value) { public static ParameterTypeCase forNumber(int value) { switch (value) { - case 2: return VALUE; - case 3: return CURSOR; - case 0: return PARAMETERTYPE_NOT_SET; - default: return null; + case 2: + return VALUE; + case 3: + return CURSOR; + case 0: + return PARAMETERTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ParameterTypeCase - getParameterTypeCase() { - return ParameterTypeCase.forNumber( - parameterTypeCase_); + public ParameterTypeCase getParameterTypeCase() { + return ParameterTypeCase.forNumber(parameterTypeCase_); } public static final int VALUE_FIELD_NUMBER = 2; /** + * + * *
    * A value parameter.
    * 
* * .google.datastore.v1.Value value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -160,21 +189,26 @@ public boolean hasValue() { return parameterTypeCase_ == 2; } /** + * + * *
    * A value parameter.
    * 
* * .google.datastore.v1.Value value = 2; + * * @return The value. */ @java.lang.Override public com.google.datastore.v1.Value getValue() { if (parameterTypeCase_ == 2) { - return (com.google.datastore.v1.Value) parameterType_; + return (com.google.datastore.v1.Value) parameterType_; } return com.google.datastore.v1.Value.getDefaultInstance(); } /** + * + * *
    * A value parameter.
    * 
@@ -184,19 +218,22 @@ public com.google.datastore.v1.Value getValue() { @java.lang.Override public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { if (parameterTypeCase_ == 2) { - return (com.google.datastore.v1.Value) parameterType_; + return (com.google.datastore.v1.Value) parameterType_; } return com.google.datastore.v1.Value.getDefaultInstance(); } public static final int CURSOR_FIELD_NUMBER = 3; /** + * + * *
    * A query cursor. Query cursors are returned in query
    * result batches.
    * 
* * bytes cursor = 3; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -204,12 +241,15 @@ public boolean hasCursor() { return parameterTypeCase_ == 3; } /** + * + * *
    * A query cursor. Query cursors are returned in query
    * result batches.
    * 
* * bytes cursor = 3; + * * @return The cursor. */ @java.lang.Override @@ -221,6 +261,7 @@ public com.google.protobuf.ByteString getCursor() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,14 +273,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (parameterTypeCase_ == 2) { output.writeMessage(2, (com.google.datastore.v1.Value) parameterType_); } if (parameterTypeCase_ == 3) { - output.writeBytes( - 3, (com.google.protobuf.ByteString) parameterType_); + output.writeBytes(3, (com.google.protobuf.ByteString) parameterType_); } unknownFields.writeTo(output); } @@ -251,13 +290,14 @@ public int getSerializedSize() { size = 0; if (parameterTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.datastore.v1.Value) parameterType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.datastore.v1.Value) parameterType_); } if (parameterTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 3, (com.google.protobuf.ByteString) parameterType_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 3, (com.google.protobuf.ByteString) parameterType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,22 +307,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.datastore.v1.GqlQueryParameter)) { return super.equals(obj); } - com.google.datastore.v1.GqlQueryParameter other = (com.google.datastore.v1.GqlQueryParameter) obj; + com.google.datastore.v1.GqlQueryParameter other = + (com.google.datastore.v1.GqlQueryParameter) obj; if (!getParameterTypeCase().equals(other.getParameterTypeCase())) return false; switch (parameterTypeCase_) { case 2: - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; break; case 3: - if (!getCursor() - .equals(other.getCursor())) return false; + if (!getCursor().equals(other.getCursor())) return false; break; case 0: default: @@ -315,118 +354,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.GqlQueryParameter parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.GqlQueryParameter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.GqlQueryParameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.GqlQueryParameter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.GqlQueryParameter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.GqlQueryParameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.GqlQueryParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A binding parameter for a GQL query.
    * 
* * Protobuf type {@code google.datastore.v1.GqlQueryParameter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.GqlQueryParameter) com.google.datastore.v1.GqlQueryParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_GqlQueryParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.GqlQueryParameter.class, com.google.datastore.v1.GqlQueryParameter.Builder.class); + com.google.datastore.v1.GqlQueryParameter.class, + com.google.datastore.v1.GqlQueryParameter.Builder.class); } // Construct using com.google.datastore.v1.GqlQueryParameter.newBuilder() @@ -434,16 +482,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +500,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_GqlQueryParameter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_GqlQueryParameter_descriptor; } @java.lang.Override @@ -474,7 +521,8 @@ public com.google.datastore.v1.GqlQueryParameter build() { @java.lang.Override public com.google.datastore.v1.GqlQueryParameter buildPartial() { - com.google.datastore.v1.GqlQueryParameter result = new com.google.datastore.v1.GqlQueryParameter(this); + com.google.datastore.v1.GqlQueryParameter result = + new com.google.datastore.v1.GqlQueryParameter(this); if (parameterTypeCase_ == 2) { if (valueBuilder_ == null) { result.parameterType_ = parameterType_; @@ -494,38 +542,39 @@ public com.google.datastore.v1.GqlQueryParameter 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.datastore.v1.GqlQueryParameter) { - return mergeFrom((com.google.datastore.v1.GqlQueryParameter)other); + return mergeFrom((com.google.datastore.v1.GqlQueryParameter) other); } else { super.mergeFrom(other); return this; @@ -535,17 +584,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.datastore.v1.GqlQueryParameter other) { if (other == com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()) return this; switch (other.getParameterTypeCase()) { - case VALUE: { - mergeValue(other.getValue()); - break; - } - case CURSOR: { - setCursor(other.getCursor()); - break; - } - case PARAMETERTYPE_NOT_SET: { - break; - } + case VALUE: + { + mergeValue(other.getValue()); + break; + } + case CURSOR: + { + setCursor(other.getCursor()); + break; + } + case PARAMETERTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -575,12 +627,12 @@ public Builder mergeFrom( } return this; } + private int parameterTypeCase_ = 0; private java.lang.Object parameterType_; - public ParameterTypeCase - getParameterTypeCase() { - return ParameterTypeCase.forNumber( - parameterTypeCase_); + + public ParameterTypeCase getParameterTypeCase() { + return ParameterTypeCase.forNumber(parameterTypeCase_); } public Builder clearParameterType() { @@ -590,15 +642,20 @@ public Builder clearParameterType() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> valueBuilder_; + com.google.datastore.v1.Value, + com.google.datastore.v1.Value.Builder, + com.google.datastore.v1.ValueOrBuilder> + valueBuilder_; /** + * + * *
      * A value parameter.
      * 
* * .google.datastore.v1.Value value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -606,11 +663,14 @@ public boolean hasValue() { return parameterTypeCase_ == 2; } /** + * + * *
      * A value parameter.
      * 
* * .google.datastore.v1.Value value = 2; + * * @return The value. */ @java.lang.Override @@ -628,6 +688,8 @@ public com.google.datastore.v1.Value getValue() { } } /** + * + * *
      * A value parameter.
      * 
@@ -648,14 +710,15 @@ public Builder setValue(com.google.datastore.v1.Value value) { return this; } /** + * + * *
      * A value parameter.
      * 
* * .google.datastore.v1.Value value = 2; */ - public Builder setValue( - com.google.datastore.v1.Value.Builder builderForValue) { + public Builder setValue(com.google.datastore.v1.Value.Builder builderForValue) { if (valueBuilder_ == null) { parameterType_ = builderForValue.build(); onChanged(); @@ -666,6 +729,8 @@ public Builder setValue( return this; } /** + * + * *
      * A value parameter.
      * 
@@ -674,10 +739,13 @@ public Builder setValue( */ public Builder mergeValue(com.google.datastore.v1.Value value) { if (valueBuilder_ == null) { - if (parameterTypeCase_ == 2 && - parameterType_ != com.google.datastore.v1.Value.getDefaultInstance()) { - parameterType_ = com.google.datastore.v1.Value.newBuilder((com.google.datastore.v1.Value) parameterType_) - .mergeFrom(value).buildPartial(); + if (parameterTypeCase_ == 2 + && parameterType_ != com.google.datastore.v1.Value.getDefaultInstance()) { + parameterType_ = + com.google.datastore.v1.Value.newBuilder( + (com.google.datastore.v1.Value) parameterType_) + .mergeFrom(value) + .buildPartial(); } else { parameterType_ = value; } @@ -693,6 +761,8 @@ public Builder mergeValue(com.google.datastore.v1.Value value) { return this; } /** + * + * *
      * A value parameter.
      * 
@@ -716,6 +786,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * A value parameter.
      * 
@@ -726,6 +798,8 @@ public com.google.datastore.v1.Value.Builder getValueBuilder() { return getValueFieldBuilder().getBuilder(); } /** + * + * *
      * A value parameter.
      * 
@@ -744,6 +818,8 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { } } /** + * + * *
      * A value parameter.
      * 
@@ -751,43 +827,53 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { * .google.datastore.v1.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> + com.google.datastore.v1.Value, + com.google.datastore.v1.Value.Builder, + com.google.datastore.v1.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { if (!(parameterTypeCase_ == 2)) { parameterType_ = com.google.datastore.v1.Value.getDefaultInstance(); } - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder>( - (com.google.datastore.v1.Value) parameterType_, - getParentForChildren(), - isClean()); + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Value, + com.google.datastore.v1.Value.Builder, + com.google.datastore.v1.ValueOrBuilder>( + (com.google.datastore.v1.Value) parameterType_, getParentForChildren(), isClean()); parameterType_ = null; } parameterTypeCase_ = 2; - onChanged();; + onChanged(); + ; return valueBuilder_; } /** + * + * *
      * A query cursor. Query cursors are returned in query
      * result batches.
      * 
* * bytes cursor = 3; + * * @return Whether the cursor field is set. */ public boolean hasCursor() { return parameterTypeCase_ == 3; } /** + * + * *
      * A query cursor. Query cursors are returned in query
      * result batches.
      * 
* * bytes cursor = 3; + * * @return The cursor. */ public com.google.protobuf.ByteString getCursor() { @@ -797,31 +883,37 @@ public com.google.protobuf.ByteString getCursor() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * A query cursor. Query cursors are returned in query
      * result batches.
      * 
* * bytes cursor = 3; + * * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - parameterTypeCase_ = 3; + throw new NullPointerException(); + } + parameterTypeCase_ = 3; parameterType_ = value; onChanged(); return this; } /** + * + * *
      * A query cursor. Query cursors are returned in query
      * result batches.
      * 
* * bytes cursor = 3; + * * @return This builder for chaining. */ public Builder clearCursor() { @@ -832,9 +924,9 @@ public Builder clearCursor() { } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -844,12 +936,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.GqlQueryParameter) } // @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQueryParameter) private static final com.google.datastore.v1.GqlQueryParameter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.GqlQueryParameter(); } @@ -858,16 +950,16 @@ public static com.google.datastore.v1.GqlQueryParameter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GqlQueryParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GqlQueryParameter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GqlQueryParameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GqlQueryParameter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -882,6 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.GqlQueryParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java index 8aa3f789a..6539bf245 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface GqlQueryParameterOrBuilder extends +public interface GqlQueryParameterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.GqlQueryParameter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A value parameter.
    * 
* * .google.datastore.v1.Value value = 2; + * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * *
    * A value parameter.
    * 
* * .google.datastore.v1.Value value = 2; + * * @return The value. */ com.google.datastore.v1.Value getValue(); /** + * + * *
    * A value parameter.
    * 
@@ -35,22 +59,28 @@ public interface GqlQueryParameterOrBuilder extends com.google.datastore.v1.ValueOrBuilder getValueOrBuilder(); /** + * + * *
    * A query cursor. Query cursors are returned in query
    * result batches.
    * 
* * bytes cursor = 3; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * A query cursor. Query cursors are returned in query
    * result batches.
    * 
* * bytes cursor = 3; + * * @return The cursor. */ com.google.protobuf.ByteString getCursor(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java similarity index 82% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java index e0ab7365c..54a39945f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.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/datastore/v1/entity.proto package com.google.datastore.v1; /** + * + * *
  * A unique identifier for an entity.
  * If a key's partition ID or any of its path kinds or names are
@@ -13,31 +30,31 @@
  *
  * Protobuf type {@code google.datastore.v1.Key}
  */
-public final class Key extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Key extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.Key)
     KeyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Key.newBuilder() to construct.
   private Key(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Key() {
     path_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Key();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Key(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,35 +74,40 @@ private Key(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.datastore.v1.PartitionId.Builder subBuilder = null;
-            if (partitionId_ != null) {
-              subBuilder = partitionId_.toBuilder();
-            }
-            partitionId_ = input.readMessage(com.google.datastore.v1.PartitionId.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(partitionId_);
-              partitionId_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.datastore.v1.PartitionId.Builder subBuilder = null;
+              if (partitionId_ != null) {
+                subBuilder = partitionId_.toBuilder();
+              }
+              partitionId_ =
+                  input.readMessage(
+                      com.google.datastore.v1.PartitionId.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(partitionId_);
+                partitionId_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              path_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            path_.add(
-                input.readMessage(com.google.datastore.v1.Key.PathElement.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                path_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              path_.add(
+                  input.readMessage(
+                      com.google.datastore.v1.Key.PathElement.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,8 +115,7 @@ private Key(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         path_ = java.util.Collections.unmodifiableList(path_);
@@ -103,24 +124,28 @@ private Key(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_fieldAccessorTable
+    return com.google.datastore.v1.EntityProto
+        .internal_static_google_datastore_v1_Key_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.datastore.v1.Key.class, com.google.datastore.v1.Key.Builder.class);
   }
 
-  public interface PathElementOrBuilder extends
+  public interface PathElementOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.datastore.v1.Key.PathElement)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The kind of the entity.
      * A kind matching regex `__.*__` is reserved/read-only.
@@ -132,10 +157,13 @@ public interface PathElementOrBuilder extends
      * 
* * string kind = 1; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
      * The kind of the entity.
      * A kind matching regex `__.*__` is reserved/read-only.
@@ -147,12 +175,14 @@ public interface PathElementOrBuilder extends
      * 
* * string kind = 1; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
      * The auto-allocated ID of the entity.
      * Never equal to zero. Values less than zero are discouraged and may not
@@ -160,10 +190,13 @@ public interface PathElementOrBuilder extends
      * 
* * int64 id = 2; + * * @return Whether the id field is set. */ boolean hasId(); /** + * + * *
      * The auto-allocated ID of the entity.
      * Never equal to zero. Values less than zero are discouraged and may not
@@ -171,11 +204,14 @@ public interface PathElementOrBuilder extends
      * 
* * int64 id = 2; + * * @return The id. */ long getId(); /** + * + * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -187,10 +223,13 @@ public interface PathElementOrBuilder extends
      * 
* * string name = 3; + * * @return Whether the name field is set. */ boolean hasName(); /** + * + * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -202,10 +241,13 @@ public interface PathElementOrBuilder extends
      * 
* * string name = 3; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -217,14 +259,16 @@ public interface PathElementOrBuilder extends
      * 
* * string name = 3; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); public com.google.datastore.v1.Key.PathElement.IdTypeCase getIdTypeCase(); } /** + * + * *
    * A (kind, ID/name) pair used to construct a key path.
    * If either name or ID is set, the element is complete.
@@ -233,31 +277,31 @@ public interface PathElementOrBuilder extends
    *
    * Protobuf type {@code google.datastore.v1.Key.PathElement}
    */
-  public static final class PathElement extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class PathElement extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.datastore.v1.Key.PathElement)
       PathElementOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use PathElement.newBuilder() to construct.
     private PathElement(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private PathElement() {
       kind_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new PathElement();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private PathElement(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -276,30 +320,33 @@ private PathElement(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              kind_ = s;
-              break;
-            }
-            case 16: {
-              idType_ = input.readInt64();
-              idTypeCase_ = 2;
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              idTypeCase_ = 3;
-              idType_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                kind_ = s;
+                break;
+              }
+            case 16:
+              {
+                idType_ = input.readInt64();
+                idTypeCase_ = 2;
+                break;
+              }
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                idTypeCase_ = 3;
+                idType_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -307,35 +354,40 @@ private PathElement(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Key_PathElement_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.Key.PathElement.class, com.google.datastore.v1.Key.PathElement.Builder.class);
+              com.google.datastore.v1.Key.PathElement.class,
+              com.google.datastore.v1.Key.PathElement.Builder.class);
     }
 
     private int idTypeCase_ = 0;
     private java.lang.Object idType_;
+
     public enum IdTypeCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ID(2),
       NAME(3),
       IDTYPE_NOT_SET(0);
       private final int value;
+
       private IdTypeCase(int value) {
         this.value = value;
       }
@@ -351,26 +403,31 @@ public static IdTypeCase valueOf(int value) {
 
       public static IdTypeCase forNumber(int value) {
         switch (value) {
-          case 2: return ID;
-          case 3: return NAME;
-          case 0: return IDTYPE_NOT_SET;
-          default: return null;
+          case 2:
+            return ID;
+          case 3:
+            return NAME;
+          case 0:
+            return IDTYPE_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public IdTypeCase
-    getIdTypeCase() {
-      return IdTypeCase.forNumber(
-          idTypeCase_);
+    public IdTypeCase getIdTypeCase() {
+      return IdTypeCase.forNumber(idTypeCase_);
     }
 
     public static final int KIND_FIELD_NUMBER = 1;
     private volatile java.lang.Object kind_;
     /**
+     *
+     *
      * 
      * The kind of the entity.
      * A kind matching regex `__.*__` is reserved/read-only.
@@ -382,6 +439,7 @@ public int getNumber() {
      * 
* * string kind = 1; + * * @return The kind. */ @java.lang.Override @@ -390,14 +448,15 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
      * The kind of the entity.
      * A kind matching regex `__.*__` is reserved/read-only.
@@ -409,16 +468,15 @@ public java.lang.String getKind() {
      * 
* * string kind = 1; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -428,6 +486,8 @@ public java.lang.String getKind() { public static final int ID_FIELD_NUMBER = 2; /** + * + * *
      * The auto-allocated ID of the entity.
      * Never equal to zero. Values less than zero are discouraged and may not
@@ -435,6 +495,7 @@ public java.lang.String getKind() {
      * 
* * int64 id = 2; + * * @return Whether the id field is set. */ @java.lang.Override @@ -442,6 +503,8 @@ public boolean hasId() { return idTypeCase_ == 2; } /** + * + * *
      * The auto-allocated ID of the entity.
      * Never equal to zero. Values less than zero are discouraged and may not
@@ -449,6 +512,7 @@ public boolean hasId() {
      * 
* * int64 id = 2; + * * @return The id. */ @java.lang.Override @@ -461,6 +525,8 @@ public long getId() { public static final int NAME_FIELD_NUMBER = 3; /** + * + * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -472,12 +538,15 @@ public long getId() {
      * 
* * string name = 3; + * * @return Whether the name field is set. */ public boolean hasName() { return idTypeCase_ == 3; } /** + * + * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -489,6 +558,7 @@ public boolean hasName() {
      * 
* * string name = 3; + * * @return The name. */ public java.lang.String getName() { @@ -499,8 +569,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idTypeCase_ == 3) { idType_ = s; @@ -509,6 +578,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the entity.
      * A name matching regex `__.*__` is reserved/read-only.
@@ -520,18 +591,17 @@ public java.lang.String getName() {
      * 
* * string name = 3; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = ""; if (idTypeCase_ == 3) { ref = idType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (idTypeCase_ == 3) { idType_ = b; } @@ -542,6 +612,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -553,14 +624,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } if (idTypeCase_ == 2) { - output.writeInt64( - 2, (long)((java.lang.Long) idType_)); + output.writeInt64(2, (long) ((java.lang.Long) idType_)); } if (idTypeCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, idType_); @@ -578,9 +647,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_); } if (idTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 2, (long)((java.lang.Long) idType_)); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) idType_)); } if (idTypeCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, idType_); @@ -593,24 +662,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.datastore.v1.Key.PathElement)) { return super.equals(obj); } com.google.datastore.v1.Key.PathElement other = (com.google.datastore.v1.Key.PathElement) obj; - if (!getKind() - .equals(other.getKind())) return false; + if (!getKind().equals(other.getKind())) return false; if (!getIdTypeCase().equals(other.getIdTypeCase())) return false; switch (idTypeCase_) { case 2: - if (getId() - != other.getId()) return false; + if (getId() != other.getId()) return false; break; case 3: - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; break; case 0: default: @@ -631,8 +697,7 @@ public int hashCode() { switch (idTypeCase_) { case 2: hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); break; case 3: hash = (37 * hash) + NAME_FIELD_NUMBER; @@ -646,88 +711,94 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.Key.PathElement parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.Key.PathElement parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Key.PathElement parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Key.PathElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Key.PathElement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Key.PathElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Key.PathElement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Key.PathElement parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.Key.PathElement parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.Key.PathElement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.Key.PathElement parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.Key.PathElement parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.Key.PathElement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.Key.PathElement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.Key.PathElement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -737,6 +808,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A (kind, ID/name) pair used to construct a key path.
      * If either name or ID is set, the element is complete.
@@ -745,21 +818,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.datastore.v1.Key.PathElement}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.datastore.v1.Key.PathElement)
         com.google.datastore.v1.Key.PathElementOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.datastore.v1.EntityProto
+            .internal_static_google_datastore_v1_Key_PathElement_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable
+        return com.google.datastore.v1.EntityProto
+            .internal_static_google_datastore_v1_Key_PathElement_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.datastore.v1.Key.PathElement.class, com.google.datastore.v1.Key.PathElement.Builder.class);
+                com.google.datastore.v1.Key.PathElement.class,
+                com.google.datastore.v1.Key.PathElement.Builder.class);
       }
 
       // Construct using com.google.datastore.v1.Key.PathElement.newBuilder()
@@ -767,16 +843,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -788,9 +863,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_PathElement_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.datastore.v1.EntityProto
+            .internal_static_google_datastore_v1_Key_PathElement_descriptor;
       }
 
       @java.lang.Override
@@ -809,7 +884,8 @@ public com.google.datastore.v1.Key.PathElement build() {
 
       @java.lang.Override
       public com.google.datastore.v1.Key.PathElement buildPartial() {
-        com.google.datastore.v1.Key.PathElement result = new com.google.datastore.v1.Key.PathElement(this);
+        com.google.datastore.v1.Key.PathElement result =
+            new com.google.datastore.v1.Key.PathElement(this);
         result.kind_ = kind_;
         if (idTypeCase_ == 2) {
           result.idType_ = idType_;
@@ -826,38 +902,41 @@ public com.google.datastore.v1.Key.PathElement buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.datastore.v1.Key.PathElement) {
-          return mergeFrom((com.google.datastore.v1.Key.PathElement)other);
+          return mergeFrom((com.google.datastore.v1.Key.PathElement) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -871,19 +950,22 @@ public Builder mergeFrom(com.google.datastore.v1.Key.PathElement other) {
           onChanged();
         }
         switch (other.getIdTypeCase()) {
-          case ID: {
-            setId(other.getId());
-            break;
-          }
-          case NAME: {
-            idTypeCase_ = 3;
-            idType_ = other.idType_;
-            onChanged();
-            break;
-          }
-          case IDTYPE_NOT_SET: {
-            break;
-          }
+          case ID:
+            {
+              setId(other.getId());
+              break;
+            }
+          case NAME:
+            {
+              idTypeCase_ = 3;
+              idType_ = other.idType_;
+              onChanged();
+              break;
+            }
+          case IDTYPE_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -913,12 +995,12 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int idTypeCase_ = 0;
       private java.lang.Object idType_;
-      public IdTypeCase
-          getIdTypeCase() {
-        return IdTypeCase.forNumber(
-            idTypeCase_);
+
+      public IdTypeCase getIdTypeCase() {
+        return IdTypeCase.forNumber(idTypeCase_);
       }
 
       public Builder clearIdType() {
@@ -928,9 +1010,10 @@ public Builder clearIdType() {
         return this;
       }
 
-
       private java.lang.Object kind_ = "";
       /**
+       *
+       *
        * 
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -942,13 +1025,13 @@ public Builder clearIdType() {
        * 
* * string kind = 1; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -957,6 +1040,8 @@ public java.lang.String getKind() { } } /** + * + * *
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -968,15 +1053,14 @@ public java.lang.String getKind() {
        * 
* * string kind = 1; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -984,6 +1068,8 @@ public java.lang.String getKind() { } } /** + * + * *
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -995,20 +1081,22 @@ public java.lang.String getKind() {
        * 
* * string kind = 1; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -1020,15 +1108,18 @@ public Builder setKind(
        * 
* * string kind = 1; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
        * The kind of the entity.
        * A kind matching regex `__.*__` is reserved/read-only.
@@ -1040,22 +1131,24 @@ public Builder clearKind() {
        * 
* * string kind = 1; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } /** + * + * *
        * The auto-allocated ID of the entity.
        * Never equal to zero. Values less than zero are discouraged and may not
@@ -1063,12 +1156,15 @@ public Builder setKindBytes(
        * 
* * int64 id = 2; + * * @return Whether the id field is set. */ public boolean hasId() { return idTypeCase_ == 2; } /** + * + * *
        * The auto-allocated ID of the entity.
        * Never equal to zero. Values less than zero are discouraged and may not
@@ -1076,6 +1172,7 @@ public boolean hasId() {
        * 
* * int64 id = 2; + * * @return The id. */ public long getId() { @@ -1085,6 +1182,8 @@ public long getId() { return 0L; } /** + * + * *
        * The auto-allocated ID of the entity.
        * Never equal to zero. Values less than zero are discouraged and may not
@@ -1092,6 +1191,7 @@ public long getId() {
        * 
* * int64 id = 2; + * * @param value The id to set. * @return This builder for chaining. */ @@ -1102,6 +1202,8 @@ public Builder setId(long value) { return this; } /** + * + * *
        * The auto-allocated ID of the entity.
        * Never equal to zero. Values less than zero are discouraged and may not
@@ -1109,6 +1211,7 @@ public Builder setId(long value) {
        * 
* * int64 id = 2; + * * @return This builder for chaining. */ public Builder clearId() { @@ -1121,6 +1224,8 @@ public Builder clearId() { } /** + * + * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1132,6 +1237,7 @@ public Builder clearId() {
        * 
* * string name = 3; + * * @return Whether the name field is set. */ @java.lang.Override @@ -1139,6 +1245,8 @@ public boolean hasName() { return idTypeCase_ == 3; } /** + * + * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1150,6 +1258,7 @@ public boolean hasName() {
        * 
* * string name = 3; + * * @return The name. */ @java.lang.Override @@ -1159,8 +1268,7 @@ public java.lang.String getName() { ref = idType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idTypeCase_ == 3) { idType_ = s; @@ -1171,6 +1279,8 @@ public java.lang.String getName() { } } /** + * + * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1182,19 +1292,18 @@ public java.lang.String getName() {
        * 
* * string name = 3; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = ""; if (idTypeCase_ == 3) { ref = idType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (idTypeCase_ == 3) { idType_ = b; } @@ -1204,6 +1313,8 @@ public java.lang.String getName() { } } /** + * + * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1215,20 +1326,22 @@ public java.lang.String getName() {
        * 
* * string name = 3; + * * @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(); - } - idTypeCase_ = 3; + throw new NullPointerException(); + } + idTypeCase_ = 3; idType_ = value; onChanged(); return this; } /** + * + * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1240,6 +1353,7 @@ public Builder setName(
        * 
* * string name = 3; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1251,6 +1365,8 @@ public Builder clearName() { return this; } /** + * + * *
        * The name of the entity.
        * A name matching regex `__.*__` is reserved/read-only.
@@ -1262,20 +1378,21 @@ public Builder clearName() {
        * 
* * string name = 3; + * * @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); idTypeCase_ = 3; idType_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1288,12 +1405,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.Key.PathElement) } // @@protoc_insertion_point(class_scope:google.datastore.v1.Key.PathElement) private static final com.google.datastore.v1.Key.PathElement DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.Key.PathElement(); } @@ -1302,16 +1419,16 @@ public static com.google.datastore.v1.Key.PathElement getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PathElement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PathElement(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PathElement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PathElement(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1326,12 +1443,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.Key.PathElement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PARTITION_ID_FIELD_NUMBER = 1; private com.google.datastore.v1.PartitionId partitionId_; /** + * + * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -1339,6 +1457,7 @@ public com.google.datastore.v1.Key.PathElement getDefaultInstanceForType() {
    * 
* * .google.datastore.v1.PartitionId partition_id = 1; + * * @return Whether the partitionId field is set. */ @java.lang.Override @@ -1346,6 +1465,8 @@ public boolean hasPartitionId() { return partitionId_ != null; } /** + * + * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -1353,13 +1474,18 @@ public boolean hasPartitionId() {
    * 
* * .google.datastore.v1.PartitionId partition_id = 1; + * * @return The partitionId. */ @java.lang.Override public com.google.datastore.v1.PartitionId getPartitionId() { - return partitionId_ == null ? com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_; + return partitionId_ == null + ? com.google.datastore.v1.PartitionId.getDefaultInstance() + : partitionId_; } /** + * + * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -1376,6 +1502,8 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
   public static final int PATH_FIELD_NUMBER = 2;
   private java.util.List path_;
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1400,6 +1528,8 @@ public java.util.List getPathList() {
     return path_;
   }
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1420,11 +1550,13 @@ public java.util.List getPathList() {
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPathOrBuilderList() {
     return path_;
   }
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1449,6 +1581,8 @@ public int getPathCount() {
     return path_.size();
   }
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1473,6 +1607,8 @@ public com.google.datastore.v1.Key.PathElement getPath(int index) {
     return path_.get(index);
   }
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -1493,12 +1629,12 @@ public com.google.datastore.v1.Key.PathElement getPath(int index) {
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
   @java.lang.Override
-  public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
-      int index) {
+  public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int index) {
     return path_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1510,8 +1646,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 (partitionId_ != null) {
       output.writeMessage(1, getPartitionId());
     }
@@ -1528,12 +1663,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (partitionId_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getPartitionId());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPartitionId());
     }
     for (int i = 0; i < path_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, path_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, path_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1543,7 +1676,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.Key)) {
       return super.equals(obj);
@@ -1552,11 +1685,9 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasPartitionId() != other.hasPartitionId()) return false;
     if (hasPartitionId()) {
-      if (!getPartitionId()
-          .equals(other.getPartitionId())) return false;
+      if (!getPartitionId().equals(other.getPartitionId())) return false;
     }
-    if (!getPathList()
-        .equals(other.getPathList())) return false;
+    if (!getPathList().equals(other.getPathList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1581,97 +1712,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.Key parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.Key parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Key parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.v1.Key parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.datastore.v1.Key parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Key parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Key parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Key parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Key parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Key parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Key parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Key parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.v1.Key parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.datastore.v1.Key parseFrom(com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Key parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.Key prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A unique identifier for an entity.
    * If a key's partition ID or any of its path kinds or names are
@@ -1681,19 +1818,19 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.v1.Key}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.Key)
       com.google.datastore.v1.KeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Key_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.datastore.v1.Key.class, com.google.datastore.v1.Key.Builder.class);
     }
@@ -1703,17 +1840,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPathFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1733,8 +1870,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Key_descriptor;
     }
 
@@ -1778,38 +1914,39 @@ public com.google.datastore.v1.Key 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.datastore.v1.Key) {
-        return mergeFrom((com.google.datastore.v1.Key)other);
+        return mergeFrom((com.google.datastore.v1.Key) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1839,9 +1976,10 @@ public Builder mergeFrom(com.google.datastore.v1.Key other) {
             pathBuilder_ = null;
             path_ = other.path_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pathBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPathFieldBuilder() : null;
+            pathBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPathFieldBuilder()
+                    : null;
           } else {
             pathBuilder_.addAllMessages(other.path_);
           }
@@ -1875,12 +2013,18 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.datastore.v1.PartitionId partitionId_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder> partitionIdBuilder_;
+            com.google.datastore.v1.PartitionId,
+            com.google.datastore.v1.PartitionId.Builder,
+            com.google.datastore.v1.PartitionIdOrBuilder>
+        partitionIdBuilder_;
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -1888,12 +2032,15 @@ public Builder mergeFrom(
      * 
* * .google.datastore.v1.PartitionId partition_id = 1; + * * @return Whether the partitionId field is set. */ public boolean hasPartitionId() { return partitionIdBuilder_ != null || partitionId_ != null; } /** + * + * *
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -1901,16 +2048,21 @@ public boolean hasPartitionId() {
      * 
* * .google.datastore.v1.PartitionId partition_id = 1; + * * @return The partitionId. */ public com.google.datastore.v1.PartitionId getPartitionId() { if (partitionIdBuilder_ == null) { - return partitionId_ == null ? com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_; + return partitionId_ == null + ? com.google.datastore.v1.PartitionId.getDefaultInstance() + : partitionId_; } else { return partitionIdBuilder_.getMessage(); } } /** + * + * *
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -1933,6 +2085,8 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -1941,8 +2095,7 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId value) {
      *
      * .google.datastore.v1.PartitionId partition_id = 1;
      */
-    public Builder setPartitionId(
-        com.google.datastore.v1.PartitionId.Builder builderForValue) {
+    public Builder setPartitionId(com.google.datastore.v1.PartitionId.Builder builderForValue) {
       if (partitionIdBuilder_ == null) {
         partitionId_ = builderForValue.build();
         onChanged();
@@ -1953,6 +2106,8 @@ public Builder setPartitionId(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -1965,7 +2120,9 @@ public Builder mergePartitionId(com.google.datastore.v1.PartitionId value) {
       if (partitionIdBuilder_ == null) {
         if (partitionId_ != null) {
           partitionId_ =
-            com.google.datastore.v1.PartitionId.newBuilder(partitionId_).mergeFrom(value).buildPartial();
+              com.google.datastore.v1.PartitionId.newBuilder(partitionId_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           partitionId_ = value;
         }
@@ -1977,6 +2134,8 @@ public Builder mergePartitionId(com.google.datastore.v1.PartitionId value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -1997,6 +2156,8 @@ public Builder clearPartitionId() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2006,11 +2167,13 @@ public Builder clearPartitionId() {
      * .google.datastore.v1.PartitionId partition_id = 1;
      */
     public com.google.datastore.v1.PartitionId.Builder getPartitionIdBuilder() {
-      
+
       onChanged();
       return getPartitionIdFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2023,11 +2186,14 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
       if (partitionIdBuilder_ != null) {
         return partitionIdBuilder_.getMessageOrBuilder();
       } else {
-        return partitionId_ == null ?
-            com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_;
+        return partitionId_ == null
+            ? com.google.datastore.v1.PartitionId.getDefaultInstance()
+            : partitionId_;
       }
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, currently identified by a project
      * ID and namespace ID.
@@ -2037,32 +2203,41 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
      * .google.datastore.v1.PartitionId partition_id = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder> 
+            com.google.datastore.v1.PartitionId,
+            com.google.datastore.v1.PartitionId.Builder,
+            com.google.datastore.v1.PartitionIdOrBuilder>
         getPartitionIdFieldBuilder() {
       if (partitionIdBuilder_ == null) {
-        partitionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder>(
-                getPartitionId(),
-                getParentForChildren(),
-                isClean());
+        partitionIdBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.PartitionId,
+                com.google.datastore.v1.PartitionId.Builder,
+                com.google.datastore.v1.PartitionIdOrBuilder>(
+                getPartitionId(), getParentForChildren(), isClean());
         partitionId_ = null;
       }
       return partitionIdBuilder_;
     }
 
     private java.util.List path_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePathIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         path_ = new java.util.ArrayList(path_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.Key.PathElement, com.google.datastore.v1.Key.PathElement.Builder, com.google.datastore.v1.Key.PathElementOrBuilder> pathBuilder_;
+            com.google.datastore.v1.Key.PathElement,
+            com.google.datastore.v1.Key.PathElement.Builder,
+            com.google.datastore.v1.Key.PathElementOrBuilder>
+        pathBuilder_;
 
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2090,6 +2265,8 @@ public java.util.List getPathList() {
       }
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2117,6 +2294,8 @@ public int getPathCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2144,6 +2323,8 @@ public com.google.datastore.v1.Key.PathElement getPath(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2163,8 +2344,7 @@ public com.google.datastore.v1.Key.PathElement getPath(int index) {
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public Builder setPath(
-        int index, com.google.datastore.v1.Key.PathElement value) {
+    public Builder setPath(int index, com.google.datastore.v1.Key.PathElement value) {
       if (pathBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2178,6 +2358,8 @@ public Builder setPath(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2209,6 +2391,8 @@ public Builder setPath(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2242,6 +2426,8 @@ public Builder addPath(com.google.datastore.v1.Key.PathElement value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2261,8 +2447,7 @@ public Builder addPath(com.google.datastore.v1.Key.PathElement value) {
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public Builder addPath(
-        int index, com.google.datastore.v1.Key.PathElement value) {
+    public Builder addPath(int index, com.google.datastore.v1.Key.PathElement value) {
       if (pathBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2276,6 +2461,8 @@ public Builder addPath(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2295,8 +2482,7 @@ public Builder addPath(
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public Builder addPath(
-        com.google.datastore.v1.Key.PathElement.Builder builderForValue) {
+    public Builder addPath(com.google.datastore.v1.Key.PathElement.Builder builderForValue) {
       if (pathBuilder_ == null) {
         ensurePathIsMutable();
         path_.add(builderForValue.build());
@@ -2307,6 +2493,8 @@ public Builder addPath(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2338,6 +2526,8 @@ public Builder addPath(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2361,8 +2551,7 @@ public Builder addAllPath(
         java.lang.Iterable values) {
       if (pathBuilder_ == null) {
         ensurePathIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, path_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, path_);
         onChanged();
       } else {
         pathBuilder_.addAllMessages(values);
@@ -2370,6 +2559,8 @@ public Builder addAllPath(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2400,6 +2591,8 @@ public Builder clearPath() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2430,6 +2623,8 @@ public Builder removePath(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2449,11 +2644,12 @@ public Builder removePath(int index) {
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public com.google.datastore.v1.Key.PathElement.Builder getPathBuilder(
-        int index) {
+    public com.google.datastore.v1.Key.PathElement.Builder getPathBuilder(int index) {
       return getPathFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2473,14 +2669,16 @@ public com.google.datastore.v1.Key.PathElement.Builder getPathBuilder(
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
-        int index) {
+    public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int index) {
       if (pathBuilder_ == null) {
-        return path_.get(index);  } else {
+        return path_.get(index);
+      } else {
         return pathBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2500,8 +2698,8 @@ public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public java.util.List 
-         getPathOrBuilderList() {
+    public java.util.List
+        getPathOrBuilderList() {
       if (pathBuilder_ != null) {
         return pathBuilder_.getMessageOrBuilderList();
       } else {
@@ -2509,6 +2707,8 @@ public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2529,10 +2729,12 @@ public com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
     public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder() {
-      return getPathFieldBuilder().addBuilder(
-          com.google.datastore.v1.Key.PathElement.getDefaultInstance());
+      return getPathFieldBuilder()
+          .addBuilder(com.google.datastore.v1.Key.PathElement.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2552,12 +2754,13 @@ public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder() {
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder(
-        int index) {
-      return getPathFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.Key.PathElement.getDefaultInstance());
+    public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder(int index) {
+      return getPathFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.Key.PathElement.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The entity path.
      * An entity path consists of one or more elements composed of a kind and a
@@ -2577,27 +2780,29 @@ public com.google.datastore.v1.Key.PathElement.Builder addPathBuilder(
      *
      * repeated .google.datastore.v1.Key.PathElement path = 2;
      */
-    public java.util.List 
-         getPathBuilderList() {
+    public java.util.List getPathBuilderList() {
       return getPathFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.Key.PathElement, com.google.datastore.v1.Key.PathElement.Builder, com.google.datastore.v1.Key.PathElementOrBuilder> 
+            com.google.datastore.v1.Key.PathElement,
+            com.google.datastore.v1.Key.PathElement.Builder,
+            com.google.datastore.v1.Key.PathElementOrBuilder>
         getPathFieldBuilder() {
       if (pathBuilder_ == null) {
-        pathBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Key.PathElement, com.google.datastore.v1.Key.PathElement.Builder, com.google.datastore.v1.Key.PathElementOrBuilder>(
-                path_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        pathBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.Key.PathElement,
+                com.google.datastore.v1.Key.PathElement.Builder,
+                com.google.datastore.v1.Key.PathElementOrBuilder>(
+                path_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         path_ = null;
       }
       return pathBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2607,12 +2812,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.Key)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.Key)
   private static final com.google.datastore.v1.Key DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.Key();
   }
@@ -2621,16 +2826,16 @@ public static com.google.datastore.v1.Key getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Key parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Key(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Key parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Key(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2645,6 +2850,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.Key getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
similarity index 88%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
index 97e5ae5fa..37543f602 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KeyOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/entity.proto
 
 package com.google.datastore.v1;
 
-public interface KeyOrBuilder extends
+public interface KeyOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.Key)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -15,10 +33,13 @@ public interface KeyOrBuilder extends
    * 
* * .google.datastore.v1.PartitionId partition_id = 1; + * * @return Whether the partitionId field is set. */ boolean hasPartitionId(); /** + * + * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -26,10 +47,13 @@ public interface KeyOrBuilder extends
    * 
* * .google.datastore.v1.PartitionId partition_id = 1; + * * @return The partitionId. */ com.google.datastore.v1.PartitionId getPartitionId(); /** + * + * *
    * Entities are partitioned into subsets, currently identified by a project
    * ID and namespace ID.
@@ -41,6 +65,8 @@ public interface KeyOrBuilder extends
   com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder();
 
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -60,9 +86,10 @@ public interface KeyOrBuilder extends
    *
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
-  java.util.List 
-      getPathList();
+  java.util.List getPathList();
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -84,6 +111,8 @@ public interface KeyOrBuilder extends
    */
   com.google.datastore.v1.Key.PathElement getPath(int index);
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -105,6 +134,8 @@ public interface KeyOrBuilder extends
    */
   int getPathCount();
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -124,9 +155,10 @@ public interface KeyOrBuilder extends
    *
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
-  java.util.List 
-      getPathOrBuilderList();
+  java.util.List getPathOrBuilderList();
   /**
+   *
+   *
    * 
    * The entity path.
    * An entity path consists of one or more elements composed of a kind and a
@@ -146,6 +178,5 @@ public interface KeyOrBuilder extends
    *
    * repeated .google.datastore.v1.Key.PathElement path = 2;
    */
-  com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(
-      int index);
+  com.google.datastore.v1.Key.PathElementOrBuilder getPathOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
index b16ac71da..2c1af7333 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * A representation of a kind.
  * 
* * Protobuf type {@code google.datastore.v1.KindExpression} */ -public final class KindExpression extends - com.google.protobuf.GeneratedMessageV3 implements +public final class KindExpression extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.KindExpression) KindExpressionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KindExpression.newBuilder() to construct. private KindExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private KindExpression() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KindExpression(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private KindExpression( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private KindExpression( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private KindExpression( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_KindExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_KindExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.KindExpression.class, com.google.datastore.v1.KindExpression.Builder.class); + com.google.datastore.v1.KindExpression.class, + com.google.datastore.v1.KindExpression.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the kind.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the kind.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +199,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.KindExpression)) { return super.equals(obj); } com.google.datastore.v1.KindExpression other = (com.google.datastore.v1.KindExpression) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +225,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.KindExpression parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.KindExpression parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.KindExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.KindExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.KindExpression parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.KindExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.KindExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.KindExpression parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.KindExpression parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.KindExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.KindExpression parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.KindExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.KindExpression parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.KindExpression prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A representation of a kind.
    * 
* * Protobuf type {@code google.datastore.v1.KindExpression} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.KindExpression) com.google.datastore.v1.KindExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_KindExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_KindExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.KindExpression.class, com.google.datastore.v1.KindExpression.Builder.class); + com.google.datastore.v1.KindExpression.class, + com.google.datastore.v1.KindExpression.Builder.class); } // Construct using com.google.datastore.v1.KindExpression.newBuilder() @@ -322,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_KindExpression_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_KindExpression_descriptor; } @java.lang.Override @@ -362,7 +392,8 @@ public com.google.datastore.v1.KindExpression build() { @java.lang.Override public com.google.datastore.v1.KindExpression buildPartial() { - com.google.datastore.v1.KindExpression result = new com.google.datastore.v1.KindExpression(this); + com.google.datastore.v1.KindExpression result = + new com.google.datastore.v1.KindExpression(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +403,39 @@ public com.google.datastore.v1.KindExpression 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.datastore.v1.KindExpression) { - return mergeFrom((com.google.datastore.v1.KindExpression)other); + return mergeFrom((com.google.datastore.v1.KindExpression) other); } else { super.mergeFrom(other); return this; @@ -447,18 +479,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The name of the kind.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +501,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the kind.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +523,68 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the kind.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the kind.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the kind.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.KindExpression) } // @@protoc_insertion_point(class_scope:google.datastore.v1.KindExpression) private static final com.google.datastore.v1.KindExpression DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.KindExpression(); } @@ -566,16 +608,16 @@ public static com.google.datastore.v1.KindExpression getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KindExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KindExpression(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KindExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KindExpression(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +632,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.KindExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java new file mode 100644 index 000000000..2f4fcbb91 --- /dev/null +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpressionOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/v1/query.proto + +package com.google.datastore.v1; + +public interface KindExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.datastore.v1.KindExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the kind.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the kind.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java index d6684697c..aa6053927 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The request for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
  * 
* * Protobuf type {@code google.datastore.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.datastore.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() { projectId_ = ""; keys_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ 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; } + private LookupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,41 +72,45 @@ private LookupRequest( case 0: done = true; break; - case 10: { - com.google.datastore.v1.ReadOptions.Builder subBuilder = null; - if (readOptions_ != null) { - subBuilder = readOptions_.toBuilder(); + case 10: + { + com.google.datastore.v1.ReadOptions.Builder subBuilder = null; + if (readOptions_ != null) { + subBuilder = readOptions_.toBuilder(); + } + readOptions_ = + input.readMessage( + com.google.datastore.v1.ReadOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readOptions_); + readOptions_ = subBuilder.buildPartial(); + } + + break; } - readOptions_ = input.readMessage(com.google.datastore.v1.ReadOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readOptions_); - readOptions_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keys_.add(input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + projectId_ = s; + break; } - keys_.add( - input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - projectId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,8 +118,7 @@ private LookupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -107,27 +127,33 @@ private LookupRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.LookupRequest.class, com.google.datastore.v1.LookupRequest.Builder.class); + com.google.datastore.v1.LookupRequest.class, + com.google.datastore.v1.LookupRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -136,29 +162,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -169,11 +195,14 @@ public java.lang.String getProjectId() { public static final int READ_OPTIONS_FIELD_NUMBER = 1; private com.google.datastore.v1.ReadOptions readOptions_; /** + * + * *
    * The options for this lookup request.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return Whether the readOptions field is set. */ @java.lang.Override @@ -181,18 +210,25 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** + * + * *
    * The options for this lookup request.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return The readOptions. */ @java.lang.Override public com.google.datastore.v1.ReadOptions getReadOptions() { - return readOptions_ == null ? com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.datastore.v1.ReadOptions.getDefaultInstance() + : readOptions_; } /** + * + * *
    * The options for this lookup request.
    * 
@@ -207,64 +243,78 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { public static final int KEYS_FIELD_NUMBER = 3; private java.util.List keys_; /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getKeysList() { return keys_; } /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List - getKeysOrBuilderList() { + public java.util.List getKeysOrBuilderList() { return keys_; } /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getKeysCount() { return keys_.size(); } /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.datastore.v1.Key getKeys(int index) { return keys_.get(index); } /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +326,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (readOptions_ != null) { output.writeMessage(1, getReadOptions()); } @@ -297,12 +346,10 @@ public int getSerializedSize() { size = 0; if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReadOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadOptions()); } for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, keys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, keys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -315,22 +362,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.datastore.v1.LookupRequest)) { return super.equals(obj); } com.google.datastore.v1.LookupRequest other = (com.google.datastore.v1.LookupRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions() - .equals(other.getReadOptions())) return false; + if (!getReadOptions().equals(other.getReadOptions())) return false; } - if (!getKeysList() - .equals(other.getKeysList())) return false; + if (!getKeysList().equals(other.getKeysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -357,118 +401,126 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.LookupRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.LookupRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.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.datastore.v1.LookupRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.datastore.v1.LookupRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.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.datastore.v1.LookupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.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.datastore.v1.LookupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.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.datastore.v1.LookupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.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.datastore.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.datastore.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.datastore.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; } /** + * + * *
    * The request for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
    * 
* * Protobuf type {@code google.datastore.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.datastore.v1.LookupRequest) com.google.datastore.v1.LookupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.LookupRequest.class, com.google.datastore.v1.LookupRequest.Builder.class); + com.google.datastore.v1.LookupRequest.class, + com.google.datastore.v1.LookupRequest.Builder.class); } // Construct using com.google.datastore.v1.LookupRequest.newBuilder() @@ -476,17 +528,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getKeysFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -508,9 +560,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupRequest_descriptor; } @java.lang.Override @@ -529,7 +581,8 @@ public com.google.datastore.v1.LookupRequest build() { @java.lang.Override public com.google.datastore.v1.LookupRequest buildPartial() { - com.google.datastore.v1.LookupRequest result = new com.google.datastore.v1.LookupRequest(this); + com.google.datastore.v1.LookupRequest result = + new com.google.datastore.v1.LookupRequest(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; if (readOptionsBuilder_ == null) { @@ -554,38 +607,39 @@ public com.google.datastore.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.datastore.v1.LookupRequest) { - return mergeFrom((com.google.datastore.v1.LookupRequest)other); + return mergeFrom((com.google.datastore.v1.LookupRequest) other); } else { super.mergeFrom(other); return this; @@ -619,9 +673,10 @@ public Builder mergeFrom(com.google.datastore.v1.LookupRequest other) { keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -655,22 +710,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -679,20 +737,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -700,54 +759,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -755,34 +821,47 @@ public Builder setProjectIdBytes( private com.google.datastore.v1.ReadOptions readOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder> readOptionsBuilder_; + com.google.datastore.v1.ReadOptions, + com.google.datastore.v1.ReadOptions.Builder, + com.google.datastore.v1.ReadOptionsOrBuilder> + readOptionsBuilder_; /** + * + * *
      * The options for this lookup request.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return readOptionsBuilder_ != null || readOptions_ != null; } /** + * + * *
      * The options for this lookup request.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return The readOptions. */ public com.google.datastore.v1.ReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null ? com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.datastore.v1.ReadOptions.getDefaultInstance() + : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** + * + * *
      * The options for this lookup request.
      * 
@@ -803,14 +882,15 @@ public Builder setReadOptions(com.google.datastore.v1.ReadOptions value) { return this; } /** + * + * *
      * The options for this lookup request.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; */ - public Builder setReadOptions( - com.google.datastore.v1.ReadOptions.Builder builderForValue) { + public Builder setReadOptions(com.google.datastore.v1.ReadOptions.Builder builderForValue) { if (readOptionsBuilder_ == null) { readOptions_ = builderForValue.build(); onChanged(); @@ -821,6 +901,8 @@ public Builder setReadOptions( return this; } /** + * + * *
      * The options for this lookup request.
      * 
@@ -831,7 +913,9 @@ public Builder mergeReadOptions(com.google.datastore.v1.ReadOptions value) { if (readOptionsBuilder_ == null) { if (readOptions_ != null) { readOptions_ = - com.google.datastore.v1.ReadOptions.newBuilder(readOptions_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.ReadOptions.newBuilder(readOptions_) + .mergeFrom(value) + .buildPartial(); } else { readOptions_ = value; } @@ -843,6 +927,8 @@ public Builder mergeReadOptions(com.google.datastore.v1.ReadOptions value) { return this; } /** + * + * *
      * The options for this lookup request.
      * 
@@ -861,6 +947,8 @@ public Builder clearReadOptions() { return this; } /** + * + * *
      * The options for this lookup request.
      * 
@@ -868,11 +956,13 @@ public Builder clearReadOptions() { * .google.datastore.v1.ReadOptions read_options = 1; */ public com.google.datastore.v1.ReadOptions.Builder getReadOptionsBuilder() { - + onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * The options for this lookup request.
      * 
@@ -883,11 +973,14 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null ? - com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.datastore.v1.ReadOptions.getDefaultInstance() + : readOptions_; } } /** + * + * *
      * The options for this lookup request.
      * 
@@ -895,37 +988,46 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { * .google.datastore.v1.ReadOptions read_options = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder> + com.google.datastore.v1.ReadOptions, + com.google.datastore.v1.ReadOptions.Builder, + com.google.datastore.v1.ReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder>( - getReadOptions(), - getParentForChildren(), - isClean()); + readOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.ReadOptions, + com.google.datastore.v1.ReadOptions.Builder, + com.google.datastore.v1.ReadOptionsOrBuilder>( + getReadOptions(), getParentForChildren(), isClean()); readOptions_ = null; } return readOptionsBuilder_; } - private java.util.List keys_ = - java.util.Collections.emptyList(); + private java.util.List keys_ = java.util.Collections.emptyList(); + private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keysBuilder_; + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> + keysBuilder_; /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getKeysList() { if (keysBuilder_ == null) { @@ -935,11 +1037,14 @@ public java.util.List getKeysList() { } } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getKeysCount() { if (keysBuilder_ == null) { @@ -949,11 +1054,14 @@ public int getKeysCount() { } } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.v1.Key getKeys(int index) { if (keysBuilder_ == null) { @@ -963,14 +1071,16 @@ public com.google.datastore.v1.Key getKeys(int index) { } } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKeys( - int index, com.google.datastore.v1.Key value) { + public Builder setKeys(int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -984,14 +1094,16 @@ public Builder setKeys( return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKeys( - int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.set(index, builderForValue.build()); @@ -1002,11 +1114,14 @@ public Builder setKeys( return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addKeys(com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { @@ -1022,14 +1137,16 @@ public Builder addKeys(com.google.datastore.v1.Key value) { return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - int index, com.google.datastore.v1.Key value) { + public Builder addKeys(int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1043,14 +1160,16 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); @@ -1061,14 +1180,16 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(index, builderForValue.build()); @@ -1079,18 +1200,19 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addAllKeys( - java.lang.Iterable values) { + public Builder addAllKeys(java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); @@ -1098,11 +1220,14 @@ public Builder addAllKeys( return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearKeys() { if (keysBuilder_ == null) { @@ -1115,11 +1240,14 @@ public Builder clearKeys() { return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeKeys(int index) { if (keysBuilder_ == null) { @@ -1132,39 +1260,46 @@ public Builder removeKeys(int index) { return this; } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.Key.Builder getKeysBuilder( - int index) { + public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) { return getKeysFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { if (keysBuilder_ == null) { - return keys_.get(index); } else { + return keys_.get(index); + } else { return keysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getKeysOrBuilderList() { + public java.util.List getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { @@ -1172,56 +1307,65 @@ public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( } } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.v1.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder( - com.google.datastore.v1.Key.getDefaultInstance()); + return getKeysFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance()); } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.Key.Builder addKeysBuilder( - int index) { - return getKeysFieldBuilder().addBuilder( - index, com.google.datastore.v1.Key.getDefaultInstance()); + public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) { + return getKeysFieldBuilder() + .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance()); } /** + * + * *
      * Required. Keys of entities to look up.
      * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getKeysBuilderList() { + public java.util.List getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>( - keys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + keysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder>( + keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1231,12 +1375,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.LookupRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.LookupRequest) private static final com.google.datastore.v1.LookupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.LookupRequest(); } @@ -1245,16 +1389,16 @@ public static com.google.datastore.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 { - return new LookupRequest(input, extensionRegistry); - } - }; + 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 { + return new LookupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1269,6 +1413,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.LookupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java index ddb71fc87..eb369b37e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequestOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface LookupRequestOrBuilder extends +public interface LookupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.LookupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * The options for this lookup request.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** + * + * *
    * The options for this lookup request.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return The readOptions. */ com.google.datastore.v1.ReadOptions getReadOptions(); /** + * + * *
    * The options for this lookup request.
    * 
@@ -55,46 +84,58 @@ public interface LookupRequestOrBuilder extends com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder(); /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getKeysList(); + java.util.List getKeysList(); /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.datastore.v1.Key getKeys(int index); /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ int getKeysCount(); /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getKeysOrBuilderList(); + java.util.List getKeysOrBuilderList(); /** + * + * *
    * Required. Keys of entities to look up.
    * 
* - * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index); + com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java index c8ee3ac95..f28afaa40 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponse.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The response for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
  * 
* * Protobuf type {@code google.datastore.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.datastore.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() { found_ = java.util.Collections.emptyList(); missing_ = java.util.Collections.emptyList(); @@ -27,16 +45,15 @@ 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; } + private LookupResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,53 +73,60 @@ private LookupResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - found_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + found_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + found_.add( + input.readMessage( + com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); + break; } - found_.add( - input.readMessage(com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missing_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - missing_.add( - input.readMessage(com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - deferred_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - deferred_.add( - input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missing_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + missing_.add( + input.readMessage( + com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + deferred_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + deferred_.add( + input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,8 +134,7 @@ private LookupResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { found_ = java.util.Collections.unmodifiableList(found_); @@ -126,22 +149,27 @@ private LookupResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.LookupResponse.class, com.google.datastore.v1.LookupResponse.Builder.class); + com.google.datastore.v1.LookupResponse.class, + com.google.datastore.v1.LookupResponse.Builder.class); } public static final int FOUND_FIELD_NUMBER = 1; private java.util.List found_; /** + * + * *
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -155,6 +183,8 @@ public java.util.List getFoundList() {
     return found_;
   }
   /**
+   *
+   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -164,11 +194,13 @@ public java.util.List getFoundList() {
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getFoundOrBuilderList() {
     return found_;
   }
   /**
+   *
+   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -182,6 +214,8 @@ public int getFoundCount() {
     return found_.size();
   }
   /**
+   *
+   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -195,6 +229,8 @@ public com.google.datastore.v1.EntityResult getFound(int index) {
     return found_.get(index);
   }
   /**
+   *
+   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -204,14 +240,15 @@ public com.google.datastore.v1.EntityResult getFound(int index) {
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
   @java.lang.Override
-  public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
-      int index) {
+  public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index) {
     return found_.get(index);
   }
 
   public static final int MISSING_FIELD_NUMBER = 2;
   private java.util.List missing_;
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -225,6 +262,8 @@ public java.util.List getMissingList() {
     return missing_;
   }
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -234,11 +273,13 @@ public java.util.List getMissingList() {
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getMissingOrBuilderList() {
     return missing_;
   }
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -252,6 +293,8 @@ public int getMissingCount() {
     return missing_.size();
   }
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -265,6 +308,8 @@ public com.google.datastore.v1.EntityResult getMissing(int index) {
     return missing_.get(index);
   }
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -274,14 +319,15 @@ public com.google.datastore.v1.EntityResult getMissing(int index) {
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
   @java.lang.Override
-  public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
-      int index) {
+  public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int index) {
     return missing_.get(index);
   }
 
   public static final int DEFERRED_FIELD_NUMBER = 3;
   private java.util.List deferred_;
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -295,6 +341,8 @@ public java.util.List getDeferredList() {
     return deferred_;
   }
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -304,11 +352,12 @@ public java.util.List getDeferredList() {
    * repeated .google.datastore.v1.Key deferred = 3;
    */
   @java.lang.Override
-  public java.util.List 
-      getDeferredOrBuilderList() {
+  public java.util.List getDeferredOrBuilderList() {
     return deferred_;
   }
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -322,6 +371,8 @@ public int getDeferredCount() {
     return deferred_.size();
   }
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -335,6 +386,8 @@ public com.google.datastore.v1.Key getDeferred(int index) {
     return deferred_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -344,19 +397,21 @@ public com.google.datastore.v1.Key getDeferred(int index) {
    * repeated .google.datastore.v1.Key deferred = 3;
    */
   @java.lang.Override
-  public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
-      int index) {
+  public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index) {
     return deferred_.get(index);
   }
 
   public static final int READ_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * The time at which these entities were read or found missing.
    * 
* * .google.protobuf.Timestamp read_time = 7; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -364,11 +419,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * The time at which these entities were read or found missing.
    * 
* * .google.protobuf.Timestamp read_time = 7; + * * @return The readTime. */ @java.lang.Override @@ -376,6 +434,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * The time at which these entities were read or found missing.
    * 
@@ -388,6 +448,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,8 +460,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 < found_.size(); i++) { output.writeMessage(1, found_.get(i)); } @@ -423,20 +483,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < found_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, found_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, found_.get(i)); } for (int i = 0; i < missing_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, missing_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missing_.get(i)); } for (int i = 0; i < deferred_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, deferred_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, deferred_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getReadTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -446,23 +502,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.datastore.v1.LookupResponse)) { return super.equals(obj); } com.google.datastore.v1.LookupResponse other = (com.google.datastore.v1.LookupResponse) obj; - if (!getFoundList() - .equals(other.getFoundList())) return false; - if (!getMissingList() - .equals(other.getMissingList())) return false; - if (!getDeferredList() - .equals(other.getDeferredList())) return false; + if (!getFoundList().equals(other.getFoundList())) return false; + if (!getMissingList().equals(other.getMissingList())) return false; + if (!getDeferredList().equals(other.getDeferredList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -496,118 +548,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.LookupResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.LookupResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.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.datastore.v1.LookupResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.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.datastore.v1.LookupResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.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.datastore.v1.LookupResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.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.datastore.v1.LookupResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.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.datastore.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.datastore.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.datastore.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; } /** + * + * *
    * The response for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
    * 
* * Protobuf type {@code google.datastore.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.datastore.v1.LookupResponse) com.google.datastore.v1.LookupResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.LookupResponse.class, com.google.datastore.v1.LookupResponse.Builder.class); + com.google.datastore.v1.LookupResponse.class, + com.google.datastore.v1.LookupResponse.Builder.class); } // Construct using com.google.datastore.v1.LookupResponse.newBuilder() @@ -615,19 +676,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFoundFieldBuilder(); getMissingFieldBuilder(); getDeferredFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +720,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_LookupResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_LookupResponse_descriptor; } @java.lang.Override @@ -680,7 +741,8 @@ public com.google.datastore.v1.LookupResponse build() { @java.lang.Override public com.google.datastore.v1.LookupResponse buildPartial() { - com.google.datastore.v1.LookupResponse result = new com.google.datastore.v1.LookupResponse(this); + com.google.datastore.v1.LookupResponse result = + new com.google.datastore.v1.LookupResponse(this); int from_bitField0_ = bitField0_; if (foundBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -722,38 +784,39 @@ public com.google.datastore.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.datastore.v1.LookupResponse) { - return mergeFrom((com.google.datastore.v1.LookupResponse)other); + return mergeFrom((com.google.datastore.v1.LookupResponse) other); } else { super.mergeFrom(other); return this; @@ -780,9 +843,10 @@ public Builder mergeFrom(com.google.datastore.v1.LookupResponse other) { foundBuilder_ = null; found_ = other.found_; bitField0_ = (bitField0_ & ~0x00000001); - foundBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFoundFieldBuilder() : null; + foundBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFoundFieldBuilder() + : null; } else { foundBuilder_.addAllMessages(other.found_); } @@ -806,9 +870,10 @@ public Builder mergeFrom(com.google.datastore.v1.LookupResponse other) { missingBuilder_ = null; missing_ = other.missing_; bitField0_ = (bitField0_ & ~0x00000002); - missingBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMissingFieldBuilder() : null; + missingBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMissingFieldBuilder() + : null; } else { missingBuilder_.addAllMessages(other.missing_); } @@ -832,9 +897,10 @@ public Builder mergeFrom(com.google.datastore.v1.LookupResponse other) { deferredBuilder_ = null; deferred_ = other.deferred_; bitField0_ = (bitField0_ & ~0x00000004); - deferredBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDeferredFieldBuilder() : null; + deferredBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeferredFieldBuilder() + : null; } else { deferredBuilder_.addAllMessages(other.deferred_); } @@ -871,21 +937,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List found_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFoundIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { found_ = new java.util.ArrayList(found_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> foundBuilder_; + com.google.datastore.v1.EntityResult, + com.google.datastore.v1.EntityResult.Builder, + com.google.datastore.v1.EntityResultOrBuilder> + foundBuilder_; /** + * + * *
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -902,6 +975,8 @@ public java.util.List getFoundList() {
       }
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -918,6 +993,8 @@ public int getFoundCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -934,6 +1011,8 @@ public com.google.datastore.v1.EntityResult getFound(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -942,8 +1021,7 @@ public com.google.datastore.v1.EntityResult getFound(int index) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public Builder setFound(
-        int index, com.google.datastore.v1.EntityResult value) {
+    public Builder setFound(int index, com.google.datastore.v1.EntityResult value) {
       if (foundBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -957,6 +1035,8 @@ public Builder setFound(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -977,6 +1057,8 @@ public Builder setFound(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -999,6 +1081,8 @@ public Builder addFound(com.google.datastore.v1.EntityResult value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1007,8 +1091,7 @@ public Builder addFound(com.google.datastore.v1.EntityResult value) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public Builder addFound(
-        int index, com.google.datastore.v1.EntityResult value) {
+    public Builder addFound(int index, com.google.datastore.v1.EntityResult value) {
       if (foundBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1022,6 +1105,8 @@ public Builder addFound(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1030,8 +1115,7 @@ public Builder addFound(
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public Builder addFound(
-        com.google.datastore.v1.EntityResult.Builder builderForValue) {
+    public Builder addFound(com.google.datastore.v1.EntityResult.Builder builderForValue) {
       if (foundBuilder_ == null) {
         ensureFoundIsMutable();
         found_.add(builderForValue.build());
@@ -1042,6 +1126,8 @@ public Builder addFound(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1062,6 +1148,8 @@ public Builder addFound(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1074,8 +1162,7 @@ public Builder addAllFound(
         java.lang.Iterable values) {
       if (foundBuilder_ == null) {
         ensureFoundIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, found_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, found_);
         onChanged();
       } else {
         foundBuilder_.addAllMessages(values);
@@ -1083,6 +1170,8 @@ public Builder addAllFound(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1102,6 +1191,8 @@ public Builder clearFound() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1121,6 +1212,8 @@ public Builder removeFound(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1129,11 +1222,12 @@ public Builder removeFound(int index) {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public com.google.datastore.v1.EntityResult.Builder getFoundBuilder(
-        int index) {
+    public com.google.datastore.v1.EntityResult.Builder getFoundBuilder(int index) {
       return getFoundFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1142,14 +1236,16 @@ public com.google.datastore.v1.EntityResult.Builder getFoundBuilder(
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
-        int index) {
+    public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index) {
       if (foundBuilder_ == null) {
-        return found_.get(index);  } else {
+        return found_.get(index);
+      } else {
         return foundBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1158,8 +1254,8 @@ public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public java.util.List 
-         getFoundOrBuilderList() {
+    public java.util.List
+        getFoundOrBuilderList() {
       if (foundBuilder_ != null) {
         return foundBuilder_.getMessageOrBuilderList();
       } else {
@@ -1167,6 +1263,8 @@ public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1176,10 +1274,12 @@ public com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
     public com.google.datastore.v1.EntityResult.Builder addFoundBuilder() {
-      return getFoundFieldBuilder().addBuilder(
-          com.google.datastore.v1.EntityResult.getDefaultInstance());
+      return getFoundFieldBuilder()
+          .addBuilder(com.google.datastore.v1.EntityResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1188,12 +1288,13 @@ public com.google.datastore.v1.EntityResult.Builder addFoundBuilder() {
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public com.google.datastore.v1.EntityResult.Builder addFoundBuilder(
-        int index) {
-      return getFoundFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.EntityResult.getDefaultInstance());
+    public com.google.datastore.v1.EntityResult.Builder addFoundBuilder(int index) {
+      return getFoundFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.EntityResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Entities found as `ResultType.FULL` entities. The order of results in this
      * field is undefined and has no relation to the order of the keys in the
@@ -1202,38 +1303,46 @@ public com.google.datastore.v1.EntityResult.Builder addFoundBuilder(
      *
      * repeated .google.datastore.v1.EntityResult found = 1;
      */
-    public java.util.List 
-         getFoundBuilderList() {
+    public java.util.List getFoundBuilderList() {
       return getFoundFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> 
+            com.google.datastore.v1.EntityResult,
+            com.google.datastore.v1.EntityResult.Builder,
+            com.google.datastore.v1.EntityResultOrBuilder>
         getFoundFieldBuilder() {
       if (foundBuilder_ == null) {
-        foundBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder>(
-                found_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        foundBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.EntityResult,
+                com.google.datastore.v1.EntityResult.Builder,
+                com.google.datastore.v1.EntityResultOrBuilder>(
+                found_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         found_ = null;
       }
       return foundBuilder_;
     }
 
     private java.util.List missing_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureMissingIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         missing_ = new java.util.ArrayList(missing_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> missingBuilder_;
+            com.google.datastore.v1.EntityResult,
+            com.google.datastore.v1.EntityResult.Builder,
+            com.google.datastore.v1.EntityResultOrBuilder>
+        missingBuilder_;
 
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1250,6 +1359,8 @@ public java.util.List getMissingList() {
       }
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1266,6 +1377,8 @@ public int getMissingCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1282,6 +1395,8 @@ public com.google.datastore.v1.EntityResult getMissing(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1290,8 +1405,7 @@ public com.google.datastore.v1.EntityResult getMissing(int index) {
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public Builder setMissing(
-        int index, com.google.datastore.v1.EntityResult value) {
+    public Builder setMissing(int index, com.google.datastore.v1.EntityResult value) {
       if (missingBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1305,6 +1419,8 @@ public Builder setMissing(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1325,6 +1441,8 @@ public Builder setMissing(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1347,6 +1465,8 @@ public Builder addMissing(com.google.datastore.v1.EntityResult value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1355,8 +1475,7 @@ public Builder addMissing(com.google.datastore.v1.EntityResult value) {
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public Builder addMissing(
-        int index, com.google.datastore.v1.EntityResult value) {
+    public Builder addMissing(int index, com.google.datastore.v1.EntityResult value) {
       if (missingBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1370,6 +1489,8 @@ public Builder addMissing(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1378,8 +1499,7 @@ public Builder addMissing(
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public Builder addMissing(
-        com.google.datastore.v1.EntityResult.Builder builderForValue) {
+    public Builder addMissing(com.google.datastore.v1.EntityResult.Builder builderForValue) {
       if (missingBuilder_ == null) {
         ensureMissingIsMutable();
         missing_.add(builderForValue.build());
@@ -1390,6 +1510,8 @@ public Builder addMissing(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1410,6 +1532,8 @@ public Builder addMissing(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1422,8 +1546,7 @@ public Builder addAllMissing(
         java.lang.Iterable values) {
       if (missingBuilder_ == null) {
         ensureMissingIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, missing_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missing_);
         onChanged();
       } else {
         missingBuilder_.addAllMessages(values);
@@ -1431,6 +1554,8 @@ public Builder addAllMissing(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1450,6 +1575,8 @@ public Builder clearMissing() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1469,6 +1596,8 @@ public Builder removeMissing(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1477,11 +1606,12 @@ public Builder removeMissing(int index) {
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public com.google.datastore.v1.EntityResult.Builder getMissingBuilder(
-        int index) {
+    public com.google.datastore.v1.EntityResult.Builder getMissingBuilder(int index) {
       return getMissingFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1490,14 +1620,16 @@ public com.google.datastore.v1.EntityResult.Builder getMissingBuilder(
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
-        int index) {
+    public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int index) {
       if (missingBuilder_ == null) {
-        return missing_.get(index);  } else {
+        return missing_.get(index);
+      } else {
         return missingBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1506,8 +1638,8 @@ public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public java.util.List 
-         getMissingOrBuilderList() {
+    public java.util.List
+        getMissingOrBuilderList() {
       if (missingBuilder_ != null) {
         return missingBuilder_.getMessageOrBuilderList();
       } else {
@@ -1515,6 +1647,8 @@ public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1524,10 +1658,12 @@ public com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
     public com.google.datastore.v1.EntityResult.Builder addMissingBuilder() {
-      return getMissingFieldBuilder().addBuilder(
-          com.google.datastore.v1.EntityResult.getDefaultInstance());
+      return getMissingFieldBuilder()
+          .addBuilder(com.google.datastore.v1.EntityResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1536,12 +1672,13 @@ public com.google.datastore.v1.EntityResult.Builder addMissingBuilder() {
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public com.google.datastore.v1.EntityResult.Builder addMissingBuilder(
-        int index) {
-      return getMissingFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.EntityResult.getDefaultInstance());
+    public com.google.datastore.v1.EntityResult.Builder addMissingBuilder(int index) {
+      return getMissingFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.EntityResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
      * in this field is undefined and has no relation to the order of the keys
@@ -1550,38 +1687,46 @@ public com.google.datastore.v1.EntityResult.Builder addMissingBuilder(
      *
      * repeated .google.datastore.v1.EntityResult missing = 2;
      */
-    public java.util.List 
-         getMissingBuilderList() {
+    public java.util.List getMissingBuilderList() {
       return getMissingFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> 
+            com.google.datastore.v1.EntityResult,
+            com.google.datastore.v1.EntityResult.Builder,
+            com.google.datastore.v1.EntityResultOrBuilder>
         getMissingFieldBuilder() {
       if (missingBuilder_ == null) {
-        missingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder>(
-                missing_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        missingBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.EntityResult,
+                com.google.datastore.v1.EntityResult.Builder,
+                com.google.datastore.v1.EntityResultOrBuilder>(
+                missing_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         missing_ = null;
       }
       return missingBuilder_;
     }
 
     private java.util.List deferred_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureDeferredIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
         deferred_ = new java.util.ArrayList(deferred_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> deferredBuilder_;
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
+        deferredBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1598,6 +1743,8 @@ public java.util.List getDeferredList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1614,6 +1761,8 @@ public int getDeferredCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1630,6 +1779,8 @@ public com.google.datastore.v1.Key getDeferred(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1638,8 +1789,7 @@ public com.google.datastore.v1.Key getDeferred(int index) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder setDeferred(
-        int index, com.google.datastore.v1.Key value) {
+    public Builder setDeferred(int index, com.google.datastore.v1.Key value) {
       if (deferredBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1653,6 +1803,8 @@ public Builder setDeferred(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1661,8 +1813,7 @@ public Builder setDeferred(
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder setDeferred(
-        int index, com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setDeferred(int index, com.google.datastore.v1.Key.Builder builderForValue) {
       if (deferredBuilder_ == null) {
         ensureDeferredIsMutable();
         deferred_.set(index, builderForValue.build());
@@ -1673,6 +1824,8 @@ public Builder setDeferred(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1695,6 +1848,8 @@ public Builder addDeferred(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1703,8 +1858,7 @@ public Builder addDeferred(com.google.datastore.v1.Key value) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder addDeferred(
-        int index, com.google.datastore.v1.Key value) {
+    public Builder addDeferred(int index, com.google.datastore.v1.Key value) {
       if (deferredBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1718,6 +1872,8 @@ public Builder addDeferred(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1726,8 +1882,7 @@ public Builder addDeferred(
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder addDeferred(
-        com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder addDeferred(com.google.datastore.v1.Key.Builder builderForValue) {
       if (deferredBuilder_ == null) {
         ensureDeferredIsMutable();
         deferred_.add(builderForValue.build());
@@ -1738,6 +1893,8 @@ public Builder addDeferred(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1746,8 +1903,7 @@ public Builder addDeferred(
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public Builder addDeferred(
-        int index, com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder addDeferred(int index, com.google.datastore.v1.Key.Builder builderForValue) {
       if (deferredBuilder_ == null) {
         ensureDeferredIsMutable();
         deferred_.add(index, builderForValue.build());
@@ -1758,6 +1914,8 @@ public Builder addDeferred(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1770,8 +1928,7 @@ public Builder addAllDeferred(
         java.lang.Iterable values) {
       if (deferredBuilder_ == null) {
         ensureDeferredIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, deferred_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deferred_);
         onChanged();
       } else {
         deferredBuilder_.addAllMessages(values);
@@ -1779,6 +1936,8 @@ public Builder addAllDeferred(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1798,6 +1957,8 @@ public Builder clearDeferred() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1817,6 +1978,8 @@ public Builder removeDeferred(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1825,11 +1988,12 @@ public Builder removeDeferred(int index) {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public com.google.datastore.v1.Key.Builder getDeferredBuilder(
-        int index) {
+    public com.google.datastore.v1.Key.Builder getDeferredBuilder(int index) {
       return getDeferredFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1838,14 +2002,16 @@ public com.google.datastore.v1.Key.Builder getDeferredBuilder(
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
-        int index) {
+    public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index) {
       if (deferredBuilder_ == null) {
-        return deferred_.get(index);  } else {
+        return deferred_.get(index);
+      } else {
         return deferredBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1854,8 +2020,8 @@ public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public java.util.List 
-         getDeferredOrBuilderList() {
+    public java.util.List
+        getDeferredOrBuilderList() {
       if (deferredBuilder_ != null) {
         return deferredBuilder_.getMessageOrBuilderList();
       } else {
@@ -1863,6 +2029,8 @@ public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1872,10 +2040,11 @@ public com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
      * repeated .google.datastore.v1.Key deferred = 3;
      */
     public com.google.datastore.v1.Key.Builder addDeferredBuilder() {
-      return getDeferredFieldBuilder().addBuilder(
-          com.google.datastore.v1.Key.getDefaultInstance());
+      return getDeferredFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1884,12 +2053,13 @@ public com.google.datastore.v1.Key.Builder addDeferredBuilder() {
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public com.google.datastore.v1.Key.Builder addDeferredBuilder(
-        int index) {
-      return getDeferredFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.Key.getDefaultInstance());
+    public com.google.datastore.v1.Key.Builder addDeferredBuilder(int index) {
+      return getDeferredFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of keys that were not looked up due to resource constraints. The
      * order of results in this field is undefined and has no relation to the
@@ -1898,20 +2068,22 @@ public com.google.datastore.v1.Key.Builder addDeferredBuilder(
      *
      * repeated .google.datastore.v1.Key deferred = 3;
      */
-    public java.util.List 
-         getDeferredBuilderList() {
+    public java.util.List getDeferredBuilderList() {
       return getDeferredFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
         getDeferredFieldBuilder() {
       if (deferredBuilder_ == null) {
-        deferredBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
-                deferred_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        deferredBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.Key,
+                com.google.datastore.v1.Key.Builder,
+                com.google.datastore.v1.KeyOrBuilder>(
+                deferred_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         deferred_ = null;
       }
       return deferredBuilder_;
@@ -1919,24 +2091,33 @@ public com.google.datastore.v1.Key.Builder addDeferredBuilder(
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        readTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which these entities were read or found missing.
      * 
* * .google.protobuf.Timestamp read_time = 7; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * The time at which these entities were read or found missing.
      * 
* * .google.protobuf.Timestamp read_time = 7; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1947,6 +2128,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * The time at which these entities were read or found missing.
      * 
@@ -1967,14 +2150,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which these entities were read or found missing.
      * 
* * .google.protobuf.Timestamp read_time = 7; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1985,6 +2169,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * The time at which these entities were read or found missing.
      * 
@@ -1995,7 +2181,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -2007,6 +2193,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which these entities were read or found missing.
      * 
@@ -2025,6 +2213,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * The time at which these entities were read or found missing.
      * 
@@ -2032,11 +2222,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 7; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which these entities were read or found missing.
      * 
@@ -2047,11 +2239,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * The time at which these entities were read or found missing.
      * 
@@ -2059,21 +2252,24 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 7; */ 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> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2083,12 +2279,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.LookupResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.LookupResponse) private static final com.google.datastore.v1.LookupResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.LookupResponse(); } @@ -2097,16 +2293,16 @@ public static com.google.datastore.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 { - return new LookupResponse(input, extensionRegistry); - } - }; + 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 { + return new LookupResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2121,6 +2317,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.LookupResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java similarity index 82% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java index 4b7111ea0..5d89e1b33 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface LookupResponseOrBuilder extends +public interface LookupResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.LookupResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -16,9 +34,10 @@ public interface LookupResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
-  java.util.List 
-      getFoundList();
+  java.util.List getFoundList();
   /**
+   *
+   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -29,6 +48,8 @@ public interface LookupResponseOrBuilder extends
    */
   com.google.datastore.v1.EntityResult getFound(int index);
   /**
+   *
+   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -39,6 +60,8 @@ public interface LookupResponseOrBuilder extends
    */
   int getFoundCount();
   /**
+   *
+   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -47,9 +70,10 @@ public interface LookupResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
-  java.util.List 
-      getFoundOrBuilderList();
+  java.util.List getFoundOrBuilderList();
   /**
+   *
+   *
    * 
    * Entities found as `ResultType.FULL` entities. The order of results in this
    * field is undefined and has no relation to the order of the keys in the
@@ -58,10 +82,11 @@ public interface LookupResponseOrBuilder extends
    *
    * repeated .google.datastore.v1.EntityResult found = 1;
    */
-  com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
-      int index);
+  com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -70,9 +95,10 @@ com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
    *
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
-  java.util.List 
-      getMissingList();
+  java.util.List getMissingList();
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -83,6 +109,8 @@ com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
    */
   com.google.datastore.v1.EntityResult getMissing(int index);
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -93,6 +121,8 @@ com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
    */
   int getMissingCount();
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -101,9 +131,10 @@ com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
    *
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
-  java.util.List 
-      getMissingOrBuilderList();
+  java.util.List getMissingOrBuilderList();
   /**
+   *
+   *
    * 
    * Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    * in this field is undefined and has no relation to the order of the keys
@@ -112,10 +143,11 @@ com.google.datastore.v1.EntityResultOrBuilder getFoundOrBuilder(
    *
    * repeated .google.datastore.v1.EntityResult missing = 2;
    */
-  com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
-      int index);
+  com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -124,9 +156,10 @@ com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
    *
    * repeated .google.datastore.v1.Key deferred = 3;
    */
-  java.util.List 
-      getDeferredList();
+  java.util.List getDeferredList();
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -137,6 +170,8 @@ com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
    */
   com.google.datastore.v1.Key getDeferred(int index);
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -147,6 +182,8 @@ com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
    */
   int getDeferredCount();
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -155,9 +192,10 @@ com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
    *
    * repeated .google.datastore.v1.Key deferred = 3;
    */
-  java.util.List 
-      getDeferredOrBuilderList();
+  java.util.List getDeferredOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of keys that were not looked up due to resource constraints. The
    * order of results in this field is undefined and has no relation to the
@@ -166,28 +204,35 @@ com.google.datastore.v1.EntityResultOrBuilder getMissingOrBuilder(
    *
    * repeated .google.datastore.v1.Key deferred = 3;
    */
-  com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(
-      int index);
+  com.google.datastore.v1.KeyOrBuilder getDeferredOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The time at which these entities were read or found missing.
    * 
* * .google.protobuf.Timestamp read_time = 7; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * The time at which these entities were read or found missing.
    * 
* * .google.protobuf.Timestamp read_time = 7; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * The time at which these entities were read or found missing.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java index 0786e58f4..aea812247 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * A mutation to apply to an entity.
  * 
* * Protobuf type {@code google.datastore.v1.Mutation} */ -public final class Mutation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Mutation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.Mutation) MutationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Mutation.newBuilder() to construct. private Mutation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Mutation() { - } + + private Mutation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Mutation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Mutation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,88 +68,95 @@ private Mutation( case 0: done = true; break; - case 34: { - com.google.datastore.v1.Entity.Builder subBuilder = null; - if (operationCase_ == 4) { - subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); + case 34: + { + com.google.datastore.v1.Entity.Builder subBuilder = null; + if (operationCase_ == 4) { + subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 4; + break; } - operation_ = - input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); - operation_ = subBuilder.buildPartial(); + case 42: + { + com.google.datastore.v1.Entity.Builder subBuilder = null; + if (operationCase_ == 5) { + subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 5; + break; } - operationCase_ = 4; - break; - } - case 42: { - com.google.datastore.v1.Entity.Builder subBuilder = null; - if (operationCase_ == 5) { - subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); + case 50: + { + com.google.datastore.v1.Entity.Builder subBuilder = null; + if (operationCase_ == 6) { + subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 6; + break; } - operation_ = - input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); - operation_ = subBuilder.buildPartial(); + case 58: + { + com.google.datastore.v1.Key.Builder subBuilder = null; + if (operationCase_ == 7) { + subBuilder = ((com.google.datastore.v1.Key) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Key) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 7; + break; } - operationCase_ = 5; - break; - } - case 50: { - com.google.datastore.v1.Entity.Builder subBuilder = null; - if (operationCase_ == 6) { - subBuilder = ((com.google.datastore.v1.Entity) operation_).toBuilder(); + case 64: + { + conflictDetectionStrategy_ = input.readInt64(); + conflictDetectionStrategyCase_ = 8; + break; } - operation_ = - input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Entity) operation_); - operation_ = subBuilder.buildPartial(); + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (conflictDetectionStrategyCase_ == 11) { + subBuilder = + ((com.google.protobuf.Timestamp) conflictDetectionStrategy_).toBuilder(); + } + conflictDetectionStrategy_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) conflictDetectionStrategy_); + conflictDetectionStrategy_ = subBuilder.buildPartial(); + } + conflictDetectionStrategyCase_ = 11; + break; } - operationCase_ = 6; - break; - } - case 58: { - com.google.datastore.v1.Key.Builder subBuilder = null; - if (operationCase_ == 7) { - subBuilder = ((com.google.datastore.v1.Key) operation_).toBuilder(); - } - operation_ = - input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Key) operation_); - operation_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - operationCase_ = 7; - break; - } - case 64: { - conflictDetectionStrategy_ = input.readInt64(); - conflictDetectionStrategyCase_ = 8; - break; - } - case 90: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (conflictDetectionStrategyCase_ == 11) { - subBuilder = ((com.google.protobuf.Timestamp) conflictDetectionStrategy_).toBuilder(); - } - conflictDetectionStrategy_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) conflictDetectionStrategy_); - conflictDetectionStrategy_ = subBuilder.buildPartial(); - } - conflictDetectionStrategyCase_ = 11; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -141,30 +164,33 @@ private Mutation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_Mutation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_Mutation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Mutation.class, com.google.datastore.v1.Mutation.Builder.class); } private int operationCase_ = 0; private java.lang.Object operation_; + public enum OperationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INSERT(4), UPDATE(5), @@ -172,6 +198,7 @@ public enum OperationCase DELETE(7), OPERATION_NOT_SET(0); private final int value; + private OperationCase(int value) { this.value = value; } @@ -187,34 +214,42 @@ public static OperationCase valueOf(int value) { public static OperationCase forNumber(int value) { switch (value) { - case 4: return INSERT; - case 5: return UPDATE; - case 6: return UPSERT; - case 7: return DELETE; - case 0: return OPERATION_NOT_SET; - default: return null; + case 4: + return INSERT; + case 5: + return UPDATE; + case 6: + return UPSERT; + case 7: + return DELETE; + case 0: + return OPERATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OperationCase - getOperationCase() { - return OperationCase.forNumber( - operationCase_); + public OperationCase getOperationCase() { + return OperationCase.forNumber(operationCase_); } private int conflictDetectionStrategyCase_ = 0; private java.lang.Object conflictDetectionStrategy_; + public enum ConflictDetectionStrategyCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BASE_VERSION(8), UPDATE_TIME(11), CONFLICTDETECTIONSTRATEGY_NOT_SET(0); private final int value; + private ConflictDetectionStrategyCase(int value) { this.value = value; } @@ -230,31 +265,37 @@ public static ConflictDetectionStrategyCase valueOf(int value) { public static ConflictDetectionStrategyCase forNumber(int value) { switch (value) { - case 8: return BASE_VERSION; - case 11: return UPDATE_TIME; - case 0: return CONFLICTDETECTIONSTRATEGY_NOT_SET; - default: return null; + case 8: + return BASE_VERSION; + case 11: + return UPDATE_TIME; + case 0: + return CONFLICTDETECTIONSTRATEGY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConflictDetectionStrategyCase - getConflictDetectionStrategyCase() { - return ConflictDetectionStrategyCase.forNumber( - conflictDetectionStrategyCase_); + public ConflictDetectionStrategyCase getConflictDetectionStrategyCase() { + return ConflictDetectionStrategyCase.forNumber(conflictDetectionStrategyCase_); } public static final int INSERT_FIELD_NUMBER = 4; /** + * + * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity insert = 4; + * * @return Whether the insert field is set. */ @java.lang.Override @@ -262,22 +303,27 @@ public boolean hasInsert() { return operationCase_ == 4; } /** + * + * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity insert = 4; + * * @return The insert. */ @java.lang.Override public com.google.datastore.v1.Entity getInsert() { if (operationCase_ == 4) { - return (com.google.datastore.v1.Entity) operation_; + return (com.google.datastore.v1.Entity) operation_; } return com.google.datastore.v1.Entity.getDefaultInstance(); } /** + * + * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
@@ -288,19 +334,22 @@ public com.google.datastore.v1.Entity getInsert() {
   @java.lang.Override
   public com.google.datastore.v1.EntityOrBuilder getInsertOrBuilder() {
     if (operationCase_ == 4) {
-       return (com.google.datastore.v1.Entity) operation_;
+      return (com.google.datastore.v1.Entity) operation_;
     }
     return com.google.datastore.v1.Entity.getDefaultInstance();
   }
 
   public static final int UPDATE_FIELD_NUMBER = 5;
   /**
+   *
+   *
    * 
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
    * 
* * .google.datastore.v1.Entity update = 5; + * * @return Whether the update field is set. */ @java.lang.Override @@ -308,22 +357,27 @@ public boolean hasUpdate() { return operationCase_ == 5; } /** + * + * *
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
    * 
* * .google.datastore.v1.Entity update = 5; + * * @return The update. */ @java.lang.Override public com.google.datastore.v1.Entity getUpdate() { if (operationCase_ == 5) { - return (com.google.datastore.v1.Entity) operation_; + return (com.google.datastore.v1.Entity) operation_; } return com.google.datastore.v1.Entity.getDefaultInstance(); } /** + * + * *
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
@@ -334,19 +388,22 @@ public com.google.datastore.v1.Entity getUpdate() {
   @java.lang.Override
   public com.google.datastore.v1.EntityOrBuilder getUpdateOrBuilder() {
     if (operationCase_ == 5) {
-       return (com.google.datastore.v1.Entity) operation_;
+      return (com.google.datastore.v1.Entity) operation_;
     }
     return com.google.datastore.v1.Entity.getDefaultInstance();
   }
 
   public static final int UPSERT_FIELD_NUMBER = 6;
   /**
+   *
+   *
    * 
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity upsert = 6; + * * @return Whether the upsert field is set. */ @java.lang.Override @@ -354,22 +411,27 @@ public boolean hasUpsert() { return operationCase_ == 6; } /** + * + * *
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity upsert = 6; + * * @return The upsert. */ @java.lang.Override public com.google.datastore.v1.Entity getUpsert() { if (operationCase_ == 6) { - return (com.google.datastore.v1.Entity) operation_; + return (com.google.datastore.v1.Entity) operation_; } return com.google.datastore.v1.Entity.getDefaultInstance(); } /** + * + * *
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
@@ -380,19 +442,22 @@ public com.google.datastore.v1.Entity getUpsert() {
   @java.lang.Override
   public com.google.datastore.v1.EntityOrBuilder getUpsertOrBuilder() {
     if (operationCase_ == 6) {
-       return (com.google.datastore.v1.Entity) operation_;
+      return (com.google.datastore.v1.Entity) operation_;
     }
     return com.google.datastore.v1.Entity.getDefaultInstance();
   }
 
   public static final int DELETE_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
    * 
* * .google.datastore.v1.Key delete = 7; + * * @return Whether the delete field is set. */ @java.lang.Override @@ -400,22 +465,27 @@ public boolean hasDelete() { return operationCase_ == 7; } /** + * + * *
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
    * 
* * .google.datastore.v1.Key delete = 7; + * * @return The delete. */ @java.lang.Override public com.google.datastore.v1.Key getDelete() { if (operationCase_ == 7) { - return (com.google.datastore.v1.Key) operation_; + return (com.google.datastore.v1.Key) operation_; } return com.google.datastore.v1.Key.getDefaultInstance(); } /** + * + * *
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
@@ -426,13 +496,15 @@ public com.google.datastore.v1.Key getDelete() {
   @java.lang.Override
   public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
     if (operationCase_ == 7) {
-       return (com.google.datastore.v1.Key) operation_;
+      return (com.google.datastore.v1.Key) operation_;
     }
     return com.google.datastore.v1.Key.getDefaultInstance();
   }
 
   public static final int BASE_VERSION_FIELD_NUMBER = 8;
   /**
+   *
+   *
    * 
    * The version of the entity that this mutation is being applied
    * to. If this does not match the current version on the server, the
@@ -440,6 +512,7 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
    * 
* * int64 base_version = 8; + * * @return Whether the baseVersion field is set. */ @java.lang.Override @@ -447,6 +520,8 @@ public boolean hasBaseVersion() { return conflictDetectionStrategyCase_ == 8; } /** + * + * *
    * The version of the entity that this mutation is being applied
    * to. If this does not match the current version on the server, the
@@ -454,6 +529,7 @@ public boolean hasBaseVersion() {
    * 
* * int64 base_version = 8; + * * @return The baseVersion. */ @java.lang.Override @@ -466,6 +542,8 @@ public long getBaseVersion() { public static final int UPDATE_TIME_FIELD_NUMBER = 11; /** + * + * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -473,6 +551,7 @@ public long getBaseVersion() {
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -480,6 +559,8 @@ public boolean hasUpdateTime() { return conflictDetectionStrategyCase_ == 11; } /** + * + * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -487,16 +568,19 @@ public boolean hasUpdateTime() {
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { if (conflictDetectionStrategyCase_ == 11) { - return (com.google.protobuf.Timestamp) conflictDetectionStrategy_; + return (com.google.protobuf.Timestamp) conflictDetectionStrategy_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -508,12 +592,13 @@ public com.google.protobuf.Timestamp getUpdateTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     if (conflictDetectionStrategyCase_ == 11) {
-       return (com.google.protobuf.Timestamp) conflictDetectionStrategy_;
+      return (com.google.protobuf.Timestamp) conflictDetectionStrategy_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -525,8 +610,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (operationCase_ == 4) {
       output.writeMessage(4, (com.google.datastore.v1.Entity) operation_);
     }
@@ -540,8 +624,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       output.writeMessage(7, (com.google.datastore.v1.Key) operation_);
     }
     if (conflictDetectionStrategyCase_ == 8) {
-      output.writeInt64(
-          8, (long)((java.lang.Long) conflictDetectionStrategy_));
+      output.writeInt64(8, (long) ((java.lang.Long) conflictDetectionStrategy_));
     }
     if (conflictDetectionStrategyCase_ == 11) {
       output.writeMessage(11, (com.google.protobuf.Timestamp) conflictDetectionStrategy_);
@@ -556,29 +639,34 @@ public int getSerializedSize() {
 
     size = 0;
     if (operationCase_ == 4) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, (com.google.datastore.v1.Entity) operation_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              4, (com.google.datastore.v1.Entity) operation_);
     }
     if (operationCase_ == 5) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, (com.google.datastore.v1.Entity) operation_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, (com.google.datastore.v1.Entity) operation_);
     }
     if (operationCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, (com.google.datastore.v1.Entity) operation_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, (com.google.datastore.v1.Entity) operation_);
     }
     if (operationCase_ == 7) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, (com.google.datastore.v1.Key) operation_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              7, (com.google.datastore.v1.Key) operation_);
     }
     if (conflictDetectionStrategyCase_ == 8) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(
-            8, (long)((java.lang.Long) conflictDetectionStrategy_));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeInt64Size(
+              8, (long) ((java.lang.Long) conflictDetectionStrategy_));
     }
     if (conflictDetectionStrategyCase_ == 11) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, (com.google.protobuf.Timestamp) conflictDetectionStrategy_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              11, (com.google.protobuf.Timestamp) conflictDetectionStrategy_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -588,7 +676,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.Mutation)) {
       return super.equals(obj);
@@ -598,33 +686,28 @@ public boolean equals(final java.lang.Object obj) {
     if (!getOperationCase().equals(other.getOperationCase())) return false;
     switch (operationCase_) {
       case 4:
-        if (!getInsert()
-            .equals(other.getInsert())) return false;
+        if (!getInsert().equals(other.getInsert())) return false;
         break;
       case 5:
-        if (!getUpdate()
-            .equals(other.getUpdate())) return false;
+        if (!getUpdate().equals(other.getUpdate())) return false;
         break;
       case 6:
-        if (!getUpsert()
-            .equals(other.getUpsert())) return false;
+        if (!getUpsert().equals(other.getUpsert())) return false;
         break;
       case 7:
-        if (!getDelete()
-            .equals(other.getDelete())) return false;
+        if (!getDelete().equals(other.getDelete())) return false;
         break;
       case 0:
       default:
     }
-    if (!getConflictDetectionStrategyCase().equals(other.getConflictDetectionStrategyCase())) return false;
+    if (!getConflictDetectionStrategyCase().equals(other.getConflictDetectionStrategyCase()))
+      return false;
     switch (conflictDetectionStrategyCase_) {
       case 8:
-        if (getBaseVersion()
-            != other.getBaseVersion()) return false;
+        if (getBaseVersion() != other.getBaseVersion()) return false;
         break;
       case 11:
-        if (!getUpdateTime()
-            .equals(other.getUpdateTime())) return false;
+        if (!getUpdateTime().equals(other.getUpdateTime())) return false;
         break;
       case 0:
       default:
@@ -663,8 +746,7 @@ public int hashCode() {
     switch (conflictDetectionStrategyCase_) {
       case 8:
         hash = (37 * hash) + BASE_VERSION_FIELD_NUMBER;
-        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-            getBaseVersion());
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBaseVersion());
         break;
       case 11:
         hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
@@ -678,118 +760,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.Mutation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.Mutation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Mutation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.v1.Mutation parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.datastore.v1.Mutation parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Mutation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Mutation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Mutation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Mutation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Mutation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Mutation parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Mutation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Mutation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Mutation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.Mutation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A mutation to apply to an entity.
    * 
* * Protobuf type {@code google.datastore.v1.Mutation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.Mutation) com.google.datastore.v1.MutationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_Mutation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_Mutation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.Mutation.class, com.google.datastore.v1.Mutation.Builder.class); + com.google.datastore.v1.Mutation.class, + com.google.datastore.v1.Mutation.Builder.class); } // Construct using com.google.datastore.v1.Mutation.newBuilder() @@ -797,16 +887,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -818,9 +907,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_Mutation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_Mutation_descriptor; } @java.lang.Override @@ -888,38 +977,39 @@ public com.google.datastore.v1.Mutation 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.datastore.v1.Mutation) { - return mergeFrom((com.google.datastore.v1.Mutation)other); + return mergeFrom((com.google.datastore.v1.Mutation) other); } else { super.mergeFrom(other); return this; @@ -929,38 +1019,46 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.datastore.v1.Mutation other) { if (other == com.google.datastore.v1.Mutation.getDefaultInstance()) return this; switch (other.getOperationCase()) { - case INSERT: { - mergeInsert(other.getInsert()); - break; - } - case UPDATE: { - mergeUpdate(other.getUpdate()); - break; - } - case UPSERT: { - mergeUpsert(other.getUpsert()); - break; - } - case DELETE: { - mergeDelete(other.getDelete()); - break; - } - case OPERATION_NOT_SET: { - break; - } + case INSERT: + { + mergeInsert(other.getInsert()); + break; + } + case UPDATE: + { + mergeUpdate(other.getUpdate()); + break; + } + case UPSERT: + { + mergeUpsert(other.getUpsert()); + break; + } + case DELETE: + { + mergeDelete(other.getDelete()); + break; + } + case OPERATION_NOT_SET: + { + break; + } } switch (other.getConflictDetectionStrategyCase()) { - case BASE_VERSION: { - setBaseVersion(other.getBaseVersion()); - break; - } - case UPDATE_TIME: { - mergeUpdateTime(other.getUpdateTime()); - break; - } - case CONFLICTDETECTIONSTRATEGY_NOT_SET: { - break; - } + case BASE_VERSION: + { + setBaseVersion(other.getBaseVersion()); + break; + } + case UPDATE_TIME: + { + mergeUpdateTime(other.getUpdateTime()); + break; + } + case CONFLICTDETECTIONSTRATEGY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -990,12 +1088,12 @@ public Builder mergeFrom( } return this; } + private int operationCase_ = 0; private java.lang.Object operation_; - public OperationCase - getOperationCase() { - return OperationCase.forNumber( - operationCase_); + + public OperationCase getOperationCase() { + return OperationCase.forNumber(operationCase_); } public Builder clearOperation() { @@ -1007,10 +1105,9 @@ public Builder clearOperation() { private int conflictDetectionStrategyCase_ = 0; private java.lang.Object conflictDetectionStrategy_; - public ConflictDetectionStrategyCase - getConflictDetectionStrategyCase() { - return ConflictDetectionStrategyCase.forNumber( - conflictDetectionStrategyCase_); + + public ConflictDetectionStrategyCase getConflictDetectionStrategyCase() { + return ConflictDetectionStrategyCase.forNumber(conflictDetectionStrategyCase_); } public Builder clearConflictDetectionStrategy() { @@ -1020,16 +1117,21 @@ public Builder clearConflictDetectionStrategy() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> insertBuilder_; + com.google.datastore.v1.Entity, + com.google.datastore.v1.Entity.Builder, + com.google.datastore.v1.EntityOrBuilder> + insertBuilder_; /** + * + * *
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
      * 
* * .google.datastore.v1.Entity insert = 4; + * * @return Whether the insert field is set. */ @java.lang.Override @@ -1037,12 +1139,15 @@ public boolean hasInsert() { return operationCase_ == 4; } /** + * + * *
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
      * 
* * .google.datastore.v1.Entity insert = 4; + * * @return The insert. */ @java.lang.Override @@ -1060,6 +1165,8 @@ public com.google.datastore.v1.Entity getInsert() { } } /** + * + * *
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1081,6 +1188,8 @@ public Builder setInsert(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1088,8 +1197,7 @@ public Builder setInsert(com.google.datastore.v1.Entity value) {
      *
      * .google.datastore.v1.Entity insert = 4;
      */
-    public Builder setInsert(
-        com.google.datastore.v1.Entity.Builder builderForValue) {
+    public Builder setInsert(com.google.datastore.v1.Entity.Builder builderForValue) {
       if (insertBuilder_ == null) {
         operation_ = builderForValue.build();
         onChanged();
@@ -1100,6 +1208,8 @@ public Builder setInsert(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1109,10 +1219,12 @@ public Builder setInsert(
      */
     public Builder mergeInsert(com.google.datastore.v1.Entity value) {
       if (insertBuilder_ == null) {
-        if (operationCase_ == 4 &&
-            operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
-          operation_ = com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
-              .mergeFrom(value).buildPartial();
+        if (operationCase_ == 4
+            && operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
+          operation_ =
+              com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           operation_ = value;
         }
@@ -1128,6 +1240,8 @@ public Builder mergeInsert(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1152,6 +1266,8 @@ public Builder clearInsert() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1163,6 +1279,8 @@ public com.google.datastore.v1.Entity.Builder getInsertBuilder() {
       return getInsertFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1182,6 +1300,8 @@ public com.google.datastore.v1.EntityOrBuilder getInsertOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The entity to insert. The entity must not already exist.
      * The entity key's final path element may be incomplete.
@@ -1190,33 +1310,43 @@ public com.google.datastore.v1.EntityOrBuilder getInsertOrBuilder() {
      * .google.datastore.v1.Entity insert = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> 
+            com.google.datastore.v1.Entity,
+            com.google.datastore.v1.Entity.Builder,
+            com.google.datastore.v1.EntityOrBuilder>
         getInsertFieldBuilder() {
       if (insertBuilder_ == null) {
         if (!(operationCase_ == 4)) {
           operation_ = com.google.datastore.v1.Entity.getDefaultInstance();
         }
-        insertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>(
-                (com.google.datastore.v1.Entity) operation_,
-                getParentForChildren(),
-                isClean());
+        insertBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.Entity,
+                com.google.datastore.v1.Entity.Builder,
+                com.google.datastore.v1.EntityOrBuilder>(
+                (com.google.datastore.v1.Entity) operation_, getParentForChildren(), isClean());
         operation_ = null;
       }
       operationCase_ = 4;
-      onChanged();;
+      onChanged();
+      ;
       return insertBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> updateBuilder_;
+            com.google.datastore.v1.Entity,
+            com.google.datastore.v1.Entity.Builder,
+            com.google.datastore.v1.EntityOrBuilder>
+        updateBuilder_;
     /**
+     *
+     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
      * 
* * .google.datastore.v1.Entity update = 5; + * * @return Whether the update field is set. */ @java.lang.Override @@ -1224,12 +1354,15 @@ public boolean hasUpdate() { return operationCase_ == 5; } /** + * + * *
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
      * 
* * .google.datastore.v1.Entity update = 5; + * * @return The update. */ @java.lang.Override @@ -1247,6 +1380,8 @@ public com.google.datastore.v1.Entity getUpdate() { } } /** + * + * *
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1268,6 +1403,8 @@ public Builder setUpdate(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1275,8 +1412,7 @@ public Builder setUpdate(com.google.datastore.v1.Entity value) {
      *
      * .google.datastore.v1.Entity update = 5;
      */
-    public Builder setUpdate(
-        com.google.datastore.v1.Entity.Builder builderForValue) {
+    public Builder setUpdate(com.google.datastore.v1.Entity.Builder builderForValue) {
       if (updateBuilder_ == null) {
         operation_ = builderForValue.build();
         onChanged();
@@ -1287,6 +1423,8 @@ public Builder setUpdate(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1296,10 +1434,12 @@ public Builder setUpdate(
      */
     public Builder mergeUpdate(com.google.datastore.v1.Entity value) {
       if (updateBuilder_ == null) {
-        if (operationCase_ == 5 &&
-            operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
-          operation_ = com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
-              .mergeFrom(value).buildPartial();
+        if (operationCase_ == 5
+            && operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
+          operation_ =
+              com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           operation_ = value;
         }
@@ -1315,6 +1455,8 @@ public Builder mergeUpdate(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1339,6 +1481,8 @@ public Builder clearUpdate() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1350,6 +1494,8 @@ public com.google.datastore.v1.Entity.Builder getUpdateBuilder() {
       return getUpdateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1369,6 +1515,8 @@ public com.google.datastore.v1.EntityOrBuilder getUpdateOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The entity to update. The entity must already exist.
      * Must have a complete key path.
@@ -1377,33 +1525,43 @@ public com.google.datastore.v1.EntityOrBuilder getUpdateOrBuilder() {
      * .google.datastore.v1.Entity update = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> 
+            com.google.datastore.v1.Entity,
+            com.google.datastore.v1.Entity.Builder,
+            com.google.datastore.v1.EntityOrBuilder>
         getUpdateFieldBuilder() {
       if (updateBuilder_ == null) {
         if (!(operationCase_ == 5)) {
           operation_ = com.google.datastore.v1.Entity.getDefaultInstance();
         }
-        updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>(
-                (com.google.datastore.v1.Entity) operation_,
-                getParentForChildren(),
-                isClean());
+        updateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.Entity,
+                com.google.datastore.v1.Entity.Builder,
+                com.google.datastore.v1.EntityOrBuilder>(
+                (com.google.datastore.v1.Entity) operation_, getParentForChildren(), isClean());
         operation_ = null;
       }
       operationCase_ = 5;
-      onChanged();;
+      onChanged();
+      ;
       return updateBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> upsertBuilder_;
+            com.google.datastore.v1.Entity,
+            com.google.datastore.v1.Entity.Builder,
+            com.google.datastore.v1.EntityOrBuilder>
+        upsertBuilder_;
     /**
+     *
+     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
      * 
* * .google.datastore.v1.Entity upsert = 6; + * * @return Whether the upsert field is set. */ @java.lang.Override @@ -1411,12 +1569,15 @@ public boolean hasUpsert() { return operationCase_ == 6; } /** + * + * *
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
      * 
* * .google.datastore.v1.Entity upsert = 6; + * * @return The upsert. */ @java.lang.Override @@ -1434,6 +1595,8 @@ public com.google.datastore.v1.Entity getUpsert() { } } /** + * + * *
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1455,6 +1618,8 @@ public Builder setUpsert(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1462,8 +1627,7 @@ public Builder setUpsert(com.google.datastore.v1.Entity value) {
      *
      * .google.datastore.v1.Entity upsert = 6;
      */
-    public Builder setUpsert(
-        com.google.datastore.v1.Entity.Builder builderForValue) {
+    public Builder setUpsert(com.google.datastore.v1.Entity.Builder builderForValue) {
       if (upsertBuilder_ == null) {
         operation_ = builderForValue.build();
         onChanged();
@@ -1474,6 +1638,8 @@ public Builder setUpsert(
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1483,10 +1649,12 @@ public Builder setUpsert(
      */
     public Builder mergeUpsert(com.google.datastore.v1.Entity value) {
       if (upsertBuilder_ == null) {
-        if (operationCase_ == 6 &&
-            operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
-          operation_ = com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
-              .mergeFrom(value).buildPartial();
+        if (operationCase_ == 6
+            && operation_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
+          operation_ =
+              com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) operation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           operation_ = value;
         }
@@ -1502,6 +1670,8 @@ public Builder mergeUpsert(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1526,6 +1696,8 @@ public Builder clearUpsert() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1537,6 +1709,8 @@ public com.google.datastore.v1.Entity.Builder getUpsertBuilder() {
       return getUpsertFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1556,6 +1730,8 @@ public com.google.datastore.v1.EntityOrBuilder getUpsertOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The entity to upsert. The entity may or may not already exist.
      * The entity key's final path element may be incomplete.
@@ -1564,33 +1740,43 @@ public com.google.datastore.v1.EntityOrBuilder getUpsertOrBuilder() {
      * .google.datastore.v1.Entity upsert = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> 
+            com.google.datastore.v1.Entity,
+            com.google.datastore.v1.Entity.Builder,
+            com.google.datastore.v1.EntityOrBuilder>
         getUpsertFieldBuilder() {
       if (upsertBuilder_ == null) {
         if (!(operationCase_ == 6)) {
           operation_ = com.google.datastore.v1.Entity.getDefaultInstance();
         }
-        upsertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>(
-                (com.google.datastore.v1.Entity) operation_,
-                getParentForChildren(),
-                isClean());
+        upsertBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.Entity,
+                com.google.datastore.v1.Entity.Builder,
+                com.google.datastore.v1.EntityOrBuilder>(
+                (com.google.datastore.v1.Entity) operation_, getParentForChildren(), isClean());
         operation_ = null;
       }
       operationCase_ = 6;
-      onChanged();;
+      onChanged();
+      ;
       return upsertBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> deleteBuilder_;
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
+        deleteBuilder_;
     /**
+     *
+     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
      * 
* * .google.datastore.v1.Key delete = 7; + * * @return Whether the delete field is set. */ @java.lang.Override @@ -1598,12 +1784,15 @@ public boolean hasDelete() { return operationCase_ == 7; } /** + * + * *
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
      * 
* * .google.datastore.v1.Key delete = 7; + * * @return The delete. */ @java.lang.Override @@ -1621,6 +1810,8 @@ public com.google.datastore.v1.Key getDelete() { } } /** + * + * *
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1642,6 +1833,8 @@ public Builder setDelete(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1649,8 +1842,7 @@ public Builder setDelete(com.google.datastore.v1.Key value) {
      *
      * .google.datastore.v1.Key delete = 7;
      */
-    public Builder setDelete(
-        com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setDelete(com.google.datastore.v1.Key.Builder builderForValue) {
       if (deleteBuilder_ == null) {
         operation_ = builderForValue.build();
         onChanged();
@@ -1661,6 +1853,8 @@ public Builder setDelete(
       return this;
     }
     /**
+     *
+     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1670,10 +1864,11 @@ public Builder setDelete(
      */
     public Builder mergeDelete(com.google.datastore.v1.Key value) {
       if (deleteBuilder_ == null) {
-        if (operationCase_ == 7 &&
-            operation_ != com.google.datastore.v1.Key.getDefaultInstance()) {
-          operation_ = com.google.datastore.v1.Key.newBuilder((com.google.datastore.v1.Key) operation_)
-              .mergeFrom(value).buildPartial();
+        if (operationCase_ == 7 && operation_ != com.google.datastore.v1.Key.getDefaultInstance()) {
+          operation_ =
+              com.google.datastore.v1.Key.newBuilder((com.google.datastore.v1.Key) operation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           operation_ = value;
         }
@@ -1689,6 +1884,8 @@ public Builder mergeDelete(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1713,6 +1910,8 @@ public Builder clearDelete() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1724,6 +1923,8 @@ public com.google.datastore.v1.Key.Builder getDeleteBuilder() {
       return getDeleteFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1743,6 +1944,8 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The key of the entity to delete. The entity may or may not already exist.
      * Must have a complete key path and must not be reserved/read-only.
@@ -1751,25 +1954,31 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
      * .google.datastore.v1.Key delete = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
         getDeleteFieldBuilder() {
       if (deleteBuilder_ == null) {
         if (!(operationCase_ == 7)) {
           operation_ = com.google.datastore.v1.Key.getDefaultInstance();
         }
-        deleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
-                (com.google.datastore.v1.Key) operation_,
-                getParentForChildren(),
-                isClean());
+        deleteBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.Key,
+                com.google.datastore.v1.Key.Builder,
+                com.google.datastore.v1.KeyOrBuilder>(
+                (com.google.datastore.v1.Key) operation_, getParentForChildren(), isClean());
         operation_ = null;
       }
       operationCase_ = 7;
-      onChanged();;
+      onChanged();
+      ;
       return deleteBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The version of the entity that this mutation is being applied
      * to. If this does not match the current version on the server, the
@@ -1777,12 +1986,15 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() {
      * 
* * int64 base_version = 8; + * * @return Whether the baseVersion field is set. */ public boolean hasBaseVersion() { return conflictDetectionStrategyCase_ == 8; } /** + * + * *
      * The version of the entity that this mutation is being applied
      * to. If this does not match the current version on the server, the
@@ -1790,6 +2002,7 @@ public boolean hasBaseVersion() {
      * 
* * int64 base_version = 8; + * * @return The baseVersion. */ public long getBaseVersion() { @@ -1799,6 +2012,8 @@ public long getBaseVersion() { return 0L; } /** + * + * *
      * The version of the entity that this mutation is being applied
      * to. If this does not match the current version on the server, the
@@ -1806,6 +2021,7 @@ public long getBaseVersion() {
      * 
* * int64 base_version = 8; + * * @param value The baseVersion to set. * @return This builder for chaining. */ @@ -1816,6 +2032,8 @@ public Builder setBaseVersion(long value) { return this; } /** + * + * *
      * The version of the entity that this mutation is being applied
      * to. If this does not match the current version on the server, the
@@ -1823,6 +2041,7 @@ public Builder setBaseVersion(long value) {
      * 
* * int64 base_version = 8; + * * @return This builder for chaining. */ public Builder clearBaseVersion() { @@ -1835,8 +2054,13 @@ public Builder clearBaseVersion() { } 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 update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -1844,6 +2068,7 @@ public Builder clearBaseVersion() {
      * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1851,6 +2076,8 @@ public boolean hasUpdateTime() { return conflictDetectionStrategyCase_ == 11; } /** + * + * *
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -1858,6 +2085,7 @@ public boolean hasUpdateTime() {
      * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ @java.lang.Override @@ -1875,6 +2103,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { } } /** + * + * *
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -1897,6 +2127,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -1905,8 +2137,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 11;
      */
-    public Builder setUpdateTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         conflictDetectionStrategy_ = builderForValue.build();
         onChanged();
@@ -1917,6 +2148,8 @@ public Builder setUpdateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -1927,10 +2160,13 @@ public Builder setUpdateTime(
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (conflictDetectionStrategyCase_ == 11 &&
-            conflictDetectionStrategy_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          conflictDetectionStrategy_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) conflictDetectionStrategy_)
-              .mergeFrom(value).buildPartial();
+        if (conflictDetectionStrategyCase_ == 11
+            && conflictDetectionStrategy_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          conflictDetectionStrategy_ =
+              com.google.protobuf.Timestamp.newBuilder(
+                      (com.google.protobuf.Timestamp) conflictDetectionStrategy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           conflictDetectionStrategy_ = value;
         }
@@ -1946,6 +2182,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -1971,6 +2209,8 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -1983,6 +2223,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2003,6 +2245,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The update time of the entity that this mutation is being applied
      * to. If this does not match the current update time on the server, the
@@ -2012,26 +2256,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 11;
      */
     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) {
         if (!(conflictDetectionStrategyCase_ == 11)) {
           conflictDetectionStrategy_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+        updateTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
                 (com.google.protobuf.Timestamp) conflictDetectionStrategy_,
                 getParentForChildren(),
                 isClean());
         conflictDetectionStrategy_ = null;
       }
       conflictDetectionStrategyCase_ = 11;
-      onChanged();;
+      onChanged();
+      ;
       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);
     }
 
@@ -2041,12 +2291,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.Mutation)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.Mutation)
   private static final com.google.datastore.v1.Mutation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.Mutation();
   }
@@ -2055,16 +2305,16 @@ public static com.google.datastore.v1.Mutation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Mutation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Mutation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Mutation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Mutation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2079,6 +2329,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.Mutation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
index 7ae161025..3257d3d22 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.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/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
-public interface MutationOrBuilder extends
+public interface MutationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.Mutation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity insert = 4; + * * @return Whether the insert field is set. */ boolean hasInsert(); /** + * + * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity insert = 4; + * * @return The insert. */ com.google.datastore.v1.Entity getInsert(); /** + * + * *
    * The entity to insert. The entity must not already exist.
    * The entity key's final path element may be incomplete.
@@ -38,26 +62,34 @@ public interface MutationOrBuilder extends
   com.google.datastore.v1.EntityOrBuilder getInsertOrBuilder();
 
   /**
+   *
+   *
    * 
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
    * 
* * .google.datastore.v1.Entity update = 5; + * * @return Whether the update field is set. */ boolean hasUpdate(); /** + * + * *
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
    * 
* * .google.datastore.v1.Entity update = 5; + * * @return The update. */ com.google.datastore.v1.Entity getUpdate(); /** + * + * *
    * The entity to update. The entity must already exist.
    * Must have a complete key path.
@@ -68,26 +100,34 @@ public interface MutationOrBuilder extends
   com.google.datastore.v1.EntityOrBuilder getUpdateOrBuilder();
 
   /**
+   *
+   *
    * 
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity upsert = 6; + * * @return Whether the upsert field is set. */ boolean hasUpsert(); /** + * + * *
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
    * 
* * .google.datastore.v1.Entity upsert = 6; + * * @return The upsert. */ com.google.datastore.v1.Entity getUpsert(); /** + * + * *
    * The entity to upsert. The entity may or may not already exist.
    * The entity key's final path element may be incomplete.
@@ -98,26 +138,34 @@ public interface MutationOrBuilder extends
   com.google.datastore.v1.EntityOrBuilder getUpsertOrBuilder();
 
   /**
+   *
+   *
    * 
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
    * 
* * .google.datastore.v1.Key delete = 7; + * * @return Whether the delete field is set. */ boolean hasDelete(); /** + * + * *
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
    * 
* * .google.datastore.v1.Key delete = 7; + * * @return The delete. */ com.google.datastore.v1.Key getDelete(); /** + * + * *
    * The key of the entity to delete. The entity may or may not already exist.
    * Must have a complete key path and must not be reserved/read-only.
@@ -128,6 +176,8 @@ public interface MutationOrBuilder extends
   com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder();
 
   /**
+   *
+   *
    * 
    * The version of the entity that this mutation is being applied
    * to. If this does not match the current version on the server, the
@@ -135,10 +185,13 @@ public interface MutationOrBuilder extends
    * 
* * int64 base_version = 8; + * * @return Whether the baseVersion field is set. */ boolean hasBaseVersion(); /** + * + * *
    * The version of the entity that this mutation is being applied
    * to. If this does not match the current version on the server, the
@@ -146,11 +199,14 @@ public interface MutationOrBuilder extends
    * 
* * int64 base_version = 8; + * * @return The baseVersion. */ long getBaseVersion(); /** + * + * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -158,10 +214,13 @@ public interface MutationOrBuilder extends
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -169,10 +228,13 @@ public interface MutationOrBuilder extends
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The update time of the entity that this mutation is being applied
    * to. If this does not match the current update time on the server, the
@@ -185,5 +247,6 @@ public interface MutationOrBuilder extends
 
   public com.google.datastore.v1.Mutation.OperationCase getOperationCase();
 
-  public com.google.datastore.v1.Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase();
+  public com.google.datastore.v1.Mutation.ConflictDetectionStrategyCase
+      getConflictDetectionStrategyCase();
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
index 2fe6091ea..3a36fee6b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * The result of applying a mutation.
  * 
* * Protobuf type {@code google.datastore.v1.MutationResult} */ -public final class MutationResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MutationResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.MutationResult) MutationResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MutationResult.newBuilder() to construct. private MutationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MutationResult() { - } + + private MutationResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MutationResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MutationResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,49 +68,52 @@ private MutationResult( case 0: done = true; break; - case 26: { - com.google.datastore.v1.Key.Builder subBuilder = null; - if (key_ != null) { - subBuilder = key_.toBuilder(); - } - key_ = input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(key_); - key_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - version_ = input.readInt64(); - break; - } - case 40: { + case 26: + { + com.google.datastore.v1.Key.Builder subBuilder = null; + if (key_ != null) { + subBuilder = key_.toBuilder(); + } + key_ = input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(key_); + key_ = subBuilder.buildPartial(); + } - conflictDetected_ = input.readBool(); - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + break; + } + case 32: + { + version_ = input.readInt64(); + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 40: + { + conflictDetected_ = input.readBool(); + break; } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,35 +121,40 @@ private MutationResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_MutationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_MutationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.MutationResult.class, com.google.datastore.v1.MutationResult.Builder.class); + com.google.datastore.v1.MutationResult.class, + com.google.datastore.v1.MutationResult.Builder.class); } public static final int KEY_FIELD_NUMBER = 3; private com.google.datastore.v1.Key key_; /** + * + * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
    * 
* * .google.datastore.v1.Key key = 3; + * * @return Whether the key field is set. */ @java.lang.Override @@ -138,12 +162,15 @@ public boolean hasKey() { return key_ != null; } /** + * + * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
    * 
* * .google.datastore.v1.Key key = 3; + * * @return The key. */ @java.lang.Override @@ -151,6 +178,8 @@ public com.google.datastore.v1.Key getKey() { return key_ == null ? com.google.datastore.v1.Key.getDefaultInstance() : key_; } /** + * + * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
@@ -166,6 +195,8 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
   public static final int VERSION_FIELD_NUMBER = 4;
   private long version_;
   /**
+   *
+   *
    * 
    * The version of the entity on the server after processing the mutation. If
    * the mutation doesn't change anything on the server, then the version will
@@ -175,6 +206,7 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
    * 
* * int64 version = 4; + * * @return The version. */ @java.lang.Override @@ -185,6 +217,8 @@ public long getVersion() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -193,6 +227,7 @@ public long getVersion() {
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -200,6 +235,8 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -208,6 +245,7 @@ public boolean hasUpdateTime() {
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ @java.lang.Override @@ -215,6 +253,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -232,12 +272,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int CONFLICT_DETECTED_FIELD_NUMBER = 5;
   private boolean conflictDetected_;
   /**
+   *
+   *
    * 
    * Whether a conflict was detected for this mutation. Always false when a
    * conflict detection strategy field is not set in the mutation.
    * 
* * bool conflict_detected = 5; + * * @return The conflictDetected. */ @java.lang.Override @@ -246,6 +289,7 @@ public boolean getConflictDetected() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,8 +301,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 (key_ != null) { output.writeMessage(3, getKey()); } @@ -281,20 +324,16 @@ public int getSerializedSize() { size = 0; if (key_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getKey()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKey()); } if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, version_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, version_); } if (conflictDetected_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, conflictDetected_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, conflictDetected_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -304,7 +343,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.MutationResult)) { return super.equals(obj); @@ -313,18 +352,14 @@ public boolean equals(final java.lang.Object obj) { if (hasKey() != other.hasKey()) return false; if (hasKey()) { - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; } - if (getVersion() - != other.getVersion()) return false; + if (getVersion() != other.getVersion()) 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 (getConflictDetected() - != other.getConflictDetected()) return false; + if (getConflictDetected() != other.getConflictDetected()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,132 +376,139 @@ public int hashCode() { hash = (53 * hash) + getKey().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + CONFLICT_DETECTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getConflictDetected()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConflictDetected()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.datastore.v1.MutationResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.MutationResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.MutationResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.MutationResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.MutationResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.MutationResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.MutationResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.MutationResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.MutationResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.MutationResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.MutationResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.MutationResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.MutationResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.MutationResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 result of applying a mutation.
    * 
* * Protobuf type {@code google.datastore.v1.MutationResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.MutationResult) com.google.datastore.v1.MutationResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_MutationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_MutationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.MutationResult.class, com.google.datastore.v1.MutationResult.Builder.class); + com.google.datastore.v1.MutationResult.class, + com.google.datastore.v1.MutationResult.Builder.class); } // Construct using com.google.datastore.v1.MutationResult.newBuilder() @@ -474,16 +516,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_MutationResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_MutationResult_descriptor; } @java.lang.Override @@ -528,7 +569,8 @@ public com.google.datastore.v1.MutationResult build() { @java.lang.Override public com.google.datastore.v1.MutationResult buildPartial() { - com.google.datastore.v1.MutationResult result = new com.google.datastore.v1.MutationResult(this); + com.google.datastore.v1.MutationResult result = + new com.google.datastore.v1.MutationResult(this); if (keyBuilder_ == null) { result.key_ = key_; } else { @@ -549,38 +591,39 @@ public com.google.datastore.v1.MutationResult 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.datastore.v1.MutationResult) { - return mergeFrom((com.google.datastore.v1.MutationResult)other); + return mergeFrom((com.google.datastore.v1.MutationResult) other); } else { super.mergeFrom(other); return this; @@ -632,26 +675,35 @@ public Builder mergeFrom( private com.google.datastore.v1.Key key_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keyBuilder_; + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> + keyBuilder_; /** + * + * *
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
      * 
* * .google.datastore.v1.Key key = 3; + * * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** + * + * *
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
      * 
* * .google.datastore.v1.Key key = 3; + * * @return The key. */ public com.google.datastore.v1.Key getKey() { @@ -662,6 +714,8 @@ public com.google.datastore.v1.Key getKey() { } } /** + * + * *
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -683,6 +737,8 @@ public Builder setKey(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -690,8 +746,7 @@ public Builder setKey(com.google.datastore.v1.Key value) {
      *
      * .google.datastore.v1.Key key = 3;
      */
-    public Builder setKey(
-        com.google.datastore.v1.Key.Builder builderForValue) {
+    public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) {
       if (keyBuilder_ == null) {
         key_ = builderForValue.build();
         onChanged();
@@ -702,6 +757,8 @@ public Builder setKey(
       return this;
     }
     /**
+     *
+     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -712,8 +769,7 @@ public Builder setKey(
     public Builder mergeKey(com.google.datastore.v1.Key value) {
       if (keyBuilder_ == null) {
         if (key_ != null) {
-          key_ =
-            com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial();
+          key_ = com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial();
         } else {
           key_ = value;
         }
@@ -725,6 +781,8 @@ public Builder mergeKey(com.google.datastore.v1.Key value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -744,6 +802,8 @@ public Builder clearKey() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -752,11 +812,13 @@ public Builder clearKey() {
      * .google.datastore.v1.Key key = 3;
      */
     public com.google.datastore.v1.Key.Builder getKeyBuilder() {
-      
+
       onChanged();
       return getKeyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -768,11 +830,12 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
       if (keyBuilder_ != null) {
         return keyBuilder_.getMessageOrBuilder();
       } else {
-        return key_ == null ?
-            com.google.datastore.v1.Key.getDefaultInstance() : key_;
+        return key_ == null ? com.google.datastore.v1.Key.getDefaultInstance() : key_;
       }
     }
     /**
+     *
+     *
      * 
      * The automatically allocated key.
      * Set only when the mutation allocated a key.
@@ -781,21 +844,25 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
      * .google.datastore.v1.Key key = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> 
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
         getKeyFieldBuilder() {
       if (keyBuilder_ == null) {
-        keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>(
-                getKey(),
-                getParentForChildren(),
-                isClean());
+        keyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.Key,
+                com.google.datastore.v1.Key.Builder,
+                com.google.datastore.v1.KeyOrBuilder>(getKey(), getParentForChildren(), isClean());
         key_ = null;
       }
       return keyBuilder_;
     }
 
-    private long version_ ;
+    private long version_;
     /**
+     *
+     *
      * 
      * The version of the entity on the server after processing the mutation. If
      * the mutation doesn't change anything on the server, then the version will
@@ -805,6 +872,7 @@ public com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder() {
      * 
* * int64 version = 4; + * * @return The version. */ @java.lang.Override @@ -812,6 +880,8 @@ public long getVersion() { return version_; } /** + * + * *
      * The version of the entity on the server after processing the mutation. If
      * the mutation doesn't change anything on the server, then the version will
@@ -821,16 +891,19 @@ public long getVersion() {
      * 
* * int64 version = 4; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * The version of the entity on the server after processing the mutation. If
      * the mutation doesn't change anything on the server, then the version will
@@ -840,10 +913,11 @@ public Builder setVersion(long value) {
      * 
* * int64 version = 4; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0L; onChanged(); return this; @@ -851,8 +925,13 @@ public Builder clearVersion() { 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 update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -861,12 +940,15 @@ public Builder clearVersion() {
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -875,16 +957,21 @@ public boolean hasUpdateTime() {
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -908,6 +995,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -917,8 +1006,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 6;
      */
-    public Builder setUpdateTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
         onChanged();
@@ -929,6 +1017,8 @@ public Builder setUpdateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -942,7 +1032,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;
         }
@@ -954,6 +1044,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -975,6 +1067,8 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -985,11 +1079,13 @@ public Builder clearUpdateTime() {
      * .google.protobuf.Timestamp update_time = 6;
      */
     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-      
+
       onChanged();
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -1003,11 +1099,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 update time of the entity on the server after processing the mutation.
      * If the mutation doesn't change anything on the server, then the timestamp
@@ -1018,27 +1117,33 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getUpdateTimeFieldBuilder() {
       if (updateTimeBuilder_ == null) {
-        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getUpdateTime(),
-                getParentForChildren(),
-                isClean());
+        updateTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getUpdateTime(), getParentForChildren(), isClean());
         updateTime_ = null;
       }
       return updateTimeBuilder_;
     }
 
-    private boolean conflictDetected_ ;
+    private boolean conflictDetected_;
     /**
+     *
+     *
      * 
      * Whether a conflict was detected for this mutation. Always false when a
      * conflict detection strategy field is not set in the mutation.
      * 
* * bool conflict_detected = 5; + * * @return The conflictDetected. */ @java.lang.Override @@ -1046,39 +1151,45 @@ public boolean getConflictDetected() { return conflictDetected_; } /** + * + * *
      * Whether a conflict was detected for this mutation. Always false when a
      * conflict detection strategy field is not set in the mutation.
      * 
* * bool conflict_detected = 5; + * * @param value The conflictDetected to set. * @return This builder for chaining. */ public Builder setConflictDetected(boolean value) { - + conflictDetected_ = value; onChanged(); return this; } /** + * + * *
      * Whether a conflict was detected for this mutation. Always false when a
      * conflict detection strategy field is not set in the mutation.
      * 
* * bool conflict_detected = 5; + * * @return This builder for chaining. */ public Builder clearConflictDetected() { - + conflictDetected_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1088,12 +1199,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.MutationResult) } // @@protoc_insertion_point(class_scope:google.datastore.v1.MutationResult) private static final com.google.datastore.v1.MutationResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.MutationResult(); } @@ -1102,16 +1213,16 @@ public static com.google.datastore.v1.MutationResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MutationResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MutationResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutationResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,6 +1237,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.MutationResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java index c70463cba..03f686a2c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.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/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface MutationResultOrBuilder extends +public interface MutationResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.MutationResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
    * 
* * .google.datastore.v1.Key key = 3; + * * @return Whether the key field is set. */ boolean hasKey(); /** + * + * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
    * 
* * .google.datastore.v1.Key key = 3; + * * @return The key. */ com.google.datastore.v1.Key getKey(); /** + * + * *
    * The automatically allocated key.
    * Set only when the mutation allocated a key.
@@ -38,6 +62,8 @@ public interface MutationResultOrBuilder extends
   com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The version of the entity on the server after processing the mutation. If
    * the mutation doesn't change anything on the server, then the version will
@@ -47,11 +73,14 @@ public interface MutationResultOrBuilder extends
    * 
* * int64 version = 4; + * * @return The version. */ long getVersion(); /** + * + * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -60,10 +89,13 @@ public interface MutationResultOrBuilder extends
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -72,10 +104,13 @@ public interface MutationResultOrBuilder extends
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The update time of the entity on the server after processing the mutation.
    * If the mutation doesn't change anything on the server, then the timestamp
@@ -88,12 +123,15 @@ public interface MutationResultOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Whether a conflict was detected for this mutation. Always false when a
    * conflict detection strategy field is not set in the mutation.
    * 
* * bool conflict_detected = 5; + * * @return The conflictDetected. */ boolean getConflictDetected(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java index bd66d5ce4..7439b03ad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.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/datastore/v1/entity.proto package com.google.datastore.v1; /** + * + * *
  * A partition ID identifies a grouping of entities. The grouping is always
  * by project and namespace, however the namespace ID may be empty.
@@ -24,15 +41,16 @@
  *
  * Protobuf type {@code google.datastore.v1.PartitionId}
  */
-public final class PartitionId extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PartitionId extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.PartitionId)
     PartitionIdOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PartitionId.newBuilder() to construct.
   private PartitionId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PartitionId() {
     projectId_ = "";
     namespaceId_ = "";
@@ -40,16 +58,15 @@ private PartitionId() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PartitionId();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PartitionId(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -68,25 +85,27 @@ private PartitionId(
           case 0:
             done = true;
             break;
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            projectId_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              projectId_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            namespaceId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              namespaceId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,34 +113,39 @@ private PartitionId(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.v1.EntityProto
+        .internal_static_google_datastore_v1_PartitionId_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_fieldAccessorTable
+    return com.google.datastore.v1.EntityProto
+        .internal_static_google_datastore_v1_PartitionId_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.v1.PartitionId.class, com.google.datastore.v1.PartitionId.Builder.class);
+            com.google.datastore.v1.PartitionId.class,
+            com.google.datastore.v1.PartitionId.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 2;
   private volatile java.lang.Object projectId_;
   /**
+   *
+   *
    * 
    * The ID of the project to which the entities belong.
    * 
* * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -130,29 +154,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * The ID of the project to which the entities belong.
    * 
* * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -163,11 +187,14 @@ public java.lang.String getProjectId() { public static final int NAMESPACE_ID_FIELD_NUMBER = 4; private volatile java.lang.Object namespaceId_; /** + * + * *
    * If not empty, the ID of the namespace to which the entities belong.
    * 
* * string namespace_id = 4; + * * @return The namespaceId. */ @java.lang.Override @@ -176,29 +203,29 @@ public java.lang.String getNamespaceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespaceId_ = s; return s; } } /** + * + * *
    * If not empty, the ID of the namespace to which the entities belong.
    * 
* * string namespace_id = 4; + * * @return The bytes for namespaceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceIdBytes() { + public com.google.protobuf.ByteString getNamespaceIdBytes() { java.lang.Object ref = namespaceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespaceId_ = b; return b; } else { @@ -207,6 +234,7 @@ public java.lang.String getNamespaceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +246,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); } @@ -249,17 +276,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.PartitionId)) { return super.equals(obj); } com.google.datastore.v1.PartitionId other = (com.google.datastore.v1.PartitionId) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getNamespaceId() - .equals(other.getNamespaceId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getNamespaceId().equals(other.getNamespaceId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -280,97 +305,103 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.PartitionId parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.PartitionId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PartitionId parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PartitionId parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.datastore.v1.PartitionId parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PartitionId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PartitionId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PartitionId parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PartitionId parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.PartitionId parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.PartitionId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.PartitionId parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.PartitionId parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.PartitionId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.PartitionId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A partition ID identifies a grouping of entities. The grouping is always
    * by project and namespace, however the namespace ID may be empty.
@@ -391,21 +422,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.v1.PartitionId}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.PartitionId)
       com.google.datastore.v1.PartitionIdOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_PartitionId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_PartitionId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.PartitionId.class, com.google.datastore.v1.PartitionId.Builder.class);
+              com.google.datastore.v1.PartitionId.class,
+              com.google.datastore.v1.PartitionId.Builder.class);
     }
 
     // Construct using com.google.datastore.v1.PartitionId.newBuilder()
@@ -413,16 +446,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -434,9 +466,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_PartitionId_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_PartitionId_descriptor;
     }
 
     @java.lang.Override
@@ -466,38 +498,39 @@ public com.google.datastore.v1.PartitionId 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.datastore.v1.PartitionId) {
-        return mergeFrom((com.google.datastore.v1.PartitionId)other);
+        return mergeFrom((com.google.datastore.v1.PartitionId) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,18 +578,20 @@ public Builder mergeFrom(
 
     private java.lang.Object projectId_ = "";
     /**
+     *
+     *
      * 
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -565,20 +600,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -586,54 +622,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * The ID of the project to which the entities belong.
      * 
* * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -641,18 +684,20 @@ public Builder setProjectIdBytes( private java.lang.Object namespaceId_ = ""; /** + * + * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; + * * @return The namespaceId. */ public java.lang.String getNamespaceId() { java.lang.Object ref = namespaceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespaceId_ = s; return s; @@ -661,20 +706,21 @@ public java.lang.String getNamespaceId() { } } /** + * + * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; + * * @return The bytes for namespaceId. */ - public com.google.protobuf.ByteString - getNamespaceIdBytes() { + public com.google.protobuf.ByteString getNamespaceIdBytes() { java.lang.Object ref = namespaceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespaceId_ = b; return b; } else { @@ -682,61 +728,68 @@ public java.lang.String getNamespaceId() { } } /** + * + * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; + * * @param value The namespaceId to set. * @return This builder for chaining. */ - public Builder setNamespaceId( - java.lang.String value) { + public Builder setNamespaceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespaceId_ = value; onChanged(); return this; } /** + * + * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; + * * @return This builder for chaining. */ public Builder clearNamespaceId() { - + namespaceId_ = getDefaultInstance().getNamespaceId(); onChanged(); return this; } /** + * + * *
      * If not empty, the ID of the namespace to which the entities belong.
      * 
* * string namespace_id = 4; + * * @param value The bytes for namespaceId to set. * @return This builder for chaining. */ - public Builder setNamespaceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNamespaceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespaceId_ = 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); } @@ -746,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.PartitionId) } // @@protoc_insertion_point(class_scope:google.datastore.v1.PartitionId) private static final com.google.datastore.v1.PartitionId DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.PartitionId(); } @@ -760,16 +813,16 @@ public static com.google.datastore.v1.PartitionId getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartitionId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PartitionId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -784,6 +837,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.PartitionId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java index ae4407ad3..4d6a0cf43 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/entity.proto package com.google.datastore.v1; -public interface PartitionIdOrBuilder extends +public interface PartitionIdOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.PartitionId) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The ID of the project to which the entities belong.
    * 
* * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * The ID of the project to which the entities belong.
    * 
* * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * If not empty, the ID of the namespace to which the entities belong.
    * 
* * string namespace_id = 4; + * * @return The namespaceId. */ java.lang.String getNamespaceId(); /** + * + * *
    * If not empty, the ID of the namespace to which the entities belong.
    * 
* * string namespace_id = 4; + * * @return The bytes for namespaceId. */ - com.google.protobuf.ByteString - getNamespaceIdBytes(); + com.google.protobuf.ByteString getNamespaceIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java index 74d5d106f..1d91086af 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** + * + * *
  * A representation of a property in a projection.
  * 
* * Protobuf type {@code google.datastore.v1.Projection} */ -public final class Projection extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Projection extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.Projection) ProjectionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Projection.newBuilder() to construct. private Projection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Projection() { - } + + private Projection() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Projection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Projection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private Projection( case 0: done = true; break; - case 10: { - com.google.datastore.v1.PropertyReference.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.datastore.v1.PropertyReference.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +98,39 @@ private Projection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.Projection.class, com.google.datastore.v1.Projection.Builder.class); + com.google.datastore.v1.Projection.class, + com.google.datastore.v1.Projection.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.datastore.v1.PropertyReference property_; /** + * + * *
    * The property to project.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -114,18 +138,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * The property to project.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ @java.lang.Override public com.google.datastore.v1.PropertyReference getProperty() { - return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } /** + * + * *
    * The property to project.
    * 
@@ -138,6 +169,7 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -164,8 +195,7 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,7 +205,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.Projection)) { return super.equals(obj); @@ -184,8 +214,7 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +236,126 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.Projection parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.Projection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Projection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Projection parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.datastore.v1.Projection parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Projection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Projection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Projection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Projection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.Projection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.Projection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.Projection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.Projection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.Projection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.Projection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A representation of a property in a projection.
    * 
* * Protobuf type {@code google.datastore.v1.Projection} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.Projection) com.google.datastore.v1.ProjectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.Projection.class, com.google.datastore.v1.Projection.Builder.class); + com.google.datastore.v1.Projection.class, + com.google.datastore.v1.Projection.Builder.class); } // Construct using com.google.datastore.v1.Projection.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Projection_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Projection_descriptor; } @java.lang.Override @@ -384,38 +420,39 @@ public com.google.datastore.v1.Projection 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.datastore.v1.Projection) { - return mergeFrom((com.google.datastore.v1.Projection)other); + return mergeFrom((com.google.datastore.v1.Projection) other); } else { super.mergeFrom(other); return this; @@ -458,34 +495,47 @@ public Builder mergeFrom( private com.google.datastore.v1.PropertyReference property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> propertyBuilder_; + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder> + propertyBuilder_; /** + * + * *
      * The property to project.
      * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * The property to project.
      * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ public com.google.datastore.v1.PropertyReference getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * The property to project.
      * 
@@ -506,14 +556,15 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** + * + * *
      * The property to project.
      * 
* * .google.datastore.v1.PropertyReference property = 1; */ - public Builder setProperty( - com.google.datastore.v1.PropertyReference.Builder builderForValue) { + public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder builderForValue) { if (propertyBuilder_ == null) { property_ = builderForValue.build(); onChanged(); @@ -524,6 +575,8 @@ public Builder setProperty( return this; } /** + * + * *
      * The property to project.
      * 
@@ -534,7 +587,9 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.datastore.v1.PropertyReference.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.PropertyReference.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -546,6 +601,8 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** + * + * *
      * The property to project.
      * 
@@ -564,6 +621,8 @@ public Builder clearProperty() { return this; } /** + * + * *
      * The property to project.
      * 
@@ -571,11 +630,13 @@ public Builder clearProperty() { * .google.datastore.v1.PropertyReference property = 1; */ public com.google.datastore.v1.PropertyReference.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * The property to project.
      * 
@@ -586,11 +647,14 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } } /** + * + * *
      * The property to project.
      * 
@@ -598,21 +662,24 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() * .google.datastore.v1.PropertyReference property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.Projection) } // @@protoc_insertion_point(class_scope:google.datastore.v1.Projection) private static final com.google.datastore.v1.Projection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.Projection(); } @@ -636,16 +703,16 @@ public static com.google.datastore.v1.Projection getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Projection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Projection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Projection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Projection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +727,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.Projection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java index 0476cc9d1..5f3d6c3b2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface ProjectionOrBuilder extends +public interface ProjectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.Projection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The property to project.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * The property to project.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ com.google.datastore.v1.PropertyReference getProperty(); /** + * + * *
    * The property to project.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java index dd4f2f422..cfaa78f90 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** + * + * *
  * A filter on a specific property.
  * 
* * Protobuf type {@code google.datastore.v1.PropertyFilter} */ -public final class PropertyFilter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PropertyFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.PropertyFilter) PropertyFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PropertyFilter.newBuilder() to construct. private PropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PropertyFilter() { op_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PropertyFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PropertyFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,50 @@ private PropertyFilter( case 0: done = true; break; - case 10: { - com.google.datastore.v1.PropertyReference.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.datastore.v1.PropertyReference.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 16: + { + int rawValue = input.readEnum(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - op_ = rawValue; - break; - } - case 26: { - com.google.datastore.v1.Value.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); + op_ = rawValue; + break; } - value_ = input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); + case 26: + { + com.google.datastore.v1.Value.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(com.google.datastore.v1.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +121,41 @@ private PropertyFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyFilter.class, com.google.datastore.v1.PropertyFilter.Builder.class); + com.google.datastore.v1.PropertyFilter.class, + com.google.datastore.v1.PropertyFilter.Builder.class); } /** + * + * *
    * A property filter operator.
    * 
* * Protobuf enum {@code google.datastore.v1.PropertyFilter.Operator} */ - public enum Operator - implements com.google.protobuf.ProtocolMessageEnum { + public enum Operator implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -137,6 +164,8 @@ public enum Operator */ OPERATOR_UNSPECIFIED(0), /** + * + * *
      * The given `property` is less than the given `value`.
      * Requires:
@@ -147,6 +176,8 @@ public enum Operator
      */
     LESS_THAN(1),
     /**
+     *
+     *
      * 
      * The given `property` is less than or equal to the given `value`.
      * Requires:
@@ -157,6 +188,8 @@ public enum Operator
      */
     LESS_THAN_OR_EQUAL(2),
     /**
+     *
+     *
      * 
      * The given `property` is greater than the given `value`.
      * Requires:
@@ -167,6 +200,8 @@ public enum Operator
      */
     GREATER_THAN(3),
     /**
+     *
+     *
      * 
      * The given `property` is greater than or equal to the given `value`.
      * Requires:
@@ -177,6 +212,8 @@ public enum Operator
      */
     GREATER_THAN_OR_EQUAL(4),
     /**
+     *
+     *
      * 
      * The given `property` is equal to the given `value`.
      * 
@@ -185,6 +222,8 @@ public enum Operator */ EQUAL(5), /** + * + * *
      * The given `property` is equal to at least one value in the given array.
      * Requires:
@@ -196,6 +235,8 @@ public enum Operator
      */
     IN(6),
     /**
+     *
+     *
      * 
      * The given `property` is not equal to the given `value`.
      * Requires:
@@ -207,6 +248,8 @@ public enum Operator
      */
     NOT_EQUAL(9),
     /**
+     *
+     *
      * 
      * Limit the result set to the given entity and its descendants.
      * Requires:
@@ -217,6 +260,8 @@ public enum Operator
      */
     HAS_ANCESTOR(11),
     /**
+     *
+     *
      * 
      * The value of the `property` is not in the given array.
      * Requires:
@@ -232,6 +277,8 @@ public enum Operator
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified. This value must not be used.
      * 
@@ -240,6 +287,8 @@ public enum Operator */ public static final int OPERATOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The given `property` is less than the given `value`.
      * Requires:
@@ -250,6 +299,8 @@ public enum Operator
      */
     public static final int LESS_THAN_VALUE = 1;
     /**
+     *
+     *
      * 
      * The given `property` is less than or equal to the given `value`.
      * Requires:
@@ -260,6 +311,8 @@ public enum Operator
      */
     public static final int LESS_THAN_OR_EQUAL_VALUE = 2;
     /**
+     *
+     *
      * 
      * The given `property` is greater than the given `value`.
      * Requires:
@@ -270,6 +323,8 @@ public enum Operator
      */
     public static final int GREATER_THAN_VALUE = 3;
     /**
+     *
+     *
      * 
      * The given `property` is greater than or equal to the given `value`.
      * Requires:
@@ -280,6 +335,8 @@ public enum Operator
      */
     public static final int GREATER_THAN_OR_EQUAL_VALUE = 4;
     /**
+     *
+     *
      * 
      * The given `property` is equal to the given `value`.
      * 
@@ -288,6 +345,8 @@ public enum Operator */ public static final int EQUAL_VALUE = 5; /** + * + * *
      * The given `property` is equal to at least one value in the given array.
      * Requires:
@@ -299,6 +358,8 @@ public enum Operator
      */
     public static final int IN_VALUE = 6;
     /**
+     *
+     *
      * 
      * The given `property` is not equal to the given `value`.
      * Requires:
@@ -310,6 +371,8 @@ public enum Operator
      */
     public static final int NOT_EQUAL_VALUE = 9;
     /**
+     *
+     *
      * 
      * Limit the result set to the given entity and its descendants.
      * Requires:
@@ -320,6 +383,8 @@ public enum Operator
      */
     public static final int HAS_ANCESTOR_VALUE = 11;
     /**
+     *
+     *
      * 
      * The value of the `property` is not in the given array.
      * Requires:
@@ -332,7 +397,6 @@ public enum Operator
      */
     public static final int NOT_IN_VALUE = 13;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -357,56 +421,63 @@ public static Operator valueOf(int value) {
      */
     public static Operator forNumber(int value) {
       switch (value) {
-        case 0: return OPERATOR_UNSPECIFIED;
-        case 1: return LESS_THAN;
-        case 2: return LESS_THAN_OR_EQUAL;
-        case 3: return GREATER_THAN;
-        case 4: return GREATER_THAN_OR_EQUAL;
-        case 5: return EQUAL;
-        case 6: return IN;
-        case 9: return NOT_EQUAL;
-        case 11: return HAS_ANCESTOR;
-        case 13: return NOT_IN;
-        default: return null;
+        case 0:
+          return OPERATOR_UNSPECIFIED;
+        case 1:
+          return LESS_THAN;
+        case 2:
+          return LESS_THAN_OR_EQUAL;
+        case 3:
+          return GREATER_THAN;
+        case 4:
+          return GREATER_THAN_OR_EQUAL;
+        case 5:
+          return EQUAL;
+        case 6:
+          return IN;
+        case 9:
+          return NOT_EQUAL;
+        case 11:
+          return HAS_ANCESTOR;
+        case 13:
+          return NOT_IN;
+        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<
-        Operator> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Operator findValueByNumber(int number) {
-              return Operator.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 Operator findValueByNumber(int number) {
+            return Operator.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.datastore.v1.PropertyFilter.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Operator[] VALUES = values();
 
-    public static Operator valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Operator 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;
@@ -426,11 +497,14 @@ private Operator(int value) {
   public static final int PROPERTY_FIELD_NUMBER = 1;
   private com.google.datastore.v1.PropertyReference property_;
   /**
+   *
+   *
    * 
    * The property to filter by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -438,18 +512,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * The property to filter by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ @java.lang.Override public com.google.datastore.v1.PropertyReference getProperty() { - return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } /** + * + * *
    * The property to filter by.
    * 
@@ -464,38 +545,50 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() public static final int OP_FIELD_NUMBER = 2; private int op_; /** + * + * *
    * The operator to filter by.
    * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @return The enum numeric value on the wire for op. */ - @java.lang.Override public int getOpValue() { + @java.lang.Override + public int getOpValue() { return op_; } /** + * + * *
    * The operator to filter by.
    * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @return The op. */ - @java.lang.Override public com.google.datastore.v1.PropertyFilter.Operator getOp() { + @java.lang.Override + public com.google.datastore.v1.PropertyFilter.Operator getOp() { @SuppressWarnings("deprecation") - com.google.datastore.v1.PropertyFilter.Operator result = com.google.datastore.v1.PropertyFilter.Operator.valueOf(op_); + com.google.datastore.v1.PropertyFilter.Operator result = + com.google.datastore.v1.PropertyFilter.Operator.valueOf(op_); return result == null ? com.google.datastore.v1.PropertyFilter.Operator.UNRECOGNIZED : result; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.datastore.v1.Value value_; /** + * + * *
    * The value to compare the property to.
    * 
* * .google.datastore.v1.Value value = 3; + * * @return Whether the value field is set. */ @java.lang.Override @@ -503,11 +596,14 @@ public boolean hasValue() { return value_ != null; } /** + * + * *
    * The value to compare the property to.
    * 
* * .google.datastore.v1.Value value = 3; + * * @return The value. */ @java.lang.Override @@ -515,6 +611,8 @@ public com.google.datastore.v1.Value getValue() { return value_ == null ? com.google.datastore.v1.Value.getDefaultInstance() : value_; } /** + * + * *
    * The value to compare the property to.
    * 
@@ -527,6 +625,7 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -538,8 +637,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 (property_ != null) { output.writeMessage(1, getProperty()); } @@ -559,16 +657,13 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (op_ != com.google.datastore.v1.PropertyFilter.Operator.OPERATOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, op_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, op_); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -578,7 +673,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.PropertyFilter)) { return super.equals(obj); @@ -587,14 +682,12 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (op_ != other.op_) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -622,118 +715,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.PropertyFilter parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.PropertyFilter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PropertyFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PropertyFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PropertyFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.PropertyFilter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.PropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.PropertyFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A filter on a specific property.
    * 
* * Protobuf type {@code google.datastore.v1.PropertyFilter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.PropertyFilter) com.google.datastore.v1.PropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyFilter.class, com.google.datastore.v1.PropertyFilter.Builder.class); + com.google.datastore.v1.PropertyFilter.class, + com.google.datastore.v1.PropertyFilter.Builder.class); } // Construct using com.google.datastore.v1.PropertyFilter.newBuilder() @@ -741,16 +843,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -772,9 +873,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyFilter_descriptor; } @java.lang.Override @@ -793,7 +894,8 @@ public com.google.datastore.v1.PropertyFilter build() { @java.lang.Override public com.google.datastore.v1.PropertyFilter buildPartial() { - com.google.datastore.v1.PropertyFilter result = new com.google.datastore.v1.PropertyFilter(this); + com.google.datastore.v1.PropertyFilter result = + new com.google.datastore.v1.PropertyFilter(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -813,38 +915,39 @@ public com.google.datastore.v1.PropertyFilter buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.datastore.v1.PropertyFilter) { - return mergeFrom((com.google.datastore.v1.PropertyFilter)other); + return mergeFrom((com.google.datastore.v1.PropertyFilter) other); } else { super.mergeFrom(other); return this; @@ -893,34 +996,47 @@ public Builder mergeFrom( private com.google.datastore.v1.PropertyReference property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> propertyBuilder_; + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder> + propertyBuilder_; /** + * + * *
      * The property to filter by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * The property to filter by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ public com.google.datastore.v1.PropertyReference getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * The property to filter by.
      * 
@@ -941,14 +1057,15 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** + * + * *
      * The property to filter by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; */ - public Builder setProperty( - com.google.datastore.v1.PropertyReference.Builder builderForValue) { + public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder builderForValue) { if (propertyBuilder_ == null) { property_ = builderForValue.build(); onChanged(); @@ -959,6 +1076,8 @@ public Builder setProperty( return this; } /** + * + * *
      * The property to filter by.
      * 
@@ -969,7 +1088,9 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.datastore.v1.PropertyReference.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.PropertyReference.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -981,6 +1102,8 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** + * + * *
      * The property to filter by.
      * 
@@ -999,6 +1122,8 @@ public Builder clearProperty() { return this; } /** + * + * *
      * The property to filter by.
      * 
@@ -1006,11 +1131,13 @@ public Builder clearProperty() { * .google.datastore.v1.PropertyReference property = 1; */ public com.google.datastore.v1.PropertyReference.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * The property to filter by.
      * 
@@ -1021,11 +1148,14 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } } /** + * + * *
      * The property to filter by.
      * 
@@ -1033,14 +1163,17 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() * .google.datastore.v1.PropertyReference property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -1048,51 +1181,65 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() private int op_ = 0; /** + * + * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @return The enum numeric value on the wire for op. */ - @java.lang.Override public int getOpValue() { + @java.lang.Override + public int getOpValue() { return op_; } /** + * + * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @param value The enum numeric value on the wire for op to set. * @return This builder for chaining. */ public Builder setOpValue(int value) { - + op_ = value; onChanged(); return this; } /** + * + * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @return The op. */ @java.lang.Override public com.google.datastore.v1.PropertyFilter.Operator getOp() { @SuppressWarnings("deprecation") - com.google.datastore.v1.PropertyFilter.Operator result = com.google.datastore.v1.PropertyFilter.Operator.valueOf(op_); + com.google.datastore.v1.PropertyFilter.Operator result = + com.google.datastore.v1.PropertyFilter.Operator.valueOf(op_); return result == null ? com.google.datastore.v1.PropertyFilter.Operator.UNRECOGNIZED : result; } /** + * + * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @param value The op to set. * @return This builder for chaining. */ @@ -1100,21 +1247,24 @@ public Builder setOp(com.google.datastore.v1.PropertyFilter.Operator value) { if (value == null) { throw new NullPointerException(); } - + op_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The operator to filter by.
      * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @return This builder for chaining. */ public Builder clearOp() { - + op_ = 0; onChanged(); return this; @@ -1122,24 +1272,33 @@ public Builder clearOp() { private com.google.datastore.v1.Value value_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> valueBuilder_; + com.google.datastore.v1.Value, + com.google.datastore.v1.Value.Builder, + com.google.datastore.v1.ValueOrBuilder> + valueBuilder_; /** + * + * *
      * The value to compare the property to.
      * 
* * .google.datastore.v1.Value value = 3; + * * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** + * + * *
      * The value to compare the property to.
      * 
* * .google.datastore.v1.Value value = 3; + * * @return The value. */ public com.google.datastore.v1.Value getValue() { @@ -1150,6 +1309,8 @@ public com.google.datastore.v1.Value getValue() { } } /** + * + * *
      * The value to compare the property to.
      * 
@@ -1170,14 +1331,15 @@ public Builder setValue(com.google.datastore.v1.Value value) { return this; } /** + * + * *
      * The value to compare the property to.
      * 
* * .google.datastore.v1.Value value = 3; */ - public Builder setValue( - com.google.datastore.v1.Value.Builder builderForValue) { + public Builder setValue(com.google.datastore.v1.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); @@ -1188,6 +1350,8 @@ public Builder setValue( return this; } /** + * + * *
      * The value to compare the property to.
      * 
@@ -1197,8 +1361,7 @@ public Builder setValue( public Builder mergeValue(com.google.datastore.v1.Value value) { if (valueBuilder_ == null) { if (value_ != null) { - value_ = - com.google.datastore.v1.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + value_ = com.google.datastore.v1.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } @@ -1210,6 +1373,8 @@ public Builder mergeValue(com.google.datastore.v1.Value value) { return this; } /** + * + * *
      * The value to compare the property to.
      * 
@@ -1228,6 +1393,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * The value to compare the property to.
      * 
@@ -1235,11 +1402,13 @@ public Builder clearValue() { * .google.datastore.v1.Value value = 3; */ public com.google.datastore.v1.Value.Builder getValueBuilder() { - + onChanged(); return getValueFieldBuilder().getBuilder(); } /** + * + * *
      * The value to compare the property to.
      * 
@@ -1250,11 +1419,12 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? - com.google.datastore.v1.Value.getDefaultInstance() : value_; + return value_ == null ? com.google.datastore.v1.Value.getDefaultInstance() : value_; } } /** + * + * *
      * The value to compare the property to.
      * 
@@ -1262,21 +1432,24 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { * .google.datastore.v1.Value value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder> + com.google.datastore.v1.Value, + com.google.datastore.v1.Value.Builder, + com.google.datastore.v1.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Value, com.google.datastore.v1.Value.Builder, com.google.datastore.v1.ValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Value, + com.google.datastore.v1.Value.Builder, + com.google.datastore.v1.ValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1286,12 +1459,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.PropertyFilter) } // @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyFilter) private static final com.google.datastore.v1.PropertyFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.PropertyFilter(); } @@ -1300,16 +1473,16 @@ public static com.google.datastore.v1.PropertyFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PropertyFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1324,6 +1497,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.PropertyFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java index 2a087a6f3..f9d3ba4bf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface PropertyFilterOrBuilder extends +public interface PropertyFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.PropertyFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The property to filter by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * The property to filter by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ com.google.datastore.v1.PropertyReference getProperty(); /** + * + * *
    * The property to filter by.
    * 
@@ -35,43 +59,57 @@ public interface PropertyFilterOrBuilder extends com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The operator to filter by.
    * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @return The enum numeric value on the wire for op. */ int getOpValue(); /** + * + * *
    * The operator to filter by.
    * 
* * .google.datastore.v1.PropertyFilter.Operator op = 2; + * * @return The op. */ com.google.datastore.v1.PropertyFilter.Operator getOp(); /** + * + * *
    * The value to compare the property to.
    * 
* * .google.datastore.v1.Value value = 3; + * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * *
    * The value to compare the property to.
    * 
* * .google.datastore.v1.Value value = 3; + * * @return The value. */ com.google.datastore.v1.Value getValue(); /** + * + * *
    * The value to compare the property to.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java index 0225d48cf..4eff592cb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** + * + * *
  * The desired order for a specific property.
  * 
* * Protobuf type {@code google.datastore.v1.PropertyOrder} */ -public final class PropertyOrder extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PropertyOrder extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.PropertyOrder) PropertyOrderOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PropertyOrder.newBuilder() to construct. private PropertyOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PropertyOrder() { direction_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PropertyOrder(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PropertyOrder( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private PropertyOrder( case 0: done = true; break; - case 10: { - com.google.datastore.v1.PropertyReference.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.datastore.v1.PropertyReference.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.datastore.v1.PropertyReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } - break; - } - case 16: { - int rawValue = input.readEnum(); + break; + } + case 16: + { + int rawValue = input.readEnum(); - direction_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + direction_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,36 +107,41 @@ private PropertyOrder( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyOrder.class, com.google.datastore.v1.PropertyOrder.Builder.class); + com.google.datastore.v1.PropertyOrder.class, + com.google.datastore.v1.PropertyOrder.Builder.class); } /** + * + * *
    * The sort direction.
    * 
* * Protobuf enum {@code google.datastore.v1.PropertyOrder.Direction} */ - public enum Direction - implements com.google.protobuf.ProtocolMessageEnum { + public enum Direction implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -124,6 +150,8 @@ public enum Direction */ DIRECTION_UNSPECIFIED(0), /** + * + * *
      * Ascending.
      * 
@@ -132,6 +160,8 @@ public enum Direction */ ASCENDING(1), /** + * + * *
      * Descending.
      * 
@@ -143,6 +173,8 @@ public enum Direction ; /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -151,6 +183,8 @@ public enum Direction */ public static final int DIRECTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Ascending.
      * 
@@ -159,6 +193,8 @@ public enum Direction */ public static final int ASCENDING_VALUE = 1; /** + * + * *
      * Descending.
      * 
@@ -167,7 +203,6 @@ public enum Direction */ public static final int DESCENDING_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -192,49 +227,49 @@ public static Direction valueOf(int value) { */ public static Direction forNumber(int value) { switch (value) { - case 0: return DIRECTION_UNSPECIFIED; - case 1: return ASCENDING; - case 2: return DESCENDING; - default: return null; + case 0: + return DIRECTION_UNSPECIFIED; + case 1: + return ASCENDING; + case 2: + return DESCENDING; + 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< - Direction> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Direction findValueByNumber(int number) { - return Direction.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 Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.v1.PropertyOrder.getDescriptor().getEnumTypes().get(0); } private static final Direction[] VALUES = values(); - public static Direction valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Direction 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; @@ -254,11 +289,14 @@ private Direction(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.datastore.v1.PropertyReference property_; /** + * + * *
    * The property to order by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -266,18 +304,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * The property to order by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ @java.lang.Override public com.google.datastore.v1.PropertyReference getProperty() { - return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } /** + * + * *
    * The property to order by.
    * 
@@ -292,31 +337,41 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() public static final int DIRECTION_FIELD_NUMBER = 2; private int direction_; /** + * + * *
    * The direction to order by. Defaults to `ASCENDING`.
    * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override public int getDirectionValue() { + @java.lang.Override + public int getDirectionValue() { return direction_; } /** + * + * *
    * The direction to order by. Defaults to `ASCENDING`.
    * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @return The direction. */ - @java.lang.Override public com.google.datastore.v1.PropertyOrder.Direction getDirection() { + @java.lang.Override + public com.google.datastore.v1.PropertyOrder.Direction getDirection() { @SuppressWarnings("deprecation") - com.google.datastore.v1.PropertyOrder.Direction result = com.google.datastore.v1.PropertyOrder.Direction.valueOf(direction_); + com.google.datastore.v1.PropertyOrder.Direction result = + com.google.datastore.v1.PropertyOrder.Direction.valueOf(direction_); return result == null ? com.google.datastore.v1.PropertyOrder.Direction.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,12 +383,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } - if (direction_ != com.google.datastore.v1.PropertyOrder.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + if (direction_ + != com.google.datastore.v1.PropertyOrder.Direction.DIRECTION_UNSPECIFIED.getNumber()) { output.writeEnum(2, direction_); } unknownFields.writeTo(output); @@ -346,12 +401,11 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } - if (direction_ != com.google.datastore.v1.PropertyOrder.Direction.DIRECTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, direction_); + if (direction_ + != com.google.datastore.v1.PropertyOrder.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,7 +415,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.PropertyOrder)) { return super.equals(obj); @@ -370,8 +424,7 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (direction_ != other.direction_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -396,118 +449,126 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.PropertyOrder parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.PropertyOrder parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyOrder parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.PropertyOrder parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.datastore.v1.PropertyOrder parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyOrder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PropertyOrder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyOrder parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PropertyOrder parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyOrder parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.PropertyOrder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyOrder parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.PropertyOrder parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyOrder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.PropertyOrder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 order for a specific property.
    * 
* * Protobuf type {@code google.datastore.v1.PropertyOrder} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.PropertyOrder) com.google.datastore.v1.PropertyOrderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyOrder.class, com.google.datastore.v1.PropertyOrder.Builder.class); + com.google.datastore.v1.PropertyOrder.class, + com.google.datastore.v1.PropertyOrder.Builder.class); } // Construct using com.google.datastore.v1.PropertyOrder.newBuilder() @@ -515,16 +576,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +600,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyOrder_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyOrder_descriptor; } @java.lang.Override @@ -561,7 +621,8 @@ public com.google.datastore.v1.PropertyOrder build() { @java.lang.Override public com.google.datastore.v1.PropertyOrder buildPartial() { - com.google.datastore.v1.PropertyOrder result = new com.google.datastore.v1.PropertyOrder(this); + com.google.datastore.v1.PropertyOrder result = + new com.google.datastore.v1.PropertyOrder(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -576,38 +637,39 @@ public com.google.datastore.v1.PropertyOrder 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.datastore.v1.PropertyOrder) { - return mergeFrom((com.google.datastore.v1.PropertyOrder)other); + return mergeFrom((com.google.datastore.v1.PropertyOrder) other); } else { super.mergeFrom(other); return this; @@ -653,34 +715,47 @@ public Builder mergeFrom( private com.google.datastore.v1.PropertyReference property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> propertyBuilder_; + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder> + propertyBuilder_; /** + * + * *
      * The property to order by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * The property to order by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ public com.google.datastore.v1.PropertyReference getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * The property to order by.
      * 
@@ -701,14 +776,15 @@ public Builder setProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** + * + * *
      * The property to order by.
      * 
* * .google.datastore.v1.PropertyReference property = 1; */ - public Builder setProperty( - com.google.datastore.v1.PropertyReference.Builder builderForValue) { + public Builder setProperty(com.google.datastore.v1.PropertyReference.Builder builderForValue) { if (propertyBuilder_ == null) { property_ = builderForValue.build(); onChanged(); @@ -719,6 +795,8 @@ public Builder setProperty( return this; } /** + * + * *
      * The property to order by.
      * 
@@ -729,7 +807,9 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.datastore.v1.PropertyReference.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.PropertyReference.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -741,6 +821,8 @@ public Builder mergeProperty(com.google.datastore.v1.PropertyReference value) { return this; } /** + * + * *
      * The property to order by.
      * 
@@ -759,6 +841,8 @@ public Builder clearProperty() { return this; } /** + * + * *
      * The property to order by.
      * 
@@ -766,11 +850,13 @@ public Builder clearProperty() { * .google.datastore.v1.PropertyReference property = 1; */ public com.google.datastore.v1.PropertyReference.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * The property to order by.
      * 
@@ -781,11 +867,14 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.datastore.v1.PropertyReference.getDefaultInstance() : property_; + return property_ == null + ? com.google.datastore.v1.PropertyReference.getDefaultInstance() + : property_; } } /** + * + * *
      * The property to order by.
      * 
@@ -793,14 +882,17 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() * .google.datastore.v1.PropertyReference property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -808,51 +900,65 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder() private int direction_ = 0; /** + * + * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override public int getDirectionValue() { + @java.lang.Override + public int getDirectionValue() { return direction_; } /** + * + * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ public Builder setDirectionValue(int value) { - + direction_ = value; onChanged(); return this; } /** + * + * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @return The direction. */ @java.lang.Override public com.google.datastore.v1.PropertyOrder.Direction getDirection() { @SuppressWarnings("deprecation") - com.google.datastore.v1.PropertyOrder.Direction result = com.google.datastore.v1.PropertyOrder.Direction.valueOf(direction_); + com.google.datastore.v1.PropertyOrder.Direction result = + com.google.datastore.v1.PropertyOrder.Direction.valueOf(direction_); return result == null ? com.google.datastore.v1.PropertyOrder.Direction.UNRECOGNIZED : result; } /** + * + * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @param value The direction to set. * @return This builder for chaining. */ @@ -860,28 +966,31 @@ public Builder setDirection(com.google.datastore.v1.PropertyOrder.Direction valu if (value == null) { throw new NullPointerException(); } - + direction_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The direction to order by. Defaults to `ASCENDING`.
      * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @return This builder for chaining. */ public Builder clearDirection() { - + direction_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -891,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.PropertyOrder) } // @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyOrder) private static final com.google.datastore.v1.PropertyOrder DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.PropertyOrder(); } @@ -905,16 +1014,16 @@ public static com.google.datastore.v1.PropertyOrder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyOrder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyOrder(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyOrder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PropertyOrder(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,6 +1038,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.PropertyOrder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java index 0606042c6..93cb3f926 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; -public interface PropertyOrderOrBuilder extends +public interface PropertyOrderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.PropertyOrder) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The property to order by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * The property to order by.
    * 
* * .google.datastore.v1.PropertyReference property = 1; + * * @return The property. */ com.google.datastore.v1.PropertyReference getProperty(); /** + * + * *
    * The property to order by.
    * 
@@ -35,20 +59,26 @@ public interface PropertyOrderOrBuilder extends com.google.datastore.v1.PropertyReferenceOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The direction to order by. Defaults to `ASCENDING`.
    * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** + * + * *
    * The direction to order by. Defaults to `ASCENDING`.
    * 
* * .google.datastore.v1.PropertyOrder.Direction direction = 2; + * * @return The direction. */ com.google.datastore.v1.PropertyOrder.Direction getDirection(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java index 812398844..bc42d0064 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/query.proto package com.google.datastore.v1; /** + * + * *
  * A reference to a property relative to the kind expressions.
  * 
* * Protobuf type {@code google.datastore.v1.PropertyReference} */ -public final class PropertyReference extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PropertyReference extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.PropertyReference) PropertyReferenceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PropertyReference.newBuilder() to construct. private PropertyReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PropertyReference() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PropertyReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PropertyReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private PropertyReference( case 0: done = true; break; - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private PropertyReference( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyReference.class, com.google.datastore.v1.PropertyReference.Builder.class); + com.google.datastore.v1.PropertyReference.class, + com.google.datastore.v1.PropertyReference.Builder.class); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The name of the property.
    * If name includes "."s, it may be interpreted as a property name path.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the property.
    * If name includes "."s, it may be interpreted as a property name path.
    * 
* * string name = 2; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,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, 2, name_); } @@ -178,15 +201,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.datastore.v1.PropertyReference)) { return super.equals(obj); } - com.google.datastore.v1.PropertyReference other = (com.google.datastore.v1.PropertyReference) obj; + com.google.datastore.v1.PropertyReference other = + (com.google.datastore.v1.PropertyReference) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.PropertyReference parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.PropertyReference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PropertyReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PropertyReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.PropertyReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.PropertyReference parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.PropertyReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.PropertyReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.PropertyReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.PropertyReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.PropertyReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A reference to a property relative to the kind expressions.
    * 
* * Protobuf type {@code google.datastore.v1.PropertyReference} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.PropertyReference) com.google.datastore.v1.PropertyReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.PropertyReference.class, com.google.datastore.v1.PropertyReference.Builder.class); + com.google.datastore.v1.PropertyReference.class, + com.google.datastore.v1.PropertyReference.Builder.class); } // Construct using com.google.datastore.v1.PropertyReference.newBuilder() @@ -324,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_PropertyReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_PropertyReference_descriptor; } @java.lang.Override @@ -364,7 +395,8 @@ public com.google.datastore.v1.PropertyReference build() { @java.lang.Override public com.google.datastore.v1.PropertyReference buildPartial() { - com.google.datastore.v1.PropertyReference result = new com.google.datastore.v1.PropertyReference(this); + com.google.datastore.v1.PropertyReference result = + new com.google.datastore.v1.PropertyReference(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.datastore.v1.PropertyReference 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.datastore.v1.PropertyReference) { - return mergeFrom((com.google.datastore.v1.PropertyReference)other); + return mergeFrom((com.google.datastore.v1.PropertyReference) other); } else { super.mergeFrom(other); return this; @@ -449,19 +482,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +505,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +528,71 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the property.
      * If name includes "."s, it may be interpreted as a property name path.
      * 
* * string name = 2; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.PropertyReference) } // @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyReference) private static final com.google.datastore.v1.PropertyReference DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.PropertyReference(); } @@ -573,16 +616,16 @@ public static com.google.datastore.v1.PropertyReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyReference(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PropertyReference(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.PropertyReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java new file mode 100644 index 000000000..105bbe4d3 --- /dev/null +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/v1/query.proto + +package com.google.datastore.v1; + +public interface PropertyReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.datastore.v1.PropertyReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the property.
+   * If name includes "."s, it may be interpreted as a property name path.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the property.
+   * If name includes "."s, it may be interpreted as a property name path.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java index 2d8085326..781346c62 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.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/datastore/v1/query.proto package com.google.datastore.v1; /** + * + * *
  * A query for entities.
  * 
* * Protobuf type {@code google.datastore.v1.Query} */ -public final class Query extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Query extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.Query) QueryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Query.newBuilder() to construct. private Query(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Query() { projection_ = java.util.Collections.emptyList(); kind_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private Query() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Query(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Query( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,90 +76,102 @@ private Query( case 0: done = true; break; - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projection_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projection_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projection_.add( + input.readMessage( + com.google.datastore.v1.Projection.parser(), extensionRegistry)); + break; } - projection_.add( - input.readMessage(com.google.datastore.v1.Projection.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - kind_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + kind_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + kind_.add( + input.readMessage( + com.google.datastore.v1.KindExpression.parser(), extensionRegistry)); + break; } - kind_.add( - input.readMessage(com.google.datastore.v1.KindExpression.parser(), extensionRegistry)); - break; - } - case 34: { - com.google.datastore.v1.Filter.Builder subBuilder = null; - if (filter_ != null) { - subBuilder = filter_.toBuilder(); + case 34: + { + com.google.datastore.v1.Filter.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = + input.readMessage(com.google.datastore.v1.Filter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; } - filter_ = input.readMessage(com.google.datastore.v1.Filter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + order_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + order_.add( + input.readMessage( + com.google.datastore.v1.PropertyOrder.parser(), extensionRegistry)); + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - order_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 50: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + distinctOn_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + distinctOn_.add( + input.readMessage( + com.google.datastore.v1.PropertyReference.parser(), extensionRegistry)); + break; } - order_.add( - input.readMessage(com.google.datastore.v1.PropertyOrder.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - distinctOn_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 58: + { + startCursor_ = input.readBytes(); + break; } - distinctOn_.add( - input.readMessage(com.google.datastore.v1.PropertyReference.parser(), extensionRegistry)); - break; - } - case 58: { - - startCursor_ = input.readBytes(); - break; - } - case 66: { - - endCursor_ = input.readBytes(); - break; - } - case 80: { - - offset_ = input.readInt32(); - break; - } - case 98: { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (limit_ != null) { - subBuilder = limit_.toBuilder(); + case 66: + { + endCursor_ = input.readBytes(); + break; } - limit_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(limit_); - limit_ = subBuilder.buildPartial(); + case 80: + { + offset_ = input.readInt32(); + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 98: + { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (limit_ != null) { + subBuilder = limit_.toBuilder(); + } + limit_ = + input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(limit_); + limit_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,8 +179,7 @@ private Query( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projection_ = java.util.Collections.unmodifiableList(projection_); @@ -169,15 +197,16 @@ private Query( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Query_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Query.class, com.google.datastore.v1.Query.Builder.class); } @@ -185,6 +214,8 @@ private Query( public static final int PROJECTION_FIELD_NUMBER = 2; private java.util.List projection_; /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -196,6 +227,8 @@ public java.util.List getProjectionList() { return projection_; } /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -203,11 +236,13 @@ public java.util.List getProjectionList() { * repeated .google.datastore.v1.Projection projection = 2; */ @java.lang.Override - public java.util.List + public java.util.List getProjectionOrBuilderList() { return projection_; } /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -219,6 +254,8 @@ public int getProjectionCount() { return projection_.size(); } /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -230,6 +267,8 @@ public com.google.datastore.v1.Projection getProjection(int index) { return projection_.get(index); } /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -237,14 +276,15 @@ public com.google.datastore.v1.Projection getProjection(int index) { * repeated .google.datastore.v1.Projection projection = 2; */ @java.lang.Override - public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder( - int index) { + public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(int index) { return projection_.get(index); } public static final int KIND_FIELD_NUMBER = 3; private java.util.List kind_; /** + * + * *
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -257,6 +297,8 @@ public java.util.List getKindList() {
     return kind_;
   }
   /**
+   *
+   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -265,11 +307,13 @@ public java.util.List getKindList() {
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getKindOrBuilderList() {
     return kind_;
   }
   /**
+   *
+   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -282,6 +326,8 @@ public int getKindCount() {
     return kind_.size();
   }
   /**
+   *
+   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -294,6 +340,8 @@ public com.google.datastore.v1.KindExpression getKind(int index) {
     return kind_.get(index);
   }
   /**
+   *
+   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -302,19 +350,21 @@ public com.google.datastore.v1.KindExpression getKind(int index) {
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
   @java.lang.Override
-  public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
-      int index) {
+  public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int index) {
     return kind_.get(index);
   }
 
   public static final int FILTER_FIELD_NUMBER = 4;
   private com.google.datastore.v1.Filter filter_;
   /**
+   *
+   *
    * 
    * The filter to apply.
    * 
* * .google.datastore.v1.Filter filter = 4; + * * @return Whether the filter field is set. */ @java.lang.Override @@ -322,11 +372,14 @@ public boolean hasFilter() { return filter_ != null; } /** + * + * *
    * The filter to apply.
    * 
* * .google.datastore.v1.Filter filter = 4; + * * @return The filter. */ @java.lang.Override @@ -334,6 +387,8 @@ public com.google.datastore.v1.Filter getFilter() { return filter_ == null ? com.google.datastore.v1.Filter.getDefaultInstance() : filter_; } /** + * + * *
    * The filter to apply.
    * 
@@ -348,6 +403,8 @@ public com.google.datastore.v1.FilterOrBuilder getFilterOrBuilder() { public static final int ORDER_FIELD_NUMBER = 5; private java.util.List order_; /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -359,6 +416,8 @@ public java.util.List getOrderList() { return order_; } /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -366,11 +425,13 @@ public java.util.List getOrderList() { * repeated .google.datastore.v1.PropertyOrder order = 5; */ @java.lang.Override - public java.util.List + public java.util.List getOrderOrBuilderList() { return order_; } /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -382,6 +443,8 @@ public int getOrderCount() { return order_.size(); } /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -393,6 +456,8 @@ public com.google.datastore.v1.PropertyOrder getOrder(int index) { return order_.get(index); } /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -400,14 +465,15 @@ public com.google.datastore.v1.PropertyOrder getOrder(int index) { * repeated .google.datastore.v1.PropertyOrder order = 5; */ @java.lang.Override - public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder( - int index) { + public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int index) { return order_.get(index); } public static final int DISTINCT_ON_FIELD_NUMBER = 6; private java.util.List distinctOn_; /** + * + * *
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -421,6 +487,8 @@ public java.util.List getDistinctOnLi
     return distinctOn_;
   }
   /**
+   *
+   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -430,11 +498,13 @@ public java.util.List getDistinctOnLi
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getDistinctOnOrBuilderList() {
     return distinctOn_;
   }
   /**
+   *
+   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -448,6 +518,8 @@ public int getDistinctOnCount() {
     return distinctOn_.size();
   }
   /**
+   *
+   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -461,6 +533,8 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
     return distinctOn_.get(index);
   }
   /**
+   *
+   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -470,14 +544,15 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
   @java.lang.Override
-  public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
-      int index) {
+  public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(int index) {
     return distinctOn_.get(index);
   }
 
   public static final int START_CURSOR_FIELD_NUMBER = 7;
   private com.google.protobuf.ByteString startCursor_;
   /**
+   *
+   *
    * 
    * A starting point for the query results. Query cursors are
    * returned in query result batches and
@@ -486,6 +561,7 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
    * 
* * bytes start_cursor = 7; + * * @return The startCursor. */ @java.lang.Override @@ -496,6 +572,8 @@ public com.google.protobuf.ByteString getStartCursor() { public static final int END_CURSOR_FIELD_NUMBER = 8; private com.google.protobuf.ByteString endCursor_; /** + * + * *
    * An ending point for the query results. Query cursors are
    * returned in query result batches and
@@ -504,6 +582,7 @@ public com.google.protobuf.ByteString getStartCursor() {
    * 
* * bytes end_cursor = 8; + * * @return The endCursor. */ @java.lang.Override @@ -514,12 +593,15 @@ public com.google.protobuf.ByteString getEndCursor() { public static final int OFFSET_FIELD_NUMBER = 10; private int offset_; /** + * + * *
    * The number of results to skip. Applies before limit, but after all other
    * constraints. Optional. Must be >= 0 if specified.
    * 
* * int32 offset = 10; + * * @return The offset. */ @java.lang.Override @@ -530,6 +612,8 @@ public int getOffset() { public static final int LIMIT_FIELD_NUMBER = 12; private com.google.protobuf.Int32Value limit_; /** + * + * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -538,6 +622,7 @@ public int getOffset() {
    * 
* * .google.protobuf.Int32Value limit = 12; + * * @return Whether the limit field is set. */ @java.lang.Override @@ -545,6 +630,8 @@ public boolean hasLimit() { return limit_ != null; } /** + * + * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -553,6 +640,7 @@ public boolean hasLimit() {
    * 
* * .google.protobuf.Int32Value limit = 12; + * * @return The limit. */ @java.lang.Override @@ -560,6 +648,8 @@ public com.google.protobuf.Int32Value getLimit() { return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; } /** + * + * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -575,6 +665,7 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -586,8 +677,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 < projection_.size(); i++) {
       output.writeMessage(2, projection_.get(i));
     }
@@ -625,40 +715,31 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < projection_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, projection_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, projection_.get(i));
     }
     for (int i = 0; i < kind_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, kind_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, kind_.get(i));
     }
     if (filter_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getFilter());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFilter());
     }
     for (int i = 0; i < order_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, order_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, order_.get(i));
     }
     for (int i = 0; i < distinctOn_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, distinctOn_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, distinctOn_.get(i));
     }
     if (!startCursor_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(7, startCursor_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, startCursor_);
     }
     if (!endCursor_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(8, endCursor_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, endCursor_);
     }
     if (offset_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(10, offset_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, offset_);
     }
     if (limit_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(12, getLimit());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLimit());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -668,36 +749,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.Query)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.Query other = (com.google.datastore.v1.Query) obj;
 
-    if (!getProjectionList()
-        .equals(other.getProjectionList())) return false;
-    if (!getKindList()
-        .equals(other.getKindList())) return false;
+    if (!getProjectionList().equals(other.getProjectionList())) return false;
+    if (!getKindList().equals(other.getKindList())) return false;
     if (hasFilter() != other.hasFilter()) return false;
     if (hasFilter()) {
-      if (!getFilter()
-          .equals(other.getFilter())) return false;
-    }
-    if (!getOrderList()
-        .equals(other.getOrderList())) return false;
-    if (!getDistinctOnList()
-        .equals(other.getDistinctOnList())) return false;
-    if (!getStartCursor()
-        .equals(other.getStartCursor())) return false;
-    if (!getEndCursor()
-        .equals(other.getEndCursor())) return false;
-    if (getOffset()
-        != other.getOffset()) return false;
+      if (!getFilter().equals(other.getFilter())) return false;
+    }
+    if (!getOrderList().equals(other.getOrderList())) return false;
+    if (!getDistinctOnList().equals(other.getDistinctOnList())) return false;
+    if (!getStartCursor().equals(other.getStartCursor())) return false;
+    if (!getEndCursor().equals(other.getEndCursor())) return false;
+    if (getOffset() != other.getOffset()) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -745,116 +817,123 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.Query parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.Query parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Query parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.v1.Query parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.datastore.v1.Query parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Query parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Query parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.Query parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Query parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Query parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.Query parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Query parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.v1.Query parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.datastore.v1.Query parseFrom(com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.Query parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.Query prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A query for entities.
    * 
* * Protobuf type {@code google.datastore.v1.Query} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.Query) com.google.datastore.v1.QueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Query_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Query_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.datastore.v1.Query.class, com.google.datastore.v1.Query.Builder.class); } @@ -864,20 +943,20 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProjectionFieldBuilder(); getKindFieldBuilder(); getOrderFieldBuilder(); getDistinctOnFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -927,9 +1006,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_Query_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_Query_descriptor; } @java.lang.Override @@ -1007,38 +1086,39 @@ public com.google.datastore.v1.Query 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.datastore.v1.Query) { - return mergeFrom((com.google.datastore.v1.Query)other); + return mergeFrom((com.google.datastore.v1.Query) other); } else { super.mergeFrom(other); return this; @@ -1065,9 +1145,10 @@ public Builder mergeFrom(com.google.datastore.v1.Query other) { projectionBuilder_ = null; projection_ = other.projection_; bitField0_ = (bitField0_ & ~0x00000001); - projectionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProjectionFieldBuilder() : null; + projectionBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProjectionFieldBuilder() + : null; } else { projectionBuilder_.addAllMessages(other.projection_); } @@ -1091,9 +1172,10 @@ public Builder mergeFrom(com.google.datastore.v1.Query other) { kindBuilder_ = null; kind_ = other.kind_; bitField0_ = (bitField0_ & ~0x00000002); - kindBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKindFieldBuilder() : null; + kindBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKindFieldBuilder() + : null; } else { kindBuilder_.addAllMessages(other.kind_); } @@ -1120,9 +1202,10 @@ public Builder mergeFrom(com.google.datastore.v1.Query other) { orderBuilder_ = null; order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000004); - orderBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrderFieldBuilder() : null; + orderBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrderFieldBuilder() + : null; } else { orderBuilder_.addAllMessages(other.order_); } @@ -1146,9 +1229,10 @@ public Builder mergeFrom(com.google.datastore.v1.Query other) { distinctOnBuilder_ = null; distinctOn_ = other.distinctOn_; bitField0_ = (bitField0_ & ~0x00000008); - distinctOnBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDistinctOnFieldBuilder() : null; + distinctOnBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDistinctOnFieldBuilder() + : null; } else { distinctOnBuilder_.addAllMessages(other.distinctOn_); } @@ -1194,21 +1278,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List projection_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProjectionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projection_ = new java.util.ArrayList(projection_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Projection, com.google.datastore.v1.Projection.Builder, com.google.datastore.v1.ProjectionOrBuilder> projectionBuilder_; + com.google.datastore.v1.Projection, + com.google.datastore.v1.Projection.Builder, + com.google.datastore.v1.ProjectionOrBuilder> + projectionBuilder_; /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1223,6 +1314,8 @@ public java.util.List getProjectionList() { } } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1237,6 +1330,8 @@ public int getProjectionCount() { } } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1251,14 +1346,15 @@ public com.google.datastore.v1.Projection getProjection(int index) { } } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public Builder setProjection( - int index, com.google.datastore.v1.Projection value) { + public Builder setProjection(int index, com.google.datastore.v1.Projection value) { if (projectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1272,6 +1368,8 @@ public Builder setProjection( return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1290,6 +1388,8 @@ public Builder setProjection( return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1310,14 +1410,15 @@ public Builder addProjection(com.google.datastore.v1.Projection value) { return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public Builder addProjection( - int index, com.google.datastore.v1.Projection value) { + public Builder addProjection(int index, com.google.datastore.v1.Projection value) { if (projectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1331,14 +1432,15 @@ public Builder addProjection( return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public Builder addProjection( - com.google.datastore.v1.Projection.Builder builderForValue) { + public Builder addProjection(com.google.datastore.v1.Projection.Builder builderForValue) { if (projectionBuilder_ == null) { ensureProjectionIsMutable(); projection_.add(builderForValue.build()); @@ -1349,6 +1451,8 @@ public Builder addProjection( return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1367,6 +1471,8 @@ public Builder addProjection( return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1377,8 +1483,7 @@ public Builder addAllProjection( java.lang.Iterable values) { if (projectionBuilder_ == null) { ensureProjectionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projection_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projection_); onChanged(); } else { projectionBuilder_.addAllMessages(values); @@ -1386,6 +1491,8 @@ public Builder addAllProjection( return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1403,6 +1510,8 @@ public Builder clearProjection() { return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1420,39 +1529,44 @@ public Builder removeProjection(int index) { return this; } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public com.google.datastore.v1.Projection.Builder getProjectionBuilder( - int index) { + public com.google.datastore.v1.Projection.Builder getProjectionBuilder(int index) { return getProjectionFieldBuilder().getBuilder(index); } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder( - int index) { + public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(int index) { if (projectionBuilder_ == null) { - return projection_.get(index); } else { + return projection_.get(index); + } else { return projectionBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public java.util.List - getProjectionOrBuilderList() { + public java.util.List + getProjectionOrBuilderList() { if (projectionBuilder_ != null) { return projectionBuilder_.getMessageOrBuilderList(); } else { @@ -1460,6 +1574,8 @@ public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder( } } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
@@ -1467,60 +1583,71 @@ public com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder( * repeated .google.datastore.v1.Projection projection = 2; */ public com.google.datastore.v1.Projection.Builder addProjectionBuilder() { - return getProjectionFieldBuilder().addBuilder( - com.google.datastore.v1.Projection.getDefaultInstance()); + return getProjectionFieldBuilder() + .addBuilder(com.google.datastore.v1.Projection.getDefaultInstance()); } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public com.google.datastore.v1.Projection.Builder addProjectionBuilder( - int index) { - return getProjectionFieldBuilder().addBuilder( - index, com.google.datastore.v1.Projection.getDefaultInstance()); + public com.google.datastore.v1.Projection.Builder addProjectionBuilder(int index) { + return getProjectionFieldBuilder() + .addBuilder(index, com.google.datastore.v1.Projection.getDefaultInstance()); } /** + * + * *
      * The projection to return. Defaults to returning all properties.
      * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - public java.util.List - getProjectionBuilderList() { + public java.util.List getProjectionBuilderList() { return getProjectionFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Projection, com.google.datastore.v1.Projection.Builder, com.google.datastore.v1.ProjectionOrBuilder> + com.google.datastore.v1.Projection, + com.google.datastore.v1.Projection.Builder, + com.google.datastore.v1.ProjectionOrBuilder> getProjectionFieldBuilder() { if (projectionBuilder_ == null) { - projectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Projection, com.google.datastore.v1.Projection.Builder, com.google.datastore.v1.ProjectionOrBuilder>( - projection_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + projectionBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.Projection, + com.google.datastore.v1.Projection.Builder, + com.google.datastore.v1.ProjectionOrBuilder>( + projection_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); projection_ = null; } return projectionBuilder_; } private java.util.List kind_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureKindIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { kind_ = new java.util.ArrayList(kind_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.KindExpression, com.google.datastore.v1.KindExpression.Builder, com.google.datastore.v1.KindExpressionOrBuilder> kindBuilder_; + com.google.datastore.v1.KindExpression, + com.google.datastore.v1.KindExpression.Builder, + com.google.datastore.v1.KindExpressionOrBuilder> + kindBuilder_; /** + * + * *
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1536,6 +1663,8 @@ public java.util.List getKindList() {
       }
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1551,6 +1680,8 @@ public int getKindCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1566,6 +1697,8 @@ public com.google.datastore.v1.KindExpression getKind(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1573,8 +1706,7 @@ public com.google.datastore.v1.KindExpression getKind(int index) {
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public Builder setKind(
-        int index, com.google.datastore.v1.KindExpression value) {
+    public Builder setKind(int index, com.google.datastore.v1.KindExpression value) {
       if (kindBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1588,6 +1720,8 @@ public Builder setKind(
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1607,6 +1741,8 @@ public Builder setKind(
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1628,6 +1764,8 @@ public Builder addKind(com.google.datastore.v1.KindExpression value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1635,8 +1773,7 @@ public Builder addKind(com.google.datastore.v1.KindExpression value) {
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public Builder addKind(
-        int index, com.google.datastore.v1.KindExpression value) {
+    public Builder addKind(int index, com.google.datastore.v1.KindExpression value) {
       if (kindBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1650,6 +1787,8 @@ public Builder addKind(
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1657,8 +1796,7 @@ public Builder addKind(
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public Builder addKind(
-        com.google.datastore.v1.KindExpression.Builder builderForValue) {
+    public Builder addKind(com.google.datastore.v1.KindExpression.Builder builderForValue) {
       if (kindBuilder_ == null) {
         ensureKindIsMutable();
         kind_.add(builderForValue.build());
@@ -1669,6 +1807,8 @@ public Builder addKind(
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1688,6 +1828,8 @@ public Builder addKind(
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1699,8 +1841,7 @@ public Builder addAllKind(
         java.lang.Iterable values) {
       if (kindBuilder_ == null) {
         ensureKindIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, kind_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kind_);
         onChanged();
       } else {
         kindBuilder_.addAllMessages(values);
@@ -1708,6 +1849,8 @@ public Builder addAllKind(
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1726,6 +1869,8 @@ public Builder clearKind() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1744,6 +1889,8 @@ public Builder removeKind(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1751,11 +1898,12 @@ public Builder removeKind(int index) {
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public com.google.datastore.v1.KindExpression.Builder getKindBuilder(
-        int index) {
+    public com.google.datastore.v1.KindExpression.Builder getKindBuilder(int index) {
       return getKindFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1763,14 +1911,16 @@ public com.google.datastore.v1.KindExpression.Builder getKindBuilder(
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
-        int index) {
+    public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int index) {
       if (kindBuilder_ == null) {
-        return kind_.get(index);  } else {
+        return kind_.get(index);
+      } else {
         return kindBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1778,8 +1928,8 @@ public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public java.util.List 
-         getKindOrBuilderList() {
+    public java.util.List
+        getKindOrBuilderList() {
       if (kindBuilder_ != null) {
         return kindBuilder_.getMessageOrBuilderList();
       } else {
@@ -1787,6 +1937,8 @@ public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1795,10 +1947,12 @@ public com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
     public com.google.datastore.v1.KindExpression.Builder addKindBuilder() {
-      return getKindFieldBuilder().addBuilder(
-          com.google.datastore.v1.KindExpression.getDefaultInstance());
+      return getKindFieldBuilder()
+          .addBuilder(com.google.datastore.v1.KindExpression.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1806,12 +1960,13 @@ public com.google.datastore.v1.KindExpression.Builder addKindBuilder() {
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public com.google.datastore.v1.KindExpression.Builder addKindBuilder(
-        int index) {
-      return getKindFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.KindExpression.getDefaultInstance());
+    public com.google.datastore.v1.KindExpression.Builder addKindBuilder(int index) {
+      return getKindFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.KindExpression.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The kinds to query (if empty, returns entities of all kinds).
      * Currently at most 1 kind may be specified.
@@ -1819,20 +1974,22 @@ public com.google.datastore.v1.KindExpression.Builder addKindBuilder(
      *
      * repeated .google.datastore.v1.KindExpression kind = 3;
      */
-    public java.util.List 
-         getKindBuilderList() {
+    public java.util.List getKindBuilderList() {
       return getKindFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.KindExpression, com.google.datastore.v1.KindExpression.Builder, com.google.datastore.v1.KindExpressionOrBuilder> 
+            com.google.datastore.v1.KindExpression,
+            com.google.datastore.v1.KindExpression.Builder,
+            com.google.datastore.v1.KindExpressionOrBuilder>
         getKindFieldBuilder() {
       if (kindBuilder_ == null) {
-        kindBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.KindExpression, com.google.datastore.v1.KindExpression.Builder, com.google.datastore.v1.KindExpressionOrBuilder>(
-                kind_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        kindBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.KindExpression,
+                com.google.datastore.v1.KindExpression.Builder,
+                com.google.datastore.v1.KindExpressionOrBuilder>(
+                kind_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         kind_ = null;
       }
       return kindBuilder_;
@@ -1840,24 +1997,33 @@ public com.google.datastore.v1.KindExpression.Builder addKindBuilder(
 
     private com.google.datastore.v1.Filter filter_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder> filterBuilder_;
+            com.google.datastore.v1.Filter,
+            com.google.datastore.v1.Filter.Builder,
+            com.google.datastore.v1.FilterOrBuilder>
+        filterBuilder_;
     /**
+     *
+     *
      * 
      * The filter to apply.
      * 
* * .google.datastore.v1.Filter filter = 4; + * * @return Whether the filter field is set. */ public boolean hasFilter() { return filterBuilder_ != null || filter_ != null; } /** + * + * *
      * The filter to apply.
      * 
* * .google.datastore.v1.Filter filter = 4; + * * @return The filter. */ public com.google.datastore.v1.Filter getFilter() { @@ -1868,6 +2034,8 @@ public com.google.datastore.v1.Filter getFilter() { } } /** + * + * *
      * The filter to apply.
      * 
@@ -1888,14 +2056,15 @@ public Builder setFilter(com.google.datastore.v1.Filter value) { return this; } /** + * + * *
      * The filter to apply.
      * 
* * .google.datastore.v1.Filter filter = 4; */ - public Builder setFilter( - com.google.datastore.v1.Filter.Builder builderForValue) { + public Builder setFilter(com.google.datastore.v1.Filter.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); onChanged(); @@ -1906,6 +2075,8 @@ public Builder setFilter( return this; } /** + * + * *
      * The filter to apply.
      * 
@@ -1916,7 +2087,7 @@ public Builder mergeFilter(com.google.datastore.v1.Filter value) { if (filterBuilder_ == null) { if (filter_ != null) { filter_ = - com.google.datastore.v1.Filter.newBuilder(filter_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.Filter.newBuilder(filter_).mergeFrom(value).buildPartial(); } else { filter_ = value; } @@ -1928,6 +2099,8 @@ public Builder mergeFilter(com.google.datastore.v1.Filter value) { return this; } /** + * + * *
      * The filter to apply.
      * 
@@ -1946,6 +2119,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * The filter to apply.
      * 
@@ -1953,11 +2128,13 @@ public Builder clearFilter() { * .google.datastore.v1.Filter filter = 4; */ public com.google.datastore.v1.Filter.Builder getFilterBuilder() { - + onChanged(); return getFilterFieldBuilder().getBuilder(); } /** + * + * *
      * The filter to apply.
      * 
@@ -1968,11 +2145,12 @@ public com.google.datastore.v1.FilterOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { - return filter_ == null ? - com.google.datastore.v1.Filter.getDefaultInstance() : filter_; + return filter_ == null ? com.google.datastore.v1.Filter.getDefaultInstance() : filter_; } } /** + * + * *
      * The filter to apply.
      * 
@@ -1980,32 +2158,41 @@ public com.google.datastore.v1.FilterOrBuilder getFilterOrBuilder() { * .google.datastore.v1.Filter filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder> + com.google.datastore.v1.Filter, + com.google.datastore.v1.Filter.Builder, + com.google.datastore.v1.FilterOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Filter, com.google.datastore.v1.Filter.Builder, com.google.datastore.v1.FilterOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Filter, + com.google.datastore.v1.Filter.Builder, + com.google.datastore.v1.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } private java.util.List order_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOrderIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { order_ = new java.util.ArrayList(order_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.PropertyOrder, com.google.datastore.v1.PropertyOrder.Builder, com.google.datastore.v1.PropertyOrderOrBuilder> orderBuilder_; + com.google.datastore.v1.PropertyOrder, + com.google.datastore.v1.PropertyOrder.Builder, + com.google.datastore.v1.PropertyOrderOrBuilder> + orderBuilder_; /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2020,6 +2207,8 @@ public java.util.List getOrderList() { } } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2034,6 +2223,8 @@ public int getOrderCount() { } } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2048,14 +2239,15 @@ public com.google.datastore.v1.PropertyOrder getOrder(int index) { } } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public Builder setOrder( - int index, com.google.datastore.v1.PropertyOrder value) { + public Builder setOrder(int index, com.google.datastore.v1.PropertyOrder value) { if (orderBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2069,6 +2261,8 @@ public Builder setOrder( return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2087,6 +2281,8 @@ public Builder setOrder( return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2107,14 +2303,15 @@ public Builder addOrder(com.google.datastore.v1.PropertyOrder value) { return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public Builder addOrder( - int index, com.google.datastore.v1.PropertyOrder value) { + public Builder addOrder(int index, com.google.datastore.v1.PropertyOrder value) { if (orderBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2128,14 +2325,15 @@ public Builder addOrder( return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public Builder addOrder( - com.google.datastore.v1.PropertyOrder.Builder builderForValue) { + public Builder addOrder(com.google.datastore.v1.PropertyOrder.Builder builderForValue) { if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.add(builderForValue.build()); @@ -2146,6 +2344,8 @@ public Builder addOrder( return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2164,6 +2364,8 @@ public Builder addOrder( return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2174,8 +2376,7 @@ public Builder addAllOrder( java.lang.Iterable values) { if (orderBuilder_ == null) { ensureOrderIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, order_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, order_); onChanged(); } else { orderBuilder_.addAllMessages(values); @@ -2183,6 +2384,8 @@ public Builder addAllOrder( return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2200,6 +2403,8 @@ public Builder clearOrder() { return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2217,39 +2422,44 @@ public Builder removeOrder(int index) { return this; } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public com.google.datastore.v1.PropertyOrder.Builder getOrderBuilder( - int index) { + public com.google.datastore.v1.PropertyOrder.Builder getOrderBuilder(int index) { return getOrderFieldBuilder().getBuilder(index); } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder( - int index) { + public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int index) { if (orderBuilder_ == null) { - return order_.get(index); } else { + return order_.get(index); + } else { return orderBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public java.util.List - getOrderOrBuilderList() { + public java.util.List + getOrderOrBuilderList() { if (orderBuilder_ != null) { return orderBuilder_.getMessageOrBuilderList(); } else { @@ -2257,6 +2467,8 @@ public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder( } } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
@@ -2264,60 +2476,72 @@ public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder( * repeated .google.datastore.v1.PropertyOrder order = 5; */ public com.google.datastore.v1.PropertyOrder.Builder addOrderBuilder() { - return getOrderFieldBuilder().addBuilder( - com.google.datastore.v1.PropertyOrder.getDefaultInstance()); + return getOrderFieldBuilder() + .addBuilder(com.google.datastore.v1.PropertyOrder.getDefaultInstance()); } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public com.google.datastore.v1.PropertyOrder.Builder addOrderBuilder( - int index) { - return getOrderFieldBuilder().addBuilder( - index, com.google.datastore.v1.PropertyOrder.getDefaultInstance()); + public com.google.datastore.v1.PropertyOrder.Builder addOrderBuilder(int index) { + return getOrderFieldBuilder() + .addBuilder(index, com.google.datastore.v1.PropertyOrder.getDefaultInstance()); } /** + * + * *
      * The order to apply to the query results (if empty, order is unspecified).
      * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - public java.util.List - getOrderBuilderList() { + public java.util.List getOrderBuilderList() { return getOrderFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.PropertyOrder, com.google.datastore.v1.PropertyOrder.Builder, com.google.datastore.v1.PropertyOrderOrBuilder> + com.google.datastore.v1.PropertyOrder, + com.google.datastore.v1.PropertyOrder.Builder, + com.google.datastore.v1.PropertyOrderOrBuilder> getOrderFieldBuilder() { if (orderBuilder_ == null) { - orderBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.PropertyOrder, com.google.datastore.v1.PropertyOrder.Builder, com.google.datastore.v1.PropertyOrderOrBuilder>( - order_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + orderBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.PropertyOrder, + com.google.datastore.v1.PropertyOrder.Builder, + com.google.datastore.v1.PropertyOrderOrBuilder>( + order_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); order_ = null; } return orderBuilder_; } private java.util.List distinctOn_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDistinctOnIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - distinctOn_ = new java.util.ArrayList(distinctOn_); + distinctOn_ = + new java.util.ArrayList(distinctOn_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> distinctOnBuilder_; + com.google.datastore.v1.PropertyReference, + com.google.datastore.v1.PropertyReference.Builder, + com.google.datastore.v1.PropertyReferenceOrBuilder> + distinctOnBuilder_; /** + * + * *
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2334,6 +2558,8 @@ public java.util.List getDistinctOnLi
       }
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2350,6 +2576,8 @@ public int getDistinctOnCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2366,6 +2594,8 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2374,8 +2604,7 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public Builder setDistinctOn(
-        int index, com.google.datastore.v1.PropertyReference value) {
+    public Builder setDistinctOn(int index, com.google.datastore.v1.PropertyReference value) {
       if (distinctOnBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2389,6 +2618,8 @@ public Builder setDistinctOn(
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2409,6 +2640,8 @@ public Builder setDistinctOn(
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2431,6 +2664,8 @@ public Builder addDistinctOn(com.google.datastore.v1.PropertyReference value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2439,8 +2674,7 @@ public Builder addDistinctOn(com.google.datastore.v1.PropertyReference value) {
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public Builder addDistinctOn(
-        int index, com.google.datastore.v1.PropertyReference value) {
+    public Builder addDistinctOn(int index, com.google.datastore.v1.PropertyReference value) {
       if (distinctOnBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2454,6 +2688,8 @@ public Builder addDistinctOn(
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2474,6 +2710,8 @@ public Builder addDistinctOn(
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2494,6 +2732,8 @@ public Builder addDistinctOn(
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2506,8 +2746,7 @@ public Builder addAllDistinctOn(
         java.lang.Iterable values) {
       if (distinctOnBuilder_ == null) {
         ensureDistinctOnIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, distinctOn_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, distinctOn_);
         onChanged();
       } else {
         distinctOnBuilder_.addAllMessages(values);
@@ -2515,6 +2754,8 @@ public Builder addAllDistinctOn(
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2534,6 +2775,8 @@ public Builder clearDistinctOn() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2553,6 +2796,8 @@ public Builder removeDistinctOn(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2561,11 +2806,12 @@ public Builder removeDistinctOn(int index) {
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public com.google.datastore.v1.PropertyReference.Builder getDistinctOnBuilder(
-        int index) {
+    public com.google.datastore.v1.PropertyReference.Builder getDistinctOnBuilder(int index) {
       return getDistinctOnFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2574,14 +2820,16 @@ public com.google.datastore.v1.PropertyReference.Builder getDistinctOnBuilder(
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
-        int index) {
+    public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(int index) {
       if (distinctOnBuilder_ == null) {
-        return distinctOn_.get(index);  } else {
+        return distinctOn_.get(index);
+      } else {
         return distinctOnBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2590,8 +2838,8 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public java.util.List 
-         getDistinctOnOrBuilderList() {
+    public java.util.List
+        getDistinctOnOrBuilderList() {
       if (distinctOnBuilder_ != null) {
         return distinctOnBuilder_.getMessageOrBuilderList();
       } else {
@@ -2599,6 +2847,8 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2608,10 +2858,12 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
     public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder() {
-      return getDistinctOnFieldBuilder().addBuilder(
-          com.google.datastore.v1.PropertyReference.getDefaultInstance());
+      return getDistinctOnFieldBuilder()
+          .addBuilder(com.google.datastore.v1.PropertyReference.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2620,12 +2872,13 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder()
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(
-        int index) {
-      return getDistinctOnFieldBuilder().addBuilder(
-          index, com.google.datastore.v1.PropertyReference.getDefaultInstance());
+    public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(int index) {
+      return getDistinctOnFieldBuilder()
+          .addBuilder(index, com.google.datastore.v1.PropertyReference.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The properties to make distinct. The query results will contain the first
      * result for each distinct combination of values for the given properties
@@ -2634,20 +2887,23 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(
      *
      * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
      */
-    public java.util.List 
-         getDistinctOnBuilderList() {
+    public java.util.List
+        getDistinctOnBuilderList() {
       return getDistinctOnFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder> 
+            com.google.datastore.v1.PropertyReference,
+            com.google.datastore.v1.PropertyReference.Builder,
+            com.google.datastore.v1.PropertyReferenceOrBuilder>
         getDistinctOnFieldBuilder() {
       if (distinctOnBuilder_ == null) {
-        distinctOnBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.datastore.v1.PropertyReference, com.google.datastore.v1.PropertyReference.Builder, com.google.datastore.v1.PropertyReferenceOrBuilder>(
-                distinctOn_,
-                ((bitField0_ & 0x00000008) != 0),
-                getParentForChildren(),
-                isClean());
+        distinctOnBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.datastore.v1.PropertyReference,
+                com.google.datastore.v1.PropertyReference.Builder,
+                com.google.datastore.v1.PropertyReferenceOrBuilder>(
+                distinctOn_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
         distinctOn_ = null;
       }
       return distinctOnBuilder_;
@@ -2655,6 +2911,8 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(
 
     private com.google.protobuf.ByteString startCursor_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * A starting point for the query results. Query cursors are
      * returned in query result batches and
@@ -2663,6 +2921,7 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(
      * 
* * bytes start_cursor = 7; + * * @return The startCursor. */ @java.lang.Override @@ -2670,6 +2929,8 @@ public com.google.protobuf.ByteString getStartCursor() { return startCursor_; } /** + * + * *
      * A starting point for the query results. Query cursors are
      * returned in query result batches and
@@ -2678,19 +2939,22 @@ public com.google.protobuf.ByteString getStartCursor() {
      * 
* * bytes start_cursor = 7; + * * @param value The startCursor to set. * @return This builder for chaining. */ public Builder setStartCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + startCursor_ = value; onChanged(); return this; } /** + * + * *
      * A starting point for the query results. Query cursors are
      * returned in query result batches and
@@ -2699,10 +2963,11 @@ public Builder setStartCursor(com.google.protobuf.ByteString value) {
      * 
* * bytes start_cursor = 7; + * * @return This builder for chaining. */ public Builder clearStartCursor() { - + startCursor_ = getDefaultInstance().getStartCursor(); onChanged(); return this; @@ -2710,6 +2975,8 @@ public Builder clearStartCursor() { private com.google.protobuf.ByteString endCursor_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * An ending point for the query results. Query cursors are
      * returned in query result batches and
@@ -2718,6 +2985,7 @@ public Builder clearStartCursor() {
      * 
* * bytes end_cursor = 8; + * * @return The endCursor. */ @java.lang.Override @@ -2725,6 +2993,8 @@ public com.google.protobuf.ByteString getEndCursor() { return endCursor_; } /** + * + * *
      * An ending point for the query results. Query cursors are
      * returned in query result batches and
@@ -2733,19 +3003,22 @@ public com.google.protobuf.ByteString getEndCursor() {
      * 
* * bytes end_cursor = 8; + * * @param value The endCursor to set. * @return This builder for chaining. */ public Builder setEndCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endCursor_ = value; onChanged(); return this; } /** + * + * *
      * An ending point for the query results. Query cursors are
      * returned in query result batches and
@@ -2754,23 +3027,27 @@ public Builder setEndCursor(com.google.protobuf.ByteString value) {
      * 
* * bytes end_cursor = 8; + * * @return This builder for chaining. */ public Builder clearEndCursor() { - + endCursor_ = getDefaultInstance().getEndCursor(); onChanged(); return this; } - private int offset_ ; + private int offset_; /** + * + * *
      * The number of results to skip. Applies before limit, but after all other
      * constraints. Optional. Must be >= 0 if specified.
      * 
* * int32 offset = 10; + * * @return The offset. */ @java.lang.Override @@ -2778,32 +3055,38 @@ public int getOffset() { return offset_; } /** + * + * *
      * The number of results to skip. Applies before limit, but after all other
      * constraints. Optional. Must be >= 0 if specified.
      * 
* * int32 offset = 10; + * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { - + offset_ = value; onChanged(); return this; } /** + * + * *
      * The number of results to skip. Applies before limit, but after all other
      * constraints. Optional. Must be >= 0 if specified.
      * 
* * int32 offset = 10; + * * @return This builder for chaining. */ public Builder clearOffset() { - + offset_ = 0; onChanged(); return this; @@ -2811,8 +3094,13 @@ public Builder clearOffset() { 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_; /** + * + * *
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2821,12 +3109,15 @@ public Builder clearOffset() {
      * 
* * .google.protobuf.Int32Value limit = 12; + * * @return Whether the limit field is set. */ public boolean hasLimit() { return limitBuilder_ != null || limit_ != null; } /** + * + * *
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2835,6 +3126,7 @@ public boolean hasLimit() {
      * 
* * .google.protobuf.Int32Value limit = 12; + * * @return The limit. */ public com.google.protobuf.Int32Value getLimit() { @@ -2845,6 +3137,8 @@ public com.google.protobuf.Int32Value getLimit() { } } /** + * + * *
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2868,6 +3162,8 @@ public Builder setLimit(com.google.protobuf.Int32Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2877,8 +3173,7 @@ public Builder setLimit(com.google.protobuf.Int32Value value) {
      *
      * .google.protobuf.Int32Value limit = 12;
      */
-    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();
@@ -2889,6 +3184,8 @@ public Builder setLimit(
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2902,7 +3199,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;
         }
@@ -2914,6 +3211,8 @@ public Builder mergeLimit(com.google.protobuf.Int32Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2935,6 +3234,8 @@ public Builder clearLimit() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2945,11 +3246,13 @@ public Builder clearLimit() {
      * .google.protobuf.Int32Value limit = 12;
      */
     public com.google.protobuf.Int32Value.Builder getLimitBuilder() {
-      
+
       onChanged();
       return getLimitFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2963,11 +3266,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_;
       }
     }
     /**
+     *
+     *
      * 
      * The maximum number of results to return. Applies after all other
      * constraints. Optional.
@@ -2978,21 +3282,24 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() {
      * .google.protobuf.Int32Value limit = 12;
      */
     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);
     }
 
@@ -3002,12 +3309,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.Query)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.Query)
   private static final com.google.datastore.v1.Query DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.Query();
   }
@@ -3016,16 +3323,16 @@ public static com.google.datastore.v1.Query getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Query parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Query(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Query parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Query(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3040,6 +3347,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.Query getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
index c2a90a88c..f06b1b616 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
-public interface QueryOrBuilder extends
+public interface QueryOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.Query)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The projection to return. Defaults to returning all properties.
    * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - java.util.List - getProjectionList(); + java.util.List getProjectionList(); /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -25,6 +44,8 @@ public interface QueryOrBuilder extends */ com.google.datastore.v1.Projection getProjection(int index); /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
@@ -33,25 +54,30 @@ public interface QueryOrBuilder extends */ int getProjectionCount(); /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - java.util.List + java.util.List getProjectionOrBuilderList(); /** + * + * *
    * The projection to return. Defaults to returning all properties.
    * 
* * repeated .google.datastore.v1.Projection projection = 2; */ - com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder( - int index); + com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(int index); /** + * + * *
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -59,9 +85,10 @@ com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(
    *
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
-  java.util.List 
-      getKindList();
+  java.util.List getKindList();
   /**
+   *
+   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -71,6 +98,8 @@ com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(
    */
   com.google.datastore.v1.KindExpression getKind(int index);
   /**
+   *
+   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -80,6 +109,8 @@ com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(
    */
   int getKindCount();
   /**
+   *
+   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -87,9 +118,10 @@ com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(
    *
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
-  java.util.List 
-      getKindOrBuilderList();
+  java.util.List getKindOrBuilderList();
   /**
+   *
+   *
    * 
    * The kinds to query (if empty, returns entities of all kinds).
    * Currently at most 1 kind may be specified.
@@ -97,28 +129,35 @@ com.google.datastore.v1.ProjectionOrBuilder getProjectionOrBuilder(
    *
    * repeated .google.datastore.v1.KindExpression kind = 3;
    */
-  com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(
-      int index);
+  com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The filter to apply.
    * 
* * .google.datastore.v1.Filter filter = 4; + * * @return Whether the filter field is set. */ boolean hasFilter(); /** + * + * *
    * The filter to apply.
    * 
* * .google.datastore.v1.Filter filter = 4; + * * @return The filter. */ com.google.datastore.v1.Filter getFilter(); /** + * + * *
    * The filter to apply.
    * 
@@ -128,15 +167,18 @@ com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder( com.google.datastore.v1.FilterOrBuilder getFilterOrBuilder(); /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - java.util.List - getOrderList(); + java.util.List getOrderList(); /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -145,6 +187,8 @@ com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder( */ com.google.datastore.v1.PropertyOrder getOrder(int index); /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
@@ -153,25 +197,29 @@ com.google.datastore.v1.KindExpressionOrBuilder getKindOrBuilder( */ int getOrderCount(); /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - java.util.List - getOrderOrBuilderList(); + java.util.List getOrderOrBuilderList(); /** + * + * *
    * The order to apply to the query results (if empty, order is unspecified).
    * 
* * repeated .google.datastore.v1.PropertyOrder order = 5; */ - com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder( - int index); + com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int index); /** + * + * *
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -180,9 +228,10 @@ com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(
    *
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
-  java.util.List 
-      getDistinctOnList();
+  java.util.List getDistinctOnList();
   /**
+   *
+   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -193,6 +242,8 @@ com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(
    */
   com.google.datastore.v1.PropertyReference getDistinctOn(int index);
   /**
+   *
+   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -203,6 +254,8 @@ com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(
    */
   int getDistinctOnCount();
   /**
+   *
+   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -211,9 +264,11 @@ com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(
    *
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
-  java.util.List 
+  java.util.List
       getDistinctOnOrBuilderList();
   /**
+   *
+   *
    * 
    * The properties to make distinct. The query results will contain the first
    * result for each distinct combination of values for the given properties
@@ -222,10 +277,11 @@ com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(
    *
    * repeated .google.datastore.v1.PropertyReference distinct_on = 6;
    */
-  com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
-      int index);
+  com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A starting point for the query results. Query cursors are
    * returned in query result batches and
@@ -234,11 +290,14 @@ com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
    * 
* * bytes start_cursor = 7; + * * @return The startCursor. */ com.google.protobuf.ByteString getStartCursor(); /** + * + * *
    * An ending point for the query results. Query cursors are
    * returned in query result batches and
@@ -247,22 +306,28 @@ com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
    * 
* * bytes end_cursor = 8; + * * @return The endCursor. */ com.google.protobuf.ByteString getEndCursor(); /** + * + * *
    * The number of results to skip. Applies before limit, but after all other
    * constraints. Optional. Must be >= 0 if specified.
    * 
* * int32 offset = 10; + * * @return The offset. */ int getOffset(); /** + * + * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -271,10 +336,13 @@ com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
    * 
* * .google.protobuf.Int32Value limit = 12; + * * @return Whether the limit field is set. */ boolean hasLimit(); /** + * + * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
@@ -283,10 +351,13 @@ com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder(
    * 
* * .google.protobuf.Int32Value limit = 12; + * * @return The limit. */ com.google.protobuf.Int32Value getLimit(); /** + * + * *
    * The maximum number of results to return. Applies after all other
    * constraints. Optional.
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java
new file mode 100644
index 000000000..d96e6c2d9
--- /dev/null
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java
@@ -0,0 +1,298 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/v1/query.proto
+
+package com.google.datastore.v1;
+
+public final class QueryProto {
+  private QueryProto() {}
+
+  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_datastore_v1_EntityResult_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_EntityResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Query_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Query_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_KindExpression_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_KindExpression_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_PropertyReference_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_PropertyReference_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Projection_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Projection_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_PropertyOrder_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_PropertyOrder_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_Filter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_CompositeFilter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_CompositeFilter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_PropertyFilter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_PropertyFilter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_GqlQuery_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_GqlQuery_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_GqlQuery_NamedBindingsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_GqlQueryParameter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_GqlQueryParameter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_datastore_v1_QueryResultBatch_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n\037google/datastore/v1/query.proto\022\023googl"
+          + "e.datastore.v1\032 google/datastore/v1/enti"
+          + "ty.proto\032\037google/protobuf/timestamp.prot"
+          + "o\032\036google/protobuf/wrappers.proto\"\340\001\n\014En"
+          + "tityResult\022+\n\006entity\030\001 \001(\0132\033.google.data"
+          + "store.v1.Entity\022\017\n\007version\030\004 \001(\003\022/\n\013upda"
+          + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam"
+          + "p\022\016\n\006cursor\030\003 \001(\014\"Q\n\nResultType\022\033\n\027RESUL"
+          + "T_TYPE_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022\016\n\nPROJEC"
+          + "TION\020\002\022\014\n\010KEY_ONLY\020\003\"\362\002\n\005Query\0223\n\nprojec"
+          + "tion\030\002 \003(\0132\037.google.datastore.v1.Project"
+          + "ion\0221\n\004kind\030\003 \003(\0132#.google.datastore.v1."
+          + "KindExpression\022+\n\006filter\030\004 \001(\0132\033.google."
+          + "datastore.v1.Filter\0221\n\005order\030\005 \003(\0132\".goo"
+          + "gle.datastore.v1.PropertyOrder\022;\n\013distin"
+          + "ct_on\030\006 \003(\0132&.google.datastore.v1.Proper"
+          + "tyReference\022\024\n\014start_cursor\030\007 \001(\014\022\022\n\nend"
+          + "_cursor\030\010 \001(\014\022\016\n\006offset\030\n \001(\005\022*\n\005limit\030\014"
+          + " \001(\0132\033.google.protobuf.Int32Value\"\036\n\016Kin"
+          + "dExpression\022\014\n\004name\030\001 \001(\t\"!\n\021PropertyRef"
+          + "erence\022\014\n\004name\030\002 \001(\t\"F\n\nProjection\0228\n\010pr"
+          + "operty\030\001 \001(\0132&.google.datastore.v1.Prope"
+          + "rtyReference\"\321\001\n\rPropertyOrder\0228\n\010proper"
+          + "ty\030\001 \001(\0132&.google.datastore.v1.PropertyR"
+          + "eference\022?\n\tdirection\030\002 \001(\0162,.google.dat"
+          + "astore.v1.PropertyOrder.Direction\"E\n\tDir"
+          + "ection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\r\n\tASC"
+          + "ENDING\020\001\022\016\n\nDESCENDING\020\002\"\231\001\n\006Filter\022@\n\020c"
+          + "omposite_filter\030\001 \001(\0132$.google.datastore"
+          + ".v1.CompositeFilterH\000\022>\n\017property_filter"
+          + "\030\002 \001(\0132#.google.datastore.v1.PropertyFil"
+          + "terH\000B\r\n\013filter_type\"\251\001\n\017CompositeFilter"
+          + "\0229\n\002op\030\001 \001(\0162-.google.datastore.v1.Compo"
+          + "siteFilter.Operator\022,\n\007filters\030\002 \003(\0132\033.g"
+          + "oogle.datastore.v1.Filter\"-\n\010Operator\022\030\n"
+          + "\024OPERATOR_UNSPECIFIED\020\000\022\007\n\003AND\020\001\"\352\002\n\016Pro"
+          + "pertyFilter\0228\n\010property\030\001 \001(\0132&.google.d"
+          + "atastore.v1.PropertyReference\0228\n\002op\030\002 \001("
+          + "\0162,.google.datastore.v1.PropertyFilter.O"
+          + "perator\022)\n\005value\030\003 \001(\0132\032.google.datastor"
+          + "e.v1.Value\"\270\001\n\010Operator\022\030\n\024OPERATOR_UNSP"
+          + "ECIFIED\020\000\022\r\n\tLESS_THAN\020\001\022\026\n\022LESS_THAN_OR"
+          + "_EQUAL\020\002\022\020\n\014GREATER_THAN\020\003\022\031\n\025GREATER_TH"
+          + "AN_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\006\n\002IN\020\006\022\r\n\tNOT_"
+          + "EQUAL\020\t\022\020\n\014HAS_ANCESTOR\020\013\022\n\n\006NOT_IN\020\r\"\245\002"
+          + "\n\010GqlQuery\022\024\n\014query_string\030\001 \001(\t\022\026\n\016allo"
+          + "w_literals\030\002 \001(\010\022H\n\016named_bindings\030\005 \003(\013"
+          + "20.google.datastore.v1.GqlQuery.NamedBin"
+          + "dingsEntry\022C\n\023positional_bindings\030\004 \003(\0132"
+          + "&.google.datastore.v1.GqlQueryParameter\032"
+          + "\\\n\022NamedBindingsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005va"
+          + "lue\030\002 \001(\0132&.google.datastore.v1.GqlQuery"
+          + "Parameter:\0028\001\"d\n\021GqlQueryParameter\022+\n\005va"
+          + "lue\030\002 \001(\0132\032.google.datastore.v1.ValueH\000\022"
+          + "\020\n\006cursor\030\003 \001(\014H\000B\020\n\016parameter_type\"\215\004\n\020"
+          + "QueryResultBatch\022\027\n\017skipped_results\030\006 \001("
+          + "\005\022\026\n\016skipped_cursor\030\003 \001(\014\022H\n\022entity_resu"
+          + "lt_type\030\001 \001(\0162,.google.datastore.v1.Enti"
+          + "tyResult.ResultType\0229\n\016entity_results\030\002 "
+          + "\003(\0132!.google.datastore.v1.EntityResult\022\022"
+          + "\n\nend_cursor\030\004 \001(\014\022K\n\014more_results\030\005 \001(\016"
+          + "25.google.datastore.v1.QueryResultBatch."
+          + "MoreResultsType\022\030\n\020snapshot_version\030\007 \001("
+          + "\003\022-\n\tread_time\030\010 \001(\0132\032.google.protobuf.T"
+          + "imestamp\"\230\001\n\017MoreResultsType\022!\n\035MORE_RES"
+          + "ULTS_TYPE_UNSPECIFIED\020\000\022\020\n\014NOT_FINISHED\020"
+          + "\001\022\034\n\030MORE_RESULTS_AFTER_LIMIT\020\002\022\035\n\031MORE_"
+          + "RESULTS_AFTER_CURSOR\020\004\022\023\n\017NO_MORE_RESULT"
+          + "S\020\003B\274\001\n\027com.google.datastore.v1B\nQueryPr"
+          + "otoP\001Z
  * A batch of results produced by a query.
  * 
* * Protobuf type {@code google.datastore.v1.QueryResultBatch} */ -public final class QueryResultBatch extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryResultBatch extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.QueryResultBatch) QueryResultBatchOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryResultBatch.newBuilder() to construct. private QueryResultBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryResultBatch() { skippedCursor_ = com.google.protobuf.ByteString.EMPTY; entityResultType_ = 0; @@ -29,16 +47,15 @@ private QueryResultBatch() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryResultBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private QueryResultBatch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,67 +75,73 @@ private QueryResultBatch( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - entityResultType_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entityResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + entityResultType_ = rawValue; + break; } - entityResults_.add( - input.readMessage(com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); - break; - } - case 26: { - - skippedCursor_ = input.readBytes(); - break; - } - case 34: { - - endCursor_ = input.readBytes(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - moreResults_ = rawValue; - break; - } - case 48: { - - skippedResults_ = input.readInt32(); - break; - } - case 56: { - - snapshotVersion_ = input.readInt64(); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entityResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entityResults_.add( + input.readMessage( + com.google.datastore.v1.EntityResult.parser(), extensionRegistry)); + break; + } + case 26: + { + skippedCursor_ = input.readBytes(); + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + endCursor_ = input.readBytes(); + break; } + case 40: + { + int rawValue = input.readEnum(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + moreResults_ = rawValue; + break; + } + case 48: + { + skippedResults_ = input.readInt32(); + break; + } + case 56: + { + snapshotVersion_ = input.readInt64(); + break; + } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -126,8 +149,7 @@ private QueryResultBatch( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entityResults_ = java.util.Collections.unmodifiableList(entityResults_); @@ -136,29 +158,35 @@ private QueryResultBatch( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_QueryResultBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.QueryResultBatch.class, com.google.datastore.v1.QueryResultBatch.Builder.class); + com.google.datastore.v1.QueryResultBatch.class, + com.google.datastore.v1.QueryResultBatch.Builder.class); } /** + * + * *
    * The possible values for the `more_results` field.
    * 
* * Protobuf enum {@code google.datastore.v1.QueryResultBatch.MoreResultsType} */ - public enum MoreResultsType - implements com.google.protobuf.ProtocolMessageEnum { + public enum MoreResultsType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified. This value is never used.
      * 
@@ -167,6 +195,8 @@ public enum MoreResultsType */ MORE_RESULTS_TYPE_UNSPECIFIED(0), /** + * + * *
      * There may be additional batches to fetch from this query.
      * 
@@ -175,6 +205,8 @@ public enum MoreResultsType */ NOT_FINISHED(1), /** + * + * *
      * The query is finished, but there may be more results after the limit.
      * 
@@ -183,6 +215,8 @@ public enum MoreResultsType */ MORE_RESULTS_AFTER_LIMIT(2), /** + * + * *
      * The query is finished, but there may be more results after the end
      * cursor.
@@ -192,6 +226,8 @@ public enum MoreResultsType
      */
     MORE_RESULTS_AFTER_CURSOR(4),
     /**
+     *
+     *
      * 
      * The query is finished, and there are no more results.
      * 
@@ -203,6 +239,8 @@ public enum MoreResultsType ; /** + * + * *
      * Unspecified. This value is never used.
      * 
@@ -211,6 +249,8 @@ public enum MoreResultsType */ public static final int MORE_RESULTS_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * There may be additional batches to fetch from this query.
      * 
@@ -219,6 +259,8 @@ public enum MoreResultsType */ public static final int NOT_FINISHED_VALUE = 1; /** + * + * *
      * The query is finished, but there may be more results after the limit.
      * 
@@ -227,6 +269,8 @@ public enum MoreResultsType */ public static final int MORE_RESULTS_AFTER_LIMIT_VALUE = 2; /** + * + * *
      * The query is finished, but there may be more results after the end
      * cursor.
@@ -236,6 +280,8 @@ public enum MoreResultsType
      */
     public static final int MORE_RESULTS_AFTER_CURSOR_VALUE = 4;
     /**
+     *
+     *
      * 
      * The query is finished, and there are no more results.
      * 
@@ -244,7 +290,6 @@ public enum MoreResultsType */ public static final int NO_MORE_RESULTS_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -269,41 +314,46 @@ public static MoreResultsType valueOf(int value) { */ public static MoreResultsType forNumber(int value) { switch (value) { - case 0: return MORE_RESULTS_TYPE_UNSPECIFIED; - case 1: return NOT_FINISHED; - case 2: return MORE_RESULTS_AFTER_LIMIT; - case 4: return MORE_RESULTS_AFTER_CURSOR; - case 3: return NO_MORE_RESULTS; - default: return null; + case 0: + return MORE_RESULTS_TYPE_UNSPECIFIED; + case 1: + return NOT_FINISHED; + case 2: + return MORE_RESULTS_AFTER_LIMIT; + case 4: + return MORE_RESULTS_AFTER_CURSOR; + case 3: + return NO_MORE_RESULTS; + 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< - MoreResultsType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MoreResultsType findValueByNumber(int number) { - return MoreResultsType.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 MoreResultsType findValueByNumber(int number) { + return MoreResultsType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.v1.QueryResultBatch.getDescriptor().getEnumTypes().get(0); } @@ -312,8 +362,7 @@ public MoreResultsType findValueByNumber(int number) { public static MoreResultsType 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; @@ -333,11 +382,14 @@ private MoreResultsType(int value) { public static final int SKIPPED_RESULTS_FIELD_NUMBER = 6; private int skippedResults_; /** + * + * *
    * The number of results skipped, typically because of an offset.
    * 
* * int32 skipped_results = 6; + * * @return The skippedResults. */ @java.lang.Override @@ -348,12 +400,15 @@ public int getSkippedResults() { public static final int SKIPPED_CURSOR_FIELD_NUMBER = 3; private com.google.protobuf.ByteString skippedCursor_; /** + * + * *
    * A cursor that points to the position after the last skipped result.
    * Will be set when `skipped_results` != 0.
    * 
* * bytes skipped_cursor = 3; + * * @return The skippedCursor. */ @java.lang.Override @@ -364,33 +419,44 @@ public com.google.protobuf.ByteString getSkippedCursor() { public static final int ENTITY_RESULT_TYPE_FIELD_NUMBER = 1; private int entityResultType_; /** + * + * *
    * The result type for every entity in `entity_results`.
    * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @return The enum numeric value on the wire for entityResultType. */ - @java.lang.Override public int getEntityResultTypeValue() { + @java.lang.Override + public int getEntityResultTypeValue() { return entityResultType_; } /** + * + * *
    * The result type for every entity in `entity_results`.
    * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @return The entityResultType. */ - @java.lang.Override public com.google.datastore.v1.EntityResult.ResultType getEntityResultType() { + @java.lang.Override + public com.google.datastore.v1.EntityResult.ResultType getEntityResultType() { @SuppressWarnings("deprecation") - com.google.datastore.v1.EntityResult.ResultType result = com.google.datastore.v1.EntityResult.ResultType.valueOf(entityResultType_); + com.google.datastore.v1.EntityResult.ResultType result = + com.google.datastore.v1.EntityResult.ResultType.valueOf(entityResultType_); return result == null ? com.google.datastore.v1.EntityResult.ResultType.UNRECOGNIZED : result; } public static final int ENTITY_RESULTS_FIELD_NUMBER = 2; private java.util.List entityResults_; /** + * + * *
    * The results for this batch.
    * 
@@ -402,6 +468,8 @@ public java.util.List getEntityResultsList return entityResults_; } /** + * + * *
    * The results for this batch.
    * 
@@ -409,11 +477,13 @@ public java.util.List getEntityResultsList * repeated .google.datastore.v1.EntityResult entity_results = 2; */ @java.lang.Override - public java.util.List + public java.util.List getEntityResultsOrBuilderList() { return entityResults_; } /** + * + * *
    * The results for this batch.
    * 
@@ -425,6 +495,8 @@ public int getEntityResultsCount() { return entityResults_.size(); } /** + * + * *
    * The results for this batch.
    * 
@@ -436,6 +508,8 @@ public com.google.datastore.v1.EntityResult getEntityResults(int index) { return entityResults_.get(index); } /** + * + * *
    * The results for this batch.
    * 
@@ -443,19 +517,21 @@ public com.google.datastore.v1.EntityResult getEntityResults(int index) { * repeated .google.datastore.v1.EntityResult entity_results = 2; */ @java.lang.Override - public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder( - int index) { + public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(int index) { return entityResults_.get(index); } public static final int END_CURSOR_FIELD_NUMBER = 4; private com.google.protobuf.ByteString endCursor_; /** + * + * *
    * A cursor that points to the position after the last result in the batch.
    * 
* * bytes end_cursor = 4; + * * @return The endCursor. */ @java.lang.Override @@ -466,33 +542,46 @@ public com.google.protobuf.ByteString getEndCursor() { public static final int MORE_RESULTS_FIELD_NUMBER = 5; private int moreResults_; /** + * + * *
    * The state of the query after the current batch.
    * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @return The enum numeric value on the wire for moreResults. */ - @java.lang.Override public int getMoreResultsValue() { + @java.lang.Override + public int getMoreResultsValue() { return moreResults_; } /** + * + * *
    * The state of the query after the current batch.
    * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @return The moreResults. */ - @java.lang.Override public com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults() { + @java.lang.Override + public com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults() { @SuppressWarnings("deprecation") - com.google.datastore.v1.QueryResultBatch.MoreResultsType result = com.google.datastore.v1.QueryResultBatch.MoreResultsType.valueOf(moreResults_); - return result == null ? com.google.datastore.v1.QueryResultBatch.MoreResultsType.UNRECOGNIZED : result; + com.google.datastore.v1.QueryResultBatch.MoreResultsType result = + com.google.datastore.v1.QueryResultBatch.MoreResultsType.valueOf(moreResults_); + return result == null + ? com.google.datastore.v1.QueryResultBatch.MoreResultsType.UNRECOGNIZED + : result; } public static final int SNAPSHOT_VERSION_FIELD_NUMBER = 7; private long snapshotVersion_; /** + * + * *
    * The version number of the snapshot this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -505,6 +594,7 @@ public com.google.protobuf.ByteString getEndCursor() {
    * 
* * int64 snapshot_version = 7; + * * @return The snapshotVersion. */ @java.lang.Override @@ -515,6 +605,8 @@ public long getSnapshotVersion() { public static final int READ_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -528,6 +620,7 @@ public long getSnapshotVersion() {
    * 
* * .google.protobuf.Timestamp read_time = 8; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -535,6 +628,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -548,6 +643,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 8; + * * @return The readTime. */ @java.lang.Override @@ -555,6 +651,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -575,6 +673,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -586,9 +685,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    if (entityResultType_ != com.google.datastore.v1.EntityResult.ResultType.RESULT_TYPE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    if (entityResultType_
+        != com.google.datastore.v1.EntityResult.ResultType.RESULT_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, entityResultType_);
     }
     for (int i = 0; i < entityResults_.size(); i++) {
@@ -600,7 +699,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!endCursor_.isEmpty()) {
       output.writeBytes(4, endCursor_);
     }
-    if (moreResults_ != com.google.datastore.v1.QueryResultBatch.MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED.getNumber()) {
+    if (moreResults_
+        != com.google.datastore.v1.QueryResultBatch.MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(5, moreResults_);
     }
     if (skippedResults_ != 0) {
@@ -621,37 +722,32 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (entityResultType_ != com.google.datastore.v1.EntityResult.ResultType.RESULT_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, entityResultType_);
+    if (entityResultType_
+        != com.google.datastore.v1.EntityResult.ResultType.RESULT_TYPE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, entityResultType_);
     }
     for (int i = 0; i < entityResults_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, entityResults_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, entityResults_.get(i));
     }
     if (!skippedCursor_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(3, skippedCursor_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, skippedCursor_);
     }
     if (!endCursor_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(4, endCursor_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, endCursor_);
     }
-    if (moreResults_ != com.google.datastore.v1.QueryResultBatch.MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(5, moreResults_);
+    if (moreResults_
+        != com.google.datastore.v1.QueryResultBatch.MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, moreResults_);
     }
     if (skippedResults_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(6, skippedResults_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skippedResults_);
     }
     if (snapshotVersion_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(7, snapshotVersion_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, snapshotVersion_);
     }
     if (readTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getReadTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -661,29 +757,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.datastore.v1.QueryResultBatch)) {
       return super.equals(obj);
     }
     com.google.datastore.v1.QueryResultBatch other = (com.google.datastore.v1.QueryResultBatch) obj;
 
-    if (getSkippedResults()
-        != other.getSkippedResults()) return false;
-    if (!getSkippedCursor()
-        .equals(other.getSkippedCursor())) return false;
+    if (getSkippedResults() != other.getSkippedResults()) return false;
+    if (!getSkippedCursor().equals(other.getSkippedCursor())) return false;
     if (entityResultType_ != other.entityResultType_) return false;
-    if (!getEntityResultsList()
-        .equals(other.getEntityResultsList())) return false;
-    if (!getEndCursor()
-        .equals(other.getEndCursor())) return false;
+    if (!getEntityResultsList().equals(other.getEntityResultsList())) return false;
+    if (!getEndCursor().equals(other.getEndCursor())) return false;
     if (moreResults_ != other.moreResults_) return false;
-    if (getSnapshotVersion()
-        != other.getSnapshotVersion()) return false;
+    if (getSnapshotVersion() != other.getSnapshotVersion()) return false;
     if (hasReadTime() != other.hasReadTime()) return false;
     if (hasReadTime()) {
-      if (!getReadTime()
-          .equals(other.getReadTime())) return false;
+      if (!getReadTime().equals(other.getReadTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -711,8 +801,7 @@ public int hashCode() {
     hash = (37 * hash) + MORE_RESULTS_FIELD_NUMBER;
     hash = (53 * hash) + moreResults_;
     hash = (37 * hash) + SNAPSHOT_VERSION_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getSnapshotVersion());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSnapshotVersion());
     if (hasReadTime()) {
       hash = (37 * hash) + READ_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getReadTime().hashCode();
@@ -722,118 +811,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.QueryResultBatch parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.v1.QueryResultBatch parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.datastore.v1.QueryResultBatch parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.QueryResultBatch parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.QueryResultBatch prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A batch of results produced by a query.
    * 
* * Protobuf type {@code google.datastore.v1.QueryResultBatch} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.QueryResultBatch) com.google.datastore.v1.QueryResultBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_QueryResultBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_QueryResultBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.QueryResultBatch.class, com.google.datastore.v1.QueryResultBatch.Builder.class); + com.google.datastore.v1.QueryResultBatch.class, + com.google.datastore.v1.QueryResultBatch.Builder.class); } // Construct using com.google.datastore.v1.QueryResultBatch.newBuilder() @@ -841,17 +939,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEntityResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -883,9 +981,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.QueryProto.internal_static_google_datastore_v1_QueryResultBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.QueryProto + .internal_static_google_datastore_v1_QueryResultBatch_descriptor; } @java.lang.Override @@ -904,7 +1002,8 @@ public com.google.datastore.v1.QueryResultBatch build() { @java.lang.Override public com.google.datastore.v1.QueryResultBatch buildPartial() { - com.google.datastore.v1.QueryResultBatch result = new com.google.datastore.v1.QueryResultBatch(this); + com.google.datastore.v1.QueryResultBatch result = + new com.google.datastore.v1.QueryResultBatch(this); int from_bitField0_ = bitField0_; result.skippedResults_ = skippedResults_; result.skippedCursor_ = skippedCursor_; @@ -934,38 +1033,39 @@ public com.google.datastore.v1.QueryResultBatch 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.datastore.v1.QueryResultBatch) { - return mergeFrom((com.google.datastore.v1.QueryResultBatch)other); + return mergeFrom((com.google.datastore.v1.QueryResultBatch) other); } else { super.mergeFrom(other); return this; @@ -1001,9 +1101,10 @@ public Builder mergeFrom(com.google.datastore.v1.QueryResultBatch other) { entityResultsBuilder_ = null; entityResults_ = other.entityResults_; bitField0_ = (bitField0_ & ~0x00000001); - entityResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntityResultsFieldBuilder() : null; + entityResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntityResultsFieldBuilder() + : null; } else { entityResultsBuilder_.addAllMessages(other.entityResults_); } @@ -1049,15 +1150,19 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private int skippedResults_ ; + private int skippedResults_; /** + * + * *
      * The number of results skipped, typically because of an offset.
      * 
* * int32 skipped_results = 6; + * * @return The skippedResults. */ @java.lang.Override @@ -1065,30 +1170,36 @@ public int getSkippedResults() { return skippedResults_; } /** + * + * *
      * The number of results skipped, typically because of an offset.
      * 
* * int32 skipped_results = 6; + * * @param value The skippedResults to set. * @return This builder for chaining. */ public Builder setSkippedResults(int value) { - + skippedResults_ = value; onChanged(); return this; } /** + * + * *
      * The number of results skipped, typically because of an offset.
      * 
* * int32 skipped_results = 6; + * * @return This builder for chaining. */ public Builder clearSkippedResults() { - + skippedResults_ = 0; onChanged(); return this; @@ -1096,12 +1207,15 @@ public Builder clearSkippedResults() { private com.google.protobuf.ByteString skippedCursor_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * A cursor that points to the position after the last skipped result.
      * Will be set when `skipped_results` != 0.
      * 
* * bytes skipped_cursor = 3; + * * @return The skippedCursor. */ @java.lang.Override @@ -1109,35 +1223,41 @@ public com.google.protobuf.ByteString getSkippedCursor() { return skippedCursor_; } /** + * + * *
      * A cursor that points to the position after the last skipped result.
      * Will be set when `skipped_results` != 0.
      * 
* * bytes skipped_cursor = 3; + * * @param value The skippedCursor to set. * @return This builder for chaining. */ public Builder setSkippedCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + skippedCursor_ = value; onChanged(); return this; } /** + * + * *
      * A cursor that points to the position after the last skipped result.
      * Will be set when `skipped_results` != 0.
      * 
* * bytes skipped_cursor = 3; + * * @return This builder for chaining. */ public Builder clearSkippedCursor() { - + skippedCursor_ = getDefaultInstance().getSkippedCursor(); onChanged(); return this; @@ -1145,51 +1265,65 @@ public Builder clearSkippedCursor() { private int entityResultType_ = 0; /** + * + * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @return The enum numeric value on the wire for entityResultType. */ - @java.lang.Override public int getEntityResultTypeValue() { + @java.lang.Override + public int getEntityResultTypeValue() { return entityResultType_; } /** + * + * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @param value The enum numeric value on the wire for entityResultType to set. * @return This builder for chaining. */ public Builder setEntityResultTypeValue(int value) { - + entityResultType_ = value; onChanged(); return this; } /** + * + * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @return The entityResultType. */ @java.lang.Override public com.google.datastore.v1.EntityResult.ResultType getEntityResultType() { @SuppressWarnings("deprecation") - com.google.datastore.v1.EntityResult.ResultType result = com.google.datastore.v1.EntityResult.ResultType.valueOf(entityResultType_); + com.google.datastore.v1.EntityResult.ResultType result = + com.google.datastore.v1.EntityResult.ResultType.valueOf(entityResultType_); return result == null ? com.google.datastore.v1.EntityResult.ResultType.UNRECOGNIZED : result; } /** + * + * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @param value The entityResultType to set. * @return This builder for chaining. */ @@ -1197,39 +1331,49 @@ public Builder setEntityResultType(com.google.datastore.v1.EntityResult.ResultTy if (value == null) { throw new NullPointerException(); } - + entityResultType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The result type for every entity in `entity_results`.
      * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @return This builder for chaining. */ public Builder clearEntityResultType() { - + entityResultType_ = 0; onChanged(); return this; } private java.util.List entityResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEntityResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entityResults_ = new java.util.ArrayList(entityResults_); + entityResults_ = + new java.util.ArrayList(entityResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> entityResultsBuilder_; + com.google.datastore.v1.EntityResult, + com.google.datastore.v1.EntityResult.Builder, + com.google.datastore.v1.EntityResultOrBuilder> + entityResultsBuilder_; /** + * + * *
      * The results for this batch.
      * 
@@ -1244,6 +1388,8 @@ public java.util.List getEntityResultsList } } /** + * + * *
      * The results for this batch.
      * 
@@ -1258,6 +1404,8 @@ public int getEntityResultsCount() { } } /** + * + * *
      * The results for this batch.
      * 
@@ -1272,14 +1420,15 @@ public com.google.datastore.v1.EntityResult getEntityResults(int index) { } } /** + * + * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public Builder setEntityResults( - int index, com.google.datastore.v1.EntityResult value) { + public Builder setEntityResults(int index, com.google.datastore.v1.EntityResult value) { if (entityResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1293,6 +1442,8 @@ public Builder setEntityResults( return this; } /** + * + * *
      * The results for this batch.
      * 
@@ -1311,6 +1462,8 @@ public Builder setEntityResults( return this; } /** + * + * *
      * The results for this batch.
      * 
@@ -1331,14 +1484,15 @@ public Builder addEntityResults(com.google.datastore.v1.EntityResult value) { return this; } /** + * + * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public Builder addEntityResults( - int index, com.google.datastore.v1.EntityResult value) { + public Builder addEntityResults(int index, com.google.datastore.v1.EntityResult value) { if (entityResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1352,14 +1506,15 @@ public Builder addEntityResults( return this; } /** + * + * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public Builder addEntityResults( - com.google.datastore.v1.EntityResult.Builder builderForValue) { + public Builder addEntityResults(com.google.datastore.v1.EntityResult.Builder builderForValue) { if (entityResultsBuilder_ == null) { ensureEntityResultsIsMutable(); entityResults_.add(builderForValue.build()); @@ -1370,6 +1525,8 @@ public Builder addEntityResults( return this; } /** + * + * *
      * The results for this batch.
      * 
@@ -1388,6 +1545,8 @@ public Builder addEntityResults( return this; } /** + * + * *
      * The results for this batch.
      * 
@@ -1398,8 +1557,7 @@ public Builder addAllEntityResults( java.lang.Iterable values) { if (entityResultsBuilder_ == null) { ensureEntityResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entityResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityResults_); onChanged(); } else { entityResultsBuilder_.addAllMessages(values); @@ -1407,6 +1565,8 @@ public Builder addAllEntityResults( return this; } /** + * + * *
      * The results for this batch.
      * 
@@ -1424,6 +1584,8 @@ public Builder clearEntityResults() { return this; } /** + * + * *
      * The results for this batch.
      * 
@@ -1441,39 +1603,44 @@ public Builder removeEntityResults(int index) { return this; } /** + * + * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public com.google.datastore.v1.EntityResult.Builder getEntityResultsBuilder( - int index) { + public com.google.datastore.v1.EntityResult.Builder getEntityResultsBuilder(int index) { return getEntityResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder( - int index) { + public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(int index) { if (entityResultsBuilder_ == null) { - return entityResults_.get(index); } else { + return entityResults_.get(index); + } else { return entityResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public java.util.List - getEntityResultsOrBuilderList() { + public java.util.List + getEntityResultsOrBuilderList() { if (entityResultsBuilder_ != null) { return entityResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1481,6 +1648,8 @@ public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder( } } /** + * + * *
      * The results for this batch.
      * 
@@ -1488,38 +1657,47 @@ public com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder( * repeated .google.datastore.v1.EntityResult entity_results = 2; */ public com.google.datastore.v1.EntityResult.Builder addEntityResultsBuilder() { - return getEntityResultsFieldBuilder().addBuilder( - com.google.datastore.v1.EntityResult.getDefaultInstance()); + return getEntityResultsFieldBuilder() + .addBuilder(com.google.datastore.v1.EntityResult.getDefaultInstance()); } /** + * + * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public com.google.datastore.v1.EntityResult.Builder addEntityResultsBuilder( - int index) { - return getEntityResultsFieldBuilder().addBuilder( - index, com.google.datastore.v1.EntityResult.getDefaultInstance()); + public com.google.datastore.v1.EntityResult.Builder addEntityResultsBuilder(int index) { + return getEntityResultsFieldBuilder() + .addBuilder(index, com.google.datastore.v1.EntityResult.getDefaultInstance()); } /** + * + * *
      * The results for this batch.
      * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - public java.util.List - getEntityResultsBuilderList() { + public java.util.List + getEntityResultsBuilderList() { return getEntityResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder> + com.google.datastore.v1.EntityResult, + com.google.datastore.v1.EntityResult.Builder, + com.google.datastore.v1.EntityResultOrBuilder> getEntityResultsFieldBuilder() { if (entityResultsBuilder_ == null) { - entityResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.EntityResult, com.google.datastore.v1.EntityResult.Builder, com.google.datastore.v1.EntityResultOrBuilder>( + entityResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.EntityResult, + com.google.datastore.v1.EntityResult.Builder, + com.google.datastore.v1.EntityResultOrBuilder>( entityResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1531,11 +1709,14 @@ public com.google.datastore.v1.EntityResult.Builder addEntityResultsBuilder( private com.google.protobuf.ByteString endCursor_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * A cursor that points to the position after the last result in the batch.
      * 
* * bytes end_cursor = 4; + * * @return The endCursor. */ @java.lang.Override @@ -1543,33 +1724,39 @@ public com.google.protobuf.ByteString getEndCursor() { return endCursor_; } /** + * + * *
      * A cursor that points to the position after the last result in the batch.
      * 
* * bytes end_cursor = 4; + * * @param value The endCursor to set. * @return This builder for chaining. */ public Builder setEndCursor(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endCursor_ = value; onChanged(); return this; } /** + * + * *
      * A cursor that points to the position after the last result in the batch.
      * 
* * bytes end_cursor = 4; + * * @return This builder for chaining. */ public Builder clearEndCursor() { - + endCursor_ = getDefaultInstance().getEndCursor(); onChanged(); return this; @@ -1577,51 +1764,67 @@ public Builder clearEndCursor() { private int moreResults_ = 0; /** + * + * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @return The enum numeric value on the wire for moreResults. */ - @java.lang.Override public int getMoreResultsValue() { + @java.lang.Override + public int getMoreResultsValue() { return moreResults_; } /** + * + * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @param value The enum numeric value on the wire for moreResults to set. * @return This builder for chaining. */ public Builder setMoreResultsValue(int value) { - + moreResults_ = value; onChanged(); return this; } /** + * + * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @return The moreResults. */ @java.lang.Override public com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults() { @SuppressWarnings("deprecation") - com.google.datastore.v1.QueryResultBatch.MoreResultsType result = com.google.datastore.v1.QueryResultBatch.MoreResultsType.valueOf(moreResults_); - return result == null ? com.google.datastore.v1.QueryResultBatch.MoreResultsType.UNRECOGNIZED : result; + com.google.datastore.v1.QueryResultBatch.MoreResultsType result = + com.google.datastore.v1.QueryResultBatch.MoreResultsType.valueOf(moreResults_); + return result == null + ? com.google.datastore.v1.QueryResultBatch.MoreResultsType.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @param value The moreResults to set. * @return This builder for chaining. */ @@ -1629,28 +1832,33 @@ public Builder setMoreResults(com.google.datastore.v1.QueryResultBatch.MoreResul if (value == null) { throw new NullPointerException(); } - + moreResults_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the query after the current batch.
      * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @return This builder for chaining. */ public Builder clearMoreResults() { - + moreResults_ = 0; onChanged(); return this; } - private long snapshotVersion_ ; + private long snapshotVersion_; /** + * + * *
      * The version number of the snapshot this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1663,6 +1871,7 @@ public Builder clearMoreResults() {
      * 
* * int64 snapshot_version = 7; + * * @return The snapshotVersion. */ @java.lang.Override @@ -1670,6 +1879,8 @@ public long getSnapshotVersion() { return snapshotVersion_; } /** + * + * *
      * The version number of the snapshot this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1682,16 +1893,19 @@ public long getSnapshotVersion() {
      * 
* * int64 snapshot_version = 7; + * * @param value The snapshotVersion to set. * @return This builder for chaining. */ public Builder setSnapshotVersion(long value) { - + snapshotVersion_ = value; onChanged(); return this; } /** + * + * *
      * The version number of the snapshot this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1704,10 +1918,11 @@ public Builder setSnapshotVersion(long value) {
      * 
* * int64 snapshot_version = 7; + * * @return This builder for chaining. */ public Builder clearSnapshotVersion() { - + snapshotVersion_ = 0L; onChanged(); return this; @@ -1715,8 +1930,13 @@ public Builder clearSnapshotVersion() { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1730,12 +1950,15 @@ public Builder clearSnapshotVersion() {
      * 
* * .google.protobuf.Timestamp read_time = 8; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1749,6 +1972,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 8; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1759,6 +1983,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1787,6 +2013,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1801,8 +2029,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 8;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1813,6 +2040,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1831,7 +2060,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1843,6 +2072,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1869,6 +2100,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1884,11 +2117,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 8;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1907,11 +2142,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Read timestamp this batch was returned from.
      * This applies to the range of results from the query's `start_cursor` (or
@@ -1927,21 +2163,24 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 8;
      */
     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>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1951,12 +2190,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.QueryResultBatch)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.QueryResultBatch)
   private static final com.google.datastore.v1.QueryResultBatch DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.QueryResultBatch();
   }
@@ -1965,16 +2204,16 @@ public static com.google.datastore.v1.QueryResultBatch getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public QueryResultBatch parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new QueryResultBatch(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public QueryResultBatch parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new QueryResultBatch(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1989,6 +2228,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.QueryResultBatch getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
index 9354ca43e..f297d1da6 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryResultBatchOrBuilder.java
@@ -1,62 +1,93 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/query.proto
 
 package com.google.datastore.v1;
 
-public interface QueryResultBatchOrBuilder extends
+public interface QueryResultBatchOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.QueryResultBatch)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The number of results skipped, typically because of an offset.
    * 
* * int32 skipped_results = 6; + * * @return The skippedResults. */ int getSkippedResults(); /** + * + * *
    * A cursor that points to the position after the last skipped result.
    * Will be set when `skipped_results` != 0.
    * 
* * bytes skipped_cursor = 3; + * * @return The skippedCursor. */ com.google.protobuf.ByteString getSkippedCursor(); /** + * + * *
    * The result type for every entity in `entity_results`.
    * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @return The enum numeric value on the wire for entityResultType. */ int getEntityResultTypeValue(); /** + * + * *
    * The result type for every entity in `entity_results`.
    * 
* * .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; + * * @return The entityResultType. */ com.google.datastore.v1.EntityResult.ResultType getEntityResultType(); /** + * + * *
    * The results for this batch.
    * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - java.util.List - getEntityResultsList(); + java.util.List getEntityResultsList(); /** + * + * *
    * The results for this batch.
    * 
@@ -65,6 +96,8 @@ public interface QueryResultBatchOrBuilder extends */ com.google.datastore.v1.EntityResult getEntityResults(int index); /** + * + * *
    * The results for this batch.
    * 
@@ -73,54 +106,68 @@ public interface QueryResultBatchOrBuilder extends */ int getEntityResultsCount(); /** + * + * *
    * The results for this batch.
    * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - java.util.List + java.util.List getEntityResultsOrBuilderList(); /** + * + * *
    * The results for this batch.
    * 
* * repeated .google.datastore.v1.EntityResult entity_results = 2; */ - com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder( - int index); + com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(int index); /** + * + * *
    * A cursor that points to the position after the last result in the batch.
    * 
* * bytes end_cursor = 4; + * * @return The endCursor. */ com.google.protobuf.ByteString getEndCursor(); /** + * + * *
    * The state of the query after the current batch.
    * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @return The enum numeric value on the wire for moreResults. */ int getMoreResultsValue(); /** + * + * *
    * The state of the query after the current batch.
    * 
* * .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; + * * @return The moreResults. */ com.google.datastore.v1.QueryResultBatch.MoreResultsType getMoreResults(); /** + * + * *
    * The version number of the snapshot this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -133,11 +180,14 @@ com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(
    * 
* * int64 snapshot_version = 7; + * * @return The snapshotVersion. */ long getSnapshotVersion(); /** + * + * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -151,10 +201,13 @@ com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(
    * 
* * .google.protobuf.Timestamp read_time = 8; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
@@ -168,10 +221,13 @@ com.google.datastore.v1.EntityResultOrBuilder getEntityResultsOrBuilder(
    * 
* * .google.protobuf.Timestamp read_time = 8; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Read timestamp this batch was returned from.
    * This applies to the range of results from the query's `start_cursor` (or
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
similarity index 74%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
index 67c767331..ea77f95e4 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * The options shared by read requests.
  * 
* * Protobuf type {@code google.datastore.v1.ReadOptions} */ -public final class ReadOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReadOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.ReadOptions) ReadOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadOptions.newBuilder() to construct. private ReadOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadOptions() { - } + + private ReadOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReadOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,38 +68,41 @@ private ReadOptions( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - consistencyTypeCase_ = 1; - consistencyType_ = rawValue; - break; - } - case 18: { - consistencyType_ = input.readBytes(); - consistencyTypeCase_ = 2; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (consistencyTypeCase_ == 4) { - subBuilder = ((com.google.protobuf.Timestamp) consistencyType_).toBuilder(); + case 8: + { + int rawValue = input.readEnum(); + consistencyTypeCase_ = 1; + consistencyType_ = rawValue; + break; } - consistencyType_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) consistencyType_); - consistencyType_ = subBuilder.buildPartial(); + case 18: + { + consistencyType_ = input.readBytes(); + consistencyTypeCase_ = 2; + break; } - consistencyTypeCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (consistencyTypeCase_ == 4) { + subBuilder = ((com.google.protobuf.Timestamp) consistencyType_).toBuilder(); + } + consistencyType_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) consistencyType_); + consistencyType_ = subBuilder.buildPartial(); + } + consistencyTypeCase_ = 4; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,36 +110,41 @@ private ReadOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReadOptions.class, com.google.datastore.v1.ReadOptions.Builder.class); + com.google.datastore.v1.ReadOptions.class, + com.google.datastore.v1.ReadOptions.Builder.class); } /** + * + * *
    * The possible values for read consistencies.
    * 
* * Protobuf enum {@code google.datastore.v1.ReadOptions.ReadConsistency} */ - public enum ReadConsistency - implements com.google.protobuf.ProtocolMessageEnum { + public enum ReadConsistency implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -129,6 +153,8 @@ public enum ReadConsistency */ READ_CONSISTENCY_UNSPECIFIED(0), /** + * + * *
      * Strong consistency.
      * 
@@ -137,6 +163,8 @@ public enum ReadConsistency */ STRONG(1), /** + * + * *
      * Eventual consistency.
      * 
@@ -148,6 +176,8 @@ public enum ReadConsistency ; /** + * + * *
      * Unspecified. This value must not be used.
      * 
@@ -156,6 +186,8 @@ public enum ReadConsistency */ public static final int READ_CONSISTENCY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Strong consistency.
      * 
@@ -164,6 +196,8 @@ public enum ReadConsistency */ public static final int STRONG_VALUE = 1; /** + * + * *
      * Eventual consistency.
      * 
@@ -172,7 +206,6 @@ public enum ReadConsistency */ public static final int EVENTUAL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -197,39 +230,42 @@ public static ReadConsistency valueOf(int value) { */ public static ReadConsistency forNumber(int value) { switch (value) { - case 0: return READ_CONSISTENCY_UNSPECIFIED; - case 1: return STRONG; - case 2: return EVENTUAL; - default: return null; + case 0: + return READ_CONSISTENCY_UNSPECIFIED; + case 1: + return STRONG; + case 2: + return EVENTUAL; + 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< - ReadConsistency> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ReadConsistency findValueByNumber(int number) { - return ReadConsistency.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 ReadConsistency findValueByNumber(int number) { + return ReadConsistency.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.datastore.v1.ReadOptions.getDescriptor().getEnumTypes().get(0); } @@ -238,8 +274,7 @@ public ReadConsistency findValueByNumber(int number) { public static ReadConsistency 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; @@ -258,14 +293,17 @@ private ReadConsistency(int value) { private int consistencyTypeCase_ = 0; private java.lang.Object consistencyType_; + public enum ConsistencyTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { READ_CONSISTENCY(1), TRANSACTION(2), READ_TIME(4), CONSISTENCYTYPE_NOT_SET(0); private final int value; + private ConsistencyTypeCase(int value) { this.value = value; } @@ -281,44 +319,54 @@ public static ConsistencyTypeCase valueOf(int value) { public static ConsistencyTypeCase forNumber(int value) { switch (value) { - case 1: return READ_CONSISTENCY; - case 2: return TRANSACTION; - case 4: return READ_TIME; - case 0: return CONSISTENCYTYPE_NOT_SET; - default: return null; + case 1: + return READ_CONSISTENCY; + case 2: + return TRANSACTION; + case 4: + return READ_TIME; + case 0: + return CONSISTENCYTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConsistencyTypeCase - getConsistencyTypeCase() { - return ConsistencyTypeCase.forNumber( - consistencyTypeCase_); + public ConsistencyTypeCase getConsistencyTypeCase() { + return ConsistencyTypeCase.forNumber(consistencyTypeCase_); } public static final int READ_CONSISTENCY_FIELD_NUMBER = 1; /** + * + * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return Whether the readConsistency field is set. */ public boolean hasReadConsistency() { return consistencyTypeCase_ == 1; } /** + * + * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return The enum numeric value on the wire for readConsistency. */ public int getReadConsistencyValue() { @@ -328,26 +376,34 @@ public int getReadConsistencyValue() { return 0; } /** + * + * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return The readConsistency. */ public com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency() { if (consistencyTypeCase_ == 1) { @SuppressWarnings("deprecation") - com.google.datastore.v1.ReadOptions.ReadConsistency result = com.google.datastore.v1.ReadOptions.ReadConsistency.valueOf( - (java.lang.Integer) consistencyType_); - return result == null ? com.google.datastore.v1.ReadOptions.ReadConsistency.UNRECOGNIZED : result; + com.google.datastore.v1.ReadOptions.ReadConsistency result = + com.google.datastore.v1.ReadOptions.ReadConsistency.valueOf( + (java.lang.Integer) consistencyType_); + return result == null + ? com.google.datastore.v1.ReadOptions.ReadConsistency.UNRECOGNIZED + : result; } return com.google.datastore.v1.ReadOptions.ReadConsistency.READ_CONSISTENCY_UNSPECIFIED; } public static final int TRANSACTION_FIELD_NUMBER = 2; /** + * + * *
    * The identifier of the transaction in which to read. A
    * transaction identifier is returned by a call to
@@ -355,6 +411,7 @@ public com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency()
    * 
* * bytes transaction = 2; + * * @return Whether the transaction field is set. */ @java.lang.Override @@ -362,6 +419,8 @@ public boolean hasTransaction() { return consistencyTypeCase_ == 2; } /** + * + * *
    * The identifier of the transaction in which to read. A
    * transaction identifier is returned by a call to
@@ -369,6 +428,7 @@ public boolean hasTransaction() {
    * 
* * bytes transaction = 2; + * * @return The transaction. */ @java.lang.Override @@ -381,6 +441,8 @@ public com.google.protobuf.ByteString getTransaction() { public static final int READ_TIME_FIELD_NUMBER = 4; /** + * + * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -388,6 +450,7 @@ public com.google.protobuf.ByteString getTransaction() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -395,6 +458,8 @@ public boolean hasReadTime() { return consistencyTypeCase_ == 4; } /** + * + * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -402,16 +467,19 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { if (consistencyTypeCase_ == 4) { - return (com.google.protobuf.Timestamp) consistencyType_; + return (com.google.protobuf.Timestamp) consistencyType_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -423,12 +491,13 @@ public com.google.protobuf.Timestamp getReadTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     if (consistencyTypeCase_ == 4) {
-       return (com.google.protobuf.Timestamp) consistencyType_;
+      return (com.google.protobuf.Timestamp) consistencyType_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -440,14 +509,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (consistencyTypeCase_ == 1) {
       output.writeEnum(1, ((java.lang.Integer) consistencyType_));
     }
     if (consistencyTypeCase_ == 2) {
-      output.writeBytes(
-          2, (com.google.protobuf.ByteString) consistencyType_);
+      output.writeBytes(2, (com.google.protobuf.ByteString) consistencyType_);
     }
     if (consistencyTypeCase_ == 4) {
       output.writeMessage(4, (com.google.protobuf.Timestamp) consistencyType_);
@@ -462,17 +529,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (consistencyTypeCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, ((java.lang.Integer) consistencyType_));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeEnumSize(
+              1, ((java.lang.Integer) consistencyType_));
     }
     if (consistencyTypeCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(
-            2, (com.google.protobuf.ByteString) consistencyType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeBytesSize(
+              2, (com.google.protobuf.ByteString) consistencyType_);
     }
     if (consistencyTypeCase_ == 4) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, (com.google.protobuf.Timestamp) consistencyType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              4, (com.google.protobuf.Timestamp) consistencyType_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -482,7 +551,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.ReadOptions)) {
       return super.equals(obj);
@@ -492,16 +561,13 @@ public boolean equals(final java.lang.Object obj) {
     if (!getConsistencyTypeCase().equals(other.getConsistencyTypeCase())) return false;
     switch (consistencyTypeCase_) {
       case 1:
-        if (getReadConsistencyValue()
-            != other.getReadConsistencyValue()) return false;
+        if (getReadConsistencyValue() != other.getReadConsistencyValue()) return false;
         break;
       case 2:
-        if (!getTransaction()
-            .equals(other.getTransaction())) return false;
+        if (!getTransaction().equals(other.getTransaction())) return false;
         break;
       case 4:
-        if (!getReadTime()
-            .equals(other.getReadTime())) return false;
+        if (!getReadTime().equals(other.getReadTime())) return false;
         break;
       case 0:
       default:
@@ -538,118 +604,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.ReadOptions parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.ReadOptions parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.ReadOptions parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.datastore.v1.ReadOptions parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.datastore.v1.ReadOptions parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.ReadOptions parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.ReadOptions parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.ReadOptions parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.ReadOptions parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.ReadOptions parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.ReadOptions parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.ReadOptions parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.ReadOptions parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.ReadOptions parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.ReadOptions prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 options shared by read requests.
    * 
* * Protobuf type {@code google.datastore.v1.ReadOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.ReadOptions) com.google.datastore.v1.ReadOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReadOptions.class, com.google.datastore.v1.ReadOptions.Builder.class); + com.google.datastore.v1.ReadOptions.class, + com.google.datastore.v1.ReadOptions.Builder.class); } // Construct using com.google.datastore.v1.ReadOptions.newBuilder() @@ -657,16 +731,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -676,9 +749,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReadOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReadOptions_descriptor; } @java.lang.Override @@ -720,38 +793,39 @@ public com.google.datastore.v1.ReadOptions 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.datastore.v1.ReadOptions) { - return mergeFrom((com.google.datastore.v1.ReadOptions)other); + return mergeFrom((com.google.datastore.v1.ReadOptions) other); } else { super.mergeFrom(other); return this; @@ -761,21 +835,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.datastore.v1.ReadOptions other) { if (other == com.google.datastore.v1.ReadOptions.getDefaultInstance()) return this; switch (other.getConsistencyTypeCase()) { - case READ_CONSISTENCY: { - setReadConsistencyValue(other.getReadConsistencyValue()); - break; - } - case TRANSACTION: { - setTransaction(other.getTransaction()); - break; - } - case READ_TIME: { - mergeReadTime(other.getReadTime()); - break; - } - case CONSISTENCYTYPE_NOT_SET: { - break; - } + case READ_CONSISTENCY: + { + setReadConsistencyValue(other.getReadConsistencyValue()); + break; + } + case TRANSACTION: + { + setTransaction(other.getTransaction()); + break; + } + case READ_TIME: + { + mergeReadTime(other.getReadTime()); + break; + } + case CONSISTENCYTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -805,12 +883,12 @@ public Builder mergeFrom( } return this; } + private int consistencyTypeCase_ = 0; private java.lang.Object consistencyType_; - public ConsistencyTypeCase - getConsistencyTypeCase() { - return ConsistencyTypeCase.forNumber( - consistencyTypeCase_); + + public ConsistencyTypeCase getConsistencyTypeCase() { + return ConsistencyTypeCase.forNumber(consistencyTypeCase_); } public Builder clearConsistencyType() { @@ -820,14 +898,16 @@ public Builder clearConsistencyType() { return this; } - /** + * + * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return Whether the readConsistency field is set. */ @java.lang.Override @@ -835,12 +915,15 @@ public boolean hasReadConsistency() { return consistencyTypeCase_ == 1; } /** + * + * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return The enum numeric value on the wire for readConsistency. */ @java.lang.Override @@ -851,12 +934,15 @@ public int getReadConsistencyValue() { return 0; } /** + * + * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @param value The enum numeric value on the wire for readConsistency to set. * @return This builder for chaining. */ @@ -867,31 +953,40 @@ public Builder setReadConsistencyValue(int value) { return this; } /** + * + * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return The readConsistency. */ @java.lang.Override public com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency() { if (consistencyTypeCase_ == 1) { @SuppressWarnings("deprecation") - com.google.datastore.v1.ReadOptions.ReadConsistency result = com.google.datastore.v1.ReadOptions.ReadConsistency.valueOf( - (java.lang.Integer) consistencyType_); - return result == null ? com.google.datastore.v1.ReadOptions.ReadConsistency.UNRECOGNIZED : result; + com.google.datastore.v1.ReadOptions.ReadConsistency result = + com.google.datastore.v1.ReadOptions.ReadConsistency.valueOf( + (java.lang.Integer) consistencyType_); + return result == null + ? com.google.datastore.v1.ReadOptions.ReadConsistency.UNRECOGNIZED + : result; } return com.google.datastore.v1.ReadOptions.ReadConsistency.READ_CONSISTENCY_UNSPECIFIED; } /** + * + * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @param value The readConsistency to set. * @return This builder for chaining. */ @@ -905,12 +1000,15 @@ public Builder setReadConsistency(com.google.datastore.v1.ReadOptions.ReadConsis return this; } /** + * + * *
      * The non-transactional read consistency to use.
      * Cannot be set to `STRONG` for global queries.
      * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return This builder for chaining. */ public Builder clearReadConsistency() { @@ -923,6 +1021,8 @@ public Builder clearReadConsistency() { } /** + * + * *
      * The identifier of the transaction in which to read. A
      * transaction identifier is returned by a call to
@@ -930,12 +1030,15 @@ public Builder clearReadConsistency() {
      * 
* * bytes transaction = 2; + * * @return Whether the transaction field is set. */ public boolean hasTransaction() { return consistencyTypeCase_ == 2; } /** + * + * *
      * The identifier of the transaction in which to read. A
      * transaction identifier is returned by a call to
@@ -943,6 +1046,7 @@ public boolean hasTransaction() {
      * 
* * bytes transaction = 2; + * * @return The transaction. */ public com.google.protobuf.ByteString getTransaction() { @@ -952,6 +1056,8 @@ public com.google.protobuf.ByteString getTransaction() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The identifier of the transaction in which to read. A
      * transaction identifier is returned by a call to
@@ -959,19 +1065,22 @@ public com.google.protobuf.ByteString getTransaction() {
      * 
* * bytes transaction = 2; + * * @param value The transaction to set. * @return This builder for chaining. */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - consistencyTypeCase_ = 2; + throw new NullPointerException(); + } + consistencyTypeCase_ = 2; consistencyType_ = value; onChanged(); return this; } /** + * + * *
      * The identifier of the transaction in which to read. A
      * transaction identifier is returned by a call to
@@ -979,6 +1088,7 @@ public Builder setTransaction(com.google.protobuf.ByteString value) {
      * 
* * bytes transaction = 2; + * * @return This builder for chaining. */ public Builder clearTransaction() { @@ -991,8 +1101,13 @@ public Builder clearTransaction() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1000,6 +1115,7 @@ public Builder clearTransaction() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -1007,6 +1123,8 @@ public boolean hasReadTime() { return consistencyTypeCase_ == 4; } /** + * + * *
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1014,6 +1132,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -1031,6 +1150,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1053,6 +1174,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1061,8 +1184,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         consistencyType_ = builderForValue.build();
         onChanged();
@@ -1073,6 +1195,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1083,10 +1207,13 @@ public Builder setReadTime(
      */
     public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
-        if (consistencyTypeCase_ == 4 &&
-            consistencyType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          consistencyType_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) consistencyType_)
-              .mergeFrom(value).buildPartial();
+        if (consistencyTypeCase_ == 4
+            && consistencyType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          consistencyType_ =
+              com.google.protobuf.Timestamp.newBuilder(
+                      (com.google.protobuf.Timestamp) consistencyType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           consistencyType_ = value;
         }
@@ -1102,6 +1229,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1127,6 +1256,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1139,6 +1270,8 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1159,6 +1292,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Reads entities as they were at the given time. This may not be older
      * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -1168,26 +1303,32 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
         if (!(consistencyTypeCase_ == 4)) {
           consistencyType_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
                 (com.google.protobuf.Timestamp) consistencyType_,
                 getParentForChildren(),
                 isClean());
         consistencyType_ = null;
       }
       consistencyTypeCase_ = 4;
-      onChanged();;
+      onChanged();
+      ;
       return readTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1197,12 +1338,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.ReadOptions)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.ReadOptions)
   private static final com.google.datastore.v1.ReadOptions DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.ReadOptions();
   }
@@ -1211,16 +1352,16 @@ public static com.google.datastore.v1.ReadOptions getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ReadOptions parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ReadOptions(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ReadOptions parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ReadOptions(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1235,6 +1376,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.ReadOptions getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
index 2224188ac..5f3c01402 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java
@@ -1,44 +1,71 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
-public interface ReadOptionsOrBuilder extends
+public interface ReadOptionsOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.datastore.v1.ReadOptions)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return Whether the readConsistency field is set. */ boolean hasReadConsistency(); /** + * + * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return The enum numeric value on the wire for readConsistency. */ int getReadConsistencyValue(); /** + * + * *
    * The non-transactional read consistency to use.
    * Cannot be set to `STRONG` for global queries.
    * 
* * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * * @return The readConsistency. */ com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency(); /** + * + * *
    * The identifier of the transaction in which to read. A
    * transaction identifier is returned by a call to
@@ -46,10 +73,13 @@ public interface ReadOptionsOrBuilder extends
    * 
* * bytes transaction = 2; + * * @return Whether the transaction field is set. */ boolean hasTransaction(); /** + * + * *
    * The identifier of the transaction in which to read. A
    * transaction identifier is returned by a call to
@@ -57,11 +87,14 @@ public interface ReadOptionsOrBuilder extends
    * 
* * bytes transaction = 2; + * * @return The transaction. */ com.google.protobuf.ByteString getTransaction(); /** + * + * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -69,10 +102,13 @@ public interface ReadOptionsOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
@@ -80,10 +116,13 @@ public interface ReadOptionsOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Reads entities as they were at the given time. This may not be older
    * than 270 seconds.  This value is only supported for Cloud Firestore in
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java
index b5faa3cb3..27a8ef8a6 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.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/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * The request for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
  * 
* * Protobuf type {@code google.datastore.v1.ReserveIdsRequest} */ -public final class ReserveIdsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReserveIdsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.ReserveIdsRequest) ReserveIdsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReserveIdsRequest.newBuilder() to construct. private ReserveIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReserveIdsRequest() { projectId_ = ""; databaseId_ = ""; @@ -27,16 +45,15 @@ private ReserveIdsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReserveIdsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReserveIdsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,34 +73,36 @@ private ReserveIdsRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keys_.add(input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); + break; } - keys_.add( - input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - databaseId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + databaseId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,8 +110,7 @@ private ReserveIdsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -101,27 +119,33 @@ private ReserveIdsRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReserveIdsRequest.class, com.google.datastore.v1.ReserveIdsRequest.Builder.class); + com.google.datastore.v1.ReserveIdsRequest.class, + com.google.datastore.v1.ReserveIdsRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -130,29 +154,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -163,11 +187,14 @@ public java.lang.String getProjectId() { public static final int DATABASE_ID_FIELD_NUMBER = 9; private volatile java.lang.Object databaseId_; /** + * + * *
    * If not empty, the ID of the database against which to make the request.
    * 
* * string database_id = 9; + * * @return The databaseId. */ @java.lang.Override @@ -176,29 +203,29 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** + * + * *
    * If not empty, the ID of the database against which to make the request.
    * 
* * string database_id = 9; + * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseIdBytes() { + public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseId_ = b; return b; } else { @@ -209,69 +236,83 @@ public java.lang.String getDatabaseId() { public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getKeysList() { return keys_; } /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List - getKeysOrBuilderList() { + public java.util.List getKeysOrBuilderList() { return keys_; } /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getKeysCount() { return keys_.size(); } /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.datastore.v1.Key getKeys(int index) { return keys_.get(index); } /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,8 +324,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 < keys_.size(); i++) { output.writeMessage(1, keys_.get(i)); } @@ -304,8 +344,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, keys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -321,19 +360,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.datastore.v1.ReserveIdsRequest)) { return super.equals(obj); } - com.google.datastore.v1.ReserveIdsRequest other = (com.google.datastore.v1.ReserveIdsRequest) obj; + com.google.datastore.v1.ReserveIdsRequest other = + (com.google.datastore.v1.ReserveIdsRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getDatabaseId() - .equals(other.getDatabaseId())) return false; - if (!getKeysList() - .equals(other.getKeysList())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getKeysList().equals(other.getKeysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,118 +395,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.ReserveIdsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.ReserveIdsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.ReserveIdsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.ReserveIdsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.ReserveIdsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
    * 
* * Protobuf type {@code google.datastore.v1.ReserveIdsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.ReserveIdsRequest) com.google.datastore.v1.ReserveIdsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReserveIdsRequest.class, com.google.datastore.v1.ReserveIdsRequest.Builder.class); + com.google.datastore.v1.ReserveIdsRequest.class, + com.google.datastore.v1.ReserveIdsRequest.Builder.class); } // Construct using com.google.datastore.v1.ReserveIdsRequest.newBuilder() @@ -477,17 +523,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getKeysFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +551,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsRequest_descriptor; } @java.lang.Override @@ -526,7 +572,8 @@ public com.google.datastore.v1.ReserveIdsRequest build() { @java.lang.Override public com.google.datastore.v1.ReserveIdsRequest buildPartial() { - com.google.datastore.v1.ReserveIdsRequest result = new com.google.datastore.v1.ReserveIdsRequest(this); + com.google.datastore.v1.ReserveIdsRequest result = + new com.google.datastore.v1.ReserveIdsRequest(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; result.databaseId_ = databaseId_; @@ -547,38 +594,39 @@ public com.google.datastore.v1.ReserveIdsRequest 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.datastore.v1.ReserveIdsRequest) { - return mergeFrom((com.google.datastore.v1.ReserveIdsRequest)other); + return mergeFrom((com.google.datastore.v1.ReserveIdsRequest) other); } else { super.mergeFrom(other); return this; @@ -613,9 +661,10 @@ public Builder mergeFrom(com.google.datastore.v1.ReserveIdsRequest other) { keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -649,22 +698,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -673,20 +725,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -694,54 +747,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -749,18 +809,20 @@ public Builder setProjectIdBytes( private java.lang.Object databaseId_ = ""; /** + * + * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; + * * @return The databaseId. */ public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -769,20 +831,21 @@ public java.lang.String getDatabaseId() { } } /** + * + * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; + * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString - getDatabaseIdBytes() { + public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseId_ = b; return b; } else { @@ -790,78 +853,91 @@ public java.lang.String getDatabaseId() { } } /** + * + * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; + * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId( - java.lang.String value) { + public Builder setDatabaseId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + databaseId_ = value; onChanged(); return this; } /** + * + * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; + * * @return This builder for chaining. */ public Builder clearDatabaseId() { - + databaseId_ = getDefaultInstance().getDatabaseId(); onChanged(); return this; } /** + * + * *
      * If not empty, the ID of the database against which to make the request.
      * 
* * string database_id = 9; + * * @param value The bytes for databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseId_ = value; onChanged(); return this; } - private java.util.List keys_ = - java.util.Collections.emptyList(); + private java.util.List keys_ = java.util.Collections.emptyList(); + private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keysBuilder_; + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> + keysBuilder_; /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getKeysList() { if (keysBuilder_ == null) { @@ -871,12 +947,15 @@ public java.util.List getKeysList() { } } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getKeysCount() { if (keysBuilder_ == null) { @@ -886,12 +965,15 @@ public int getKeysCount() { } } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.v1.Key getKeys(int index) { if (keysBuilder_ == null) { @@ -901,15 +983,17 @@ public com.google.datastore.v1.Key getKeys(int index) { } } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKeys( - int index, com.google.datastore.v1.Key value) { + public Builder setKeys(int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -923,15 +1007,17 @@ public Builder setKeys( return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKeys( - int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder setKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.set(index, builderForValue.build()); @@ -942,12 +1028,15 @@ public Builder setKeys( return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addKeys(com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { @@ -963,15 +1052,17 @@ public Builder addKeys(com.google.datastore.v1.Key value) { return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - int index, com.google.datastore.v1.Key value) { + public Builder addKeys(int index, com.google.datastore.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -985,15 +1076,17 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys(com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); @@ -1004,15 +1097,17 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addKeys( - int index, com.google.datastore.v1.Key.Builder builderForValue) { + public Builder addKeys(int index, com.google.datastore.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(index, builderForValue.build()); @@ -1023,19 +1118,20 @@ public Builder addKeys( return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addAllKeys( - java.lang.Iterable values) { + public Builder addAllKeys(java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); @@ -1043,12 +1139,15 @@ public Builder addAllKeys( return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearKeys() { if (keysBuilder_ == null) { @@ -1061,12 +1160,15 @@ public Builder clearKeys() { return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeKeys(int index) { if (keysBuilder_ == null) { @@ -1079,42 +1181,49 @@ public Builder removeKeys(int index) { return this; } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.Key.Builder getKeysBuilder( - int index) { + public com.google.datastore.v1.Key.Builder getKeysBuilder(int index) { return getKeysFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index) { + public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) { if (keysBuilder_ == null) { - return keys_.get(index); } else { + return keys_.get(index); + } else { return keysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getKeysOrBuilderList() { + public java.util.List getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { @@ -1122,59 +1231,68 @@ public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( } } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.datastore.v1.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder( - com.google.datastore.v1.Key.getDefaultInstance()); + return getKeysFieldBuilder().addBuilder(com.google.datastore.v1.Key.getDefaultInstance()); } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.datastore.v1.Key.Builder addKeysBuilder( - int index) { - return getKeysFieldBuilder().addBuilder( - index, com.google.datastore.v1.Key.getDefaultInstance()); + public com.google.datastore.v1.Key.Builder addKeysBuilder(int index) { + return getKeysFieldBuilder() + .addBuilder(index, com.google.datastore.v1.Key.getDefaultInstance()); } /** + * + * *
      * Required. A list of keys with complete key paths whose numeric IDs should not be
      * auto-allocated.
      * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getKeysBuilderList() { + public java.util.List getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>( - keys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + keysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder>( + keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1184,12 +1302,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.ReserveIdsRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.ReserveIdsRequest) private static final com.google.datastore.v1.ReserveIdsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.ReserveIdsRequest(); } @@ -1198,16 +1316,16 @@ public static com.google.datastore.v1.ReserveIdsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReserveIdsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReserveIdsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReserveIdsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReserveIdsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1222,6 +1340,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.ReserveIdsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java index 175f621d0..b410d83d6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequestOrBuilder.java @@ -1,98 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface ReserveIdsRequestOrBuilder extends +public interface ReserveIdsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.ReserveIdsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * If not empty, the ID of the database against which to make the request.
    * 
* * string database_id = 9; + * * @return The databaseId. */ java.lang.String getDatabaseId(); /** + * + * *
    * If not empty, the ID of the database against which to make the request.
    * 
* * string database_id = 9; + * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString - getDatabaseIdBytes(); + com.google.protobuf.ByteString getDatabaseIdBytes(); /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getKeysList(); + java.util.List getKeysList(); /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.datastore.v1.Key getKeys(int index); /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getKeysCount(); /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getKeysOrBuilderList(); + java.util.List getKeysOrBuilderList(); /** + * + * *
    * Required. A list of keys with complete key paths whose numeric IDs should not be
    * auto-allocated.
    * 
* - * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder( - int index); + com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java index e1439b965..b889a46f1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The response for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
  * 
* * Protobuf type {@code google.datastore.v1.ReserveIdsResponse} */ -public final class ReserveIdsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReserveIdsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.ReserveIdsResponse) ReserveIdsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReserveIdsResponse.newBuilder() to construct. private ReserveIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReserveIdsResponse() { - } + + private ReserveIdsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReserveIdsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReserveIdsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private ReserveIdsResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private ReserveIdsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReserveIdsResponse.class, com.google.datastore.v1.ReserveIdsResponse.Builder.class); + com.google.datastore.v1.ReserveIdsResponse.class, + com.google.datastore.v1.ReserveIdsResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.ReserveIdsResponse)) { return super.equals(obj); } - com.google.datastore.v1.ReserveIdsResponse other = (com.google.datastore.v1.ReserveIdsResponse) obj; + com.google.datastore.v1.ReserveIdsResponse other = + (com.google.datastore.v1.ReserveIdsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -140,118 +159,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.ReserveIdsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.ReserveIdsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.ReserveIdsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.ReserveIdsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.ReserveIdsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.ReserveIdsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
    * 
* * Protobuf type {@code google.datastore.v1.ReserveIdsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.ReserveIdsResponse) com.google.datastore.v1.ReserveIdsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.ReserveIdsResponse.class, com.google.datastore.v1.ReserveIdsResponse.Builder.class); + com.google.datastore.v1.ReserveIdsResponse.class, + com.google.datastore.v1.ReserveIdsResponse.Builder.class); } // Construct using com.google.datastore.v1.ReserveIdsResponse.newBuilder() @@ -259,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_ReserveIdsResponse_descriptor; } @java.lang.Override @@ -297,7 +324,8 @@ public com.google.datastore.v1.ReserveIdsResponse build() { @java.lang.Override public com.google.datastore.v1.ReserveIdsResponse buildPartial() { - com.google.datastore.v1.ReserveIdsResponse result = new com.google.datastore.v1.ReserveIdsResponse(this); + com.google.datastore.v1.ReserveIdsResponse result = + new com.google.datastore.v1.ReserveIdsResponse(this); onBuilt(); return result; } @@ -306,38 +334,39 @@ public com.google.datastore.v1.ReserveIdsResponse 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.datastore.v1.ReserveIdsResponse) { - return mergeFrom((com.google.datastore.v1.ReserveIdsResponse)other); + return mergeFrom((com.google.datastore.v1.ReserveIdsResponse) other); } else { super.mergeFrom(other); return this; @@ -374,9 +403,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +415,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.ReserveIdsResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.ReserveIdsResponse) private static final com.google.datastore.v1.ReserveIdsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.ReserveIdsResponse(); } @@ -400,16 +429,16 @@ public static com.google.datastore.v1.ReserveIdsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReserveIdsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReserveIdsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReserveIdsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReserveIdsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +453,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.ReserveIdsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java new file mode 100644 index 000000000..0f3bab091 --- /dev/null +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/datastore/v1/datastore.proto + +package com.google.datastore.v1; + +public interface ReserveIdsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.datastore.v1.ReserveIdsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java index 3978fbfd5..75c24d616 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The request for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
  * 
* * Protobuf type {@code google.datastore.v1.RollbackRequest} */ -public final class RollbackRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RollbackRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.RollbackRequest) RollbackRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RollbackRequest.newBuilder() to construct. private RollbackRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RollbackRequest() { projectId_ = ""; transaction_ = com.google.protobuf.ByteString.EMPTY; @@ -26,16 +44,15 @@ private RollbackRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RollbackRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RollbackRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,24 +71,25 @@ private RollbackRequest( case 0: done = true; break; - case 10: { - - transaction_ = input.readBytes(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + transaction_ = input.readBytes(); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + projectId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +97,39 @@ private RollbackRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RollbackRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RollbackRequest.class, com.google.datastore.v1.RollbackRequest.Builder.class); + com.google.datastore.v1.RollbackRequest.class, + com.google.datastore.v1.RollbackRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -115,29 +138,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -148,12 +171,15 @@ public java.lang.String getProjectId() { public static final int TRANSACTION_FIELD_NUMBER = 1; private com.google.protobuf.ByteString transaction_; /** + * + * *
    * Required. The transaction identifier, returned by a call to
    * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The transaction. */ @java.lang.Override @@ -162,6 +188,7 @@ public com.google.protobuf.ByteString getTransaction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!transaction_.isEmpty()) { output.writeBytes(1, transaction_); } @@ -191,8 +217,7 @@ public int getSerializedSize() { size = 0; if (!transaction_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, transaction_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, transaction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -205,17 +230,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.RollbackRequest)) { return super.equals(obj); } com.google.datastore.v1.RollbackRequest other = (com.google.datastore.v1.RollbackRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getTransaction() - .equals(other.getTransaction())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getTransaction().equals(other.getTransaction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,118 +259,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.RollbackRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.RollbackRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RollbackRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RollbackRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RollbackRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RollbackRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RollbackRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RollbackRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.RollbackRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.RollbackRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.RollbackRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.RollbackRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.RollbackRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.RollbackRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.RollbackRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
    * 
* * Protobuf type {@code google.datastore.v1.RollbackRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.RollbackRequest) com.google.datastore.v1.RollbackRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RollbackRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RollbackRequest.class, com.google.datastore.v1.RollbackRequest.Builder.class); + com.google.datastore.v1.RollbackRequest.class, + com.google.datastore.v1.RollbackRequest.Builder.class); } // Construct using com.google.datastore.v1.RollbackRequest.newBuilder() @@ -355,16 +387,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RollbackRequest_descriptor; } @java.lang.Override @@ -397,7 +428,8 @@ public com.google.datastore.v1.RollbackRequest build() { @java.lang.Override public com.google.datastore.v1.RollbackRequest buildPartial() { - com.google.datastore.v1.RollbackRequest result = new com.google.datastore.v1.RollbackRequest(this); + com.google.datastore.v1.RollbackRequest result = + new com.google.datastore.v1.RollbackRequest(this); result.projectId_ = projectId_; result.transaction_ = transaction_; onBuilt(); @@ -408,38 +440,39 @@ public com.google.datastore.v1.RollbackRequest 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.datastore.v1.RollbackRequest) { - return mergeFrom((com.google.datastore.v1.RollbackRequest)other); + return mergeFrom((com.google.datastore.v1.RollbackRequest) other); } else { super.mergeFrom(other); return this; @@ -486,18 +519,20 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -506,20 +541,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -527,54 +563,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -582,12 +625,15 @@ public Builder setProjectIdBytes( private com.google.protobuf.ByteString transaction_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. The transaction identifier, returned by a call to
      * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
      * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The transaction. */ @java.lang.Override @@ -595,42 +641,48 @@ public com.google.protobuf.ByteString getTransaction() { return transaction_; } /** + * + * *
      * Required. The transaction identifier, returned by a call to
      * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
      * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The transaction to set. * @return This builder for chaining. */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transaction_ = value; onChanged(); return this; } /** + * + * *
      * Required. The transaction identifier, returned by a call to
      * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
      * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTransaction() { - + transaction_ = getDefaultInstance().getTransaction(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -640,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.RollbackRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.RollbackRequest) private static final com.google.datastore.v1.RollbackRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.RollbackRequest(); } @@ -654,16 +706,16 @@ public static com.google.datastore.v1.RollbackRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RollbackRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RollbackRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RollbackRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -678,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.RollbackRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java index 06e3d744e..86319d919 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java @@ -1,39 +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/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface RollbackRequestOrBuilder extends +public interface RollbackRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.RollbackRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The transaction identifier, returned by a call to
    * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    * 
* * bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The transaction. */ com.google.protobuf.ByteString getTransaction(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java index e33d047c0..0d96f1969 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The response for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
  * (an empty message).
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.datastore.v1.RollbackResponse}
  */
-public final class RollbackResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RollbackResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.RollbackResponse)
     RollbackResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RollbackResponse.newBuilder() to construct.
   private RollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RollbackResponse() {
-  }
+
+  private RollbackResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RollbackResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RollbackResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,13 +69,13 @@ private RollbackResponse(
           case 0:
             done = true;
             break;
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -67,27 +83,30 @@ private RollbackResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.v1.DatastoreProto
+        .internal_static_google_datastore_v1_RollbackResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable
+    return com.google.datastore.v1.DatastoreProto
+        .internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.v1.RollbackResponse.class, com.google.datastore.v1.RollbackResponse.Builder.class);
+            com.google.datastore.v1.RollbackResponse.class,
+            com.google.datastore.v1.RollbackResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -99,8 +118,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 {
     unknownFields.writeTo(output);
   }
 
@@ -118,7 +136,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.datastore.v1.RollbackResponse)) {
       return super.equals(obj);
@@ -141,97 +159,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.datastore.v1.RollbackResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.datastore.v1.RollbackResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.datastore.v1.RollbackResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.datastore.v1.RollbackResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.datastore.v1.RollbackResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.datastore.v1.RollbackResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 response for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
    * (an empty message).
@@ -239,21 +264,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.v1.RollbackResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.RollbackResponse)
       com.google.datastore.v1.RollbackResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.v1.DatastoreProto
+          .internal_static_google_datastore_v1_RollbackResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable
+      return com.google.datastore.v1.DatastoreProto
+          .internal_static_google_datastore_v1_RollbackResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.RollbackResponse.class, com.google.datastore.v1.RollbackResponse.Builder.class);
+              com.google.datastore.v1.RollbackResponse.class,
+              com.google.datastore.v1.RollbackResponse.Builder.class);
     }
 
     // Construct using com.google.datastore.v1.RollbackResponse.newBuilder()
@@ -261,16 +288,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -278,9 +304,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RollbackResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.v1.DatastoreProto
+          .internal_static_google_datastore_v1_RollbackResponse_descriptor;
     }
 
     @java.lang.Override
@@ -299,7 +325,8 @@ public com.google.datastore.v1.RollbackResponse build() {
 
     @java.lang.Override
     public com.google.datastore.v1.RollbackResponse buildPartial() {
-      com.google.datastore.v1.RollbackResponse result = new com.google.datastore.v1.RollbackResponse(this);
+      com.google.datastore.v1.RollbackResponse result =
+          new com.google.datastore.v1.RollbackResponse(this);
       onBuilt();
       return result;
     }
@@ -308,38 +335,39 @@ public com.google.datastore.v1.RollbackResponse 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.datastore.v1.RollbackResponse) {
-        return mergeFrom((com.google.datastore.v1.RollbackResponse)other);
+        return mergeFrom((com.google.datastore.v1.RollbackResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -376,9 +404,9 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -388,12 +416,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.datastore.v1.RollbackResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.datastore.v1.RollbackResponse)
   private static final com.google.datastore.v1.RollbackResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.datastore.v1.RollbackResponse();
   }
@@ -402,16 +430,16 @@ public static com.google.datastore.v1.RollbackResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public RollbackResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new RollbackResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public RollbackResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new RollbackResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -426,6 +454,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.datastore.v1.RollbackResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java
new file mode 100644
index 000000000..2d8b40090
--- /dev/null
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/datastore/v1/datastore.proto
+
+package com.google.datastore.v1;
+
+public interface RollbackResponseOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.datastore.v1.RollbackResponse)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
index f35d6d7a1..6da75072d 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/datastore/v1/datastore.proto
 
 package com.google.datastore.v1;
 
 /**
+ *
+ *
  * 
  * The request for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
  * 
* * Protobuf type {@code google.datastore.v1.RunQueryRequest} */ -public final class RunQueryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.RunQueryRequest) RunQueryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunQueryRequest.newBuilder() to construct. private RunQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunQueryRequest() { projectId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RunQueryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,73 +70,82 @@ private RunQueryRequest( case 0: done = true; break; - case 10: { - com.google.datastore.v1.ReadOptions.Builder subBuilder = null; - if (readOptions_ != null) { - subBuilder = readOptions_.toBuilder(); + case 10: + { + com.google.datastore.v1.ReadOptions.Builder subBuilder = null; + if (readOptions_ != null) { + subBuilder = readOptions_.toBuilder(); + } + readOptions_ = + input.readMessage( + com.google.datastore.v1.ReadOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readOptions_); + readOptions_ = subBuilder.buildPartial(); + } + + break; } - readOptions_ = input.readMessage(com.google.datastore.v1.ReadOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readOptions_); - readOptions_ = subBuilder.buildPartial(); + case 18: + { + com.google.datastore.v1.PartitionId.Builder subBuilder = null; + if (partitionId_ != null) { + subBuilder = partitionId_.toBuilder(); + } + partitionId_ = + input.readMessage( + com.google.datastore.v1.PartitionId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partitionId_); + partitionId_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.datastore.v1.PartitionId.Builder subBuilder = null; - if (partitionId_ != null) { - subBuilder = partitionId_.toBuilder(); + case 26: + { + com.google.datastore.v1.Query.Builder subBuilder = null; + if (queryTypeCase_ == 3) { + subBuilder = ((com.google.datastore.v1.Query) queryType_).toBuilder(); + } + queryType_ = + input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.Query) queryType_); + queryType_ = subBuilder.buildPartial(); + } + queryTypeCase_ = 3; + break; } - partitionId_ = input.readMessage(com.google.datastore.v1.PartitionId.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(partitionId_); - partitionId_ = subBuilder.buildPartial(); + case 58: + { + com.google.datastore.v1.GqlQuery.Builder subBuilder = null; + if (queryTypeCase_ == 7) { + subBuilder = ((com.google.datastore.v1.GqlQuery) queryType_).toBuilder(); + } + queryType_ = + input.readMessage(com.google.datastore.v1.GqlQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.datastore.v1.GqlQuery) queryType_); + queryType_ = subBuilder.buildPartial(); + } + queryTypeCase_ = 7; + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - com.google.datastore.v1.Query.Builder subBuilder = null; - if (queryTypeCase_ == 3) { - subBuilder = ((com.google.datastore.v1.Query) queryType_).toBuilder(); - } - queryType_ = - input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.Query) queryType_); - queryType_ = subBuilder.buildPartial(); - } - queryTypeCase_ = 3; - break; - } - case 58: { - com.google.datastore.v1.GqlQuery.Builder subBuilder = null; - if (queryTypeCase_ == 7) { - subBuilder = ((com.google.datastore.v1.GqlQuery) queryType_).toBuilder(); + projectId_ = s; + break; } - queryType_ = - input.readMessage(com.google.datastore.v1.GqlQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.datastore.v1.GqlQuery) queryType_); - queryType_ = subBuilder.buildPartial(); - } - queryTypeCase_ = 7; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - projectId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,35 +153,40 @@ private RunQueryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RunQueryRequest.class, com.google.datastore.v1.RunQueryRequest.Builder.class); + com.google.datastore.v1.RunQueryRequest.class, + com.google.datastore.v1.RunQueryRequest.Builder.class); } private int queryTypeCase_ = 0; private java.lang.Object queryType_; + public enum QueryTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { QUERY(3), GQL_QUERY(7), QUERYTYPE_NOT_SET(0); private final int value; + private QueryTypeCase(int value) { this.value = value; } @@ -171,31 +202,37 @@ public static QueryTypeCase valueOf(int value) { public static QueryTypeCase forNumber(int value) { switch (value) { - case 3: return QUERY; - case 7: return GQL_QUERY; - case 0: return QUERYTYPE_NOT_SET; - default: return null; + case 3: + return QUERY; + case 7: + return GQL_QUERY; + case 0: + return QUERYTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public QueryTypeCase - getQueryTypeCase() { - return QueryTypeCase.forNumber( - queryTypeCase_); + public QueryTypeCase getQueryTypeCase() { + return QueryTypeCase.forNumber(queryTypeCase_); } public static final int PROJECT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -204,29 +241,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -237,6 +274,8 @@ public java.lang.String getProjectId() { public static final int PARTITION_ID_FIELD_NUMBER = 2; private com.google.datastore.v1.PartitionId partitionId_; /** + * + * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -245,6 +284,7 @@ public java.lang.String getProjectId() {
    * 
* * .google.datastore.v1.PartitionId partition_id = 2; + * * @return Whether the partitionId field is set. */ @java.lang.Override @@ -252,6 +292,8 @@ public boolean hasPartitionId() { return partitionId_ != null; } /** + * + * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -260,13 +302,18 @@ public boolean hasPartitionId() {
    * 
* * .google.datastore.v1.PartitionId partition_id = 2; + * * @return The partitionId. */ @java.lang.Override public com.google.datastore.v1.PartitionId getPartitionId() { - return partitionId_ == null ? com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_; + return partitionId_ == null + ? com.google.datastore.v1.PartitionId.getDefaultInstance() + : partitionId_; } /** + * + * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -284,11 +331,14 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
   public static final int READ_OPTIONS_FIELD_NUMBER = 1;
   private com.google.datastore.v1.ReadOptions readOptions_;
   /**
+   *
+   *
    * 
    * The options for this query.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return Whether the readOptions field is set. */ @java.lang.Override @@ -296,18 +346,25 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** + * + * *
    * The options for this query.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return The readOptions. */ @java.lang.Override public com.google.datastore.v1.ReadOptions getReadOptions() { - return readOptions_ == null ? com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.datastore.v1.ReadOptions.getDefaultInstance() + : readOptions_; } /** + * + * *
    * The options for this query.
    * 
@@ -321,11 +378,14 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { public static final int QUERY_FIELD_NUMBER = 3; /** + * + * *
    * The query to run.
    * 
* * .google.datastore.v1.Query query = 3; + * * @return Whether the query field is set. */ @java.lang.Override @@ -333,21 +393,26 @@ public boolean hasQuery() { return queryTypeCase_ == 3; } /** + * + * *
    * The query to run.
    * 
* * .google.datastore.v1.Query query = 3; + * * @return The query. */ @java.lang.Override public com.google.datastore.v1.Query getQuery() { if (queryTypeCase_ == 3) { - return (com.google.datastore.v1.Query) queryType_; + return (com.google.datastore.v1.Query) queryType_; } return com.google.datastore.v1.Query.getDefaultInstance(); } /** + * + * *
    * The query to run.
    * 
@@ -357,18 +422,21 @@ public com.google.datastore.v1.Query getQuery() { @java.lang.Override public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { if (queryTypeCase_ == 3) { - return (com.google.datastore.v1.Query) queryType_; + return (com.google.datastore.v1.Query) queryType_; } return com.google.datastore.v1.Query.getDefaultInstance(); } public static final int GQL_QUERY_FIELD_NUMBER = 7; /** + * + * *
    * The GQL query to run.
    * 
* * .google.datastore.v1.GqlQuery gql_query = 7; + * * @return Whether the gqlQuery field is set. */ @java.lang.Override @@ -376,21 +444,26 @@ public boolean hasGqlQuery() { return queryTypeCase_ == 7; } /** + * + * *
    * The GQL query to run.
    * 
* * .google.datastore.v1.GqlQuery gql_query = 7; + * * @return The gqlQuery. */ @java.lang.Override public com.google.datastore.v1.GqlQuery getGqlQuery() { if (queryTypeCase_ == 7) { - return (com.google.datastore.v1.GqlQuery) queryType_; + return (com.google.datastore.v1.GqlQuery) queryType_; } return com.google.datastore.v1.GqlQuery.getDefaultInstance(); } /** + * + * *
    * The GQL query to run.
    * 
@@ -400,12 +473,13 @@ public com.google.datastore.v1.GqlQuery getGqlQuery() { @java.lang.Override public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() { if (queryTypeCase_ == 7) { - return (com.google.datastore.v1.GqlQuery) queryType_; + return (com.google.datastore.v1.GqlQuery) queryType_; } return com.google.datastore.v1.GqlQuery.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -417,8 +491,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 (readOptions_ != null) { output.writeMessage(1, getReadOptions()); } @@ -444,20 +517,20 @@ public int getSerializedSize() { size = 0; if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReadOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadOptions()); } if (partitionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPartitionId()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPartitionId()); } if (queryTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.datastore.v1.Query) queryType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.datastore.v1.Query) queryType_); } if (queryTypeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.datastore.v1.GqlQuery) queryType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.datastore.v1.GqlQuery) queryType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); @@ -470,34 +543,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.RunQueryRequest)) { return super.equals(obj); } com.google.datastore.v1.RunQueryRequest other = (com.google.datastore.v1.RunQueryRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; if (hasPartitionId() != other.hasPartitionId()) return false; if (hasPartitionId()) { - if (!getPartitionId() - .equals(other.getPartitionId())) return false; + if (!getPartitionId().equals(other.getPartitionId())) return false; } if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions() - .equals(other.getReadOptions())) return false; + if (!getReadOptions().equals(other.getReadOptions())) return false; } if (!getQueryTypeCase().equals(other.getQueryTypeCase())) return false; switch (queryTypeCase_) { case 3: - if (!getQuery() - .equals(other.getQuery())) return false; + if (!getQuery().equals(other.getQuery())) return false; break; case 7: - if (!getGqlQuery() - .equals(other.getGqlQuery())) return false; + if (!getGqlQuery().equals(other.getGqlQuery())) return false; break; case 0: default: @@ -540,118 +608,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.RunQueryRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.RunQueryRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RunQueryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RunQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RunQueryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RunQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RunQueryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RunQueryRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.RunQueryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.RunQueryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.RunQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.RunQueryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.RunQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.RunQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.RunQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
    * 
* * Protobuf type {@code google.datastore.v1.RunQueryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.RunQueryRequest) com.google.datastore.v1.RunQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RunQueryRequest.class, com.google.datastore.v1.RunQueryRequest.Builder.class); + com.google.datastore.v1.RunQueryRequest.class, + com.google.datastore.v1.RunQueryRequest.Builder.class); } // Construct using com.google.datastore.v1.RunQueryRequest.newBuilder() @@ -659,16 +736,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -692,9 +768,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryRequest_descriptor; } @java.lang.Override @@ -713,7 +789,8 @@ public com.google.datastore.v1.RunQueryRequest build() { @java.lang.Override public com.google.datastore.v1.RunQueryRequest buildPartial() { - com.google.datastore.v1.RunQueryRequest result = new com.google.datastore.v1.RunQueryRequest(this); + com.google.datastore.v1.RunQueryRequest result = + new com.google.datastore.v1.RunQueryRequest(this); result.projectId_ = projectId_; if (partitionIdBuilder_ == null) { result.partitionId_ = partitionId_; @@ -748,38 +825,39 @@ public com.google.datastore.v1.RunQueryRequest 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.datastore.v1.RunQueryRequest) { - return mergeFrom((com.google.datastore.v1.RunQueryRequest)other); + return mergeFrom((com.google.datastore.v1.RunQueryRequest) other); } else { super.mergeFrom(other); return this; @@ -799,17 +877,20 @@ public Builder mergeFrom(com.google.datastore.v1.RunQueryRequest other) { mergeReadOptions(other.getReadOptions()); } switch (other.getQueryTypeCase()) { - case QUERY: { - mergeQuery(other.getQuery()); - break; - } - case GQL_QUERY: { - mergeGqlQuery(other.getGqlQuery()); - break; - } - case QUERYTYPE_NOT_SET: { - break; - } + case QUERY: + { + mergeQuery(other.getQuery()); + break; + } + case GQL_QUERY: + { + mergeGqlQuery(other.getGqlQuery()); + break; + } + case QUERYTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -839,12 +920,12 @@ public Builder mergeFrom( } return this; } + private int queryTypeCase_ = 0; private java.lang.Object queryType_; - public QueryTypeCase - getQueryTypeCase() { - return QueryTypeCase.forNumber( - queryTypeCase_); + + public QueryTypeCase getQueryTypeCase() { + return QueryTypeCase.forNumber(queryTypeCase_); } public Builder clearQueryType() { @@ -854,21 +935,22 @@ public Builder clearQueryType() { return this; } - private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -877,20 +959,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -898,54 +981,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the project against which to make the request.
      * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -953,8 +1043,13 @@ public Builder setProjectIdBytes( private com.google.datastore.v1.PartitionId partitionId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder> partitionIdBuilder_; + com.google.datastore.v1.PartitionId, + com.google.datastore.v1.PartitionId.Builder, + com.google.datastore.v1.PartitionIdOrBuilder> + partitionIdBuilder_; /** + * + * *
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -963,12 +1058,15 @@ public Builder setProjectIdBytes(
      * 
* * .google.datastore.v1.PartitionId partition_id = 2; + * * @return Whether the partitionId field is set. */ public boolean hasPartitionId() { return partitionIdBuilder_ != null || partitionId_ != null; } /** + * + * *
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -977,16 +1075,21 @@ public boolean hasPartitionId() {
      * 
* * .google.datastore.v1.PartitionId partition_id = 2; + * * @return The partitionId. */ public com.google.datastore.v1.PartitionId getPartitionId() { if (partitionIdBuilder_ == null) { - return partitionId_ == null ? com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_; + return partitionId_ == null + ? com.google.datastore.v1.PartitionId.getDefaultInstance() + : partitionId_; } else { return partitionIdBuilder_.getMessage(); } } /** + * + * *
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1010,6 +1113,8 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1019,8 +1124,7 @@ public Builder setPartitionId(com.google.datastore.v1.PartitionId value) {
      *
      * .google.datastore.v1.PartitionId partition_id = 2;
      */
-    public Builder setPartitionId(
-        com.google.datastore.v1.PartitionId.Builder builderForValue) {
+    public Builder setPartitionId(com.google.datastore.v1.PartitionId.Builder builderForValue) {
       if (partitionIdBuilder_ == null) {
         partitionId_ = builderForValue.build();
         onChanged();
@@ -1031,6 +1135,8 @@ public Builder setPartitionId(
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1044,7 +1150,9 @@ public Builder mergePartitionId(com.google.datastore.v1.PartitionId value) {
       if (partitionIdBuilder_ == null) {
         if (partitionId_ != null) {
           partitionId_ =
-            com.google.datastore.v1.PartitionId.newBuilder(partitionId_).mergeFrom(value).buildPartial();
+              com.google.datastore.v1.PartitionId.newBuilder(partitionId_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           partitionId_ = value;
         }
@@ -1056,6 +1164,8 @@ public Builder mergePartitionId(com.google.datastore.v1.PartitionId value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1077,6 +1187,8 @@ public Builder clearPartitionId() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1087,11 +1199,13 @@ public Builder clearPartitionId() {
      * .google.datastore.v1.PartitionId partition_id = 2;
      */
     public com.google.datastore.v1.PartitionId.Builder getPartitionIdBuilder() {
-      
+
       onChanged();
       return getPartitionIdFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1105,11 +1219,14 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
       if (partitionIdBuilder_ != null) {
         return partitionIdBuilder_.getMessageOrBuilder();
       } else {
-        return partitionId_ == null ?
-            com.google.datastore.v1.PartitionId.getDefaultInstance() : partitionId_;
+        return partitionId_ == null
+            ? com.google.datastore.v1.PartitionId.getDefaultInstance()
+            : partitionId_;
       }
     }
     /**
+     *
+     *
      * 
      * Entities are partitioned into subsets, identified by a partition ID.
      * Queries are scoped to a single partition.
@@ -1120,14 +1237,17 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
      * .google.datastore.v1.PartitionId partition_id = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder> 
+            com.google.datastore.v1.PartitionId,
+            com.google.datastore.v1.PartitionId.Builder,
+            com.google.datastore.v1.PartitionIdOrBuilder>
         getPartitionIdFieldBuilder() {
       if (partitionIdBuilder_ == null) {
-        partitionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.PartitionId, com.google.datastore.v1.PartitionId.Builder, com.google.datastore.v1.PartitionIdOrBuilder>(
-                getPartitionId(),
-                getParentForChildren(),
-                isClean());
+        partitionIdBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.PartitionId,
+                com.google.datastore.v1.PartitionId.Builder,
+                com.google.datastore.v1.PartitionIdOrBuilder>(
+                getPartitionId(), getParentForChildren(), isClean());
         partitionId_ = null;
       }
       return partitionIdBuilder_;
@@ -1135,34 +1255,47 @@ public com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
 
     private com.google.datastore.v1.ReadOptions readOptions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder> readOptionsBuilder_;
+            com.google.datastore.v1.ReadOptions,
+            com.google.datastore.v1.ReadOptions.Builder,
+            com.google.datastore.v1.ReadOptionsOrBuilder>
+        readOptionsBuilder_;
     /**
+     *
+     *
      * 
      * The options for this query.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return readOptionsBuilder_ != null || readOptions_ != null; } /** + * + * *
      * The options for this query.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return The readOptions. */ public com.google.datastore.v1.ReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null ? com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.datastore.v1.ReadOptions.getDefaultInstance() + : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** + * + * *
      * The options for this query.
      * 
@@ -1183,14 +1316,15 @@ public Builder setReadOptions(com.google.datastore.v1.ReadOptions value) { return this; } /** + * + * *
      * The options for this query.
      * 
* * .google.datastore.v1.ReadOptions read_options = 1; */ - public Builder setReadOptions( - com.google.datastore.v1.ReadOptions.Builder builderForValue) { + public Builder setReadOptions(com.google.datastore.v1.ReadOptions.Builder builderForValue) { if (readOptionsBuilder_ == null) { readOptions_ = builderForValue.build(); onChanged(); @@ -1201,6 +1335,8 @@ public Builder setReadOptions( return this; } /** + * + * *
      * The options for this query.
      * 
@@ -1211,7 +1347,9 @@ public Builder mergeReadOptions(com.google.datastore.v1.ReadOptions value) { if (readOptionsBuilder_ == null) { if (readOptions_ != null) { readOptions_ = - com.google.datastore.v1.ReadOptions.newBuilder(readOptions_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.ReadOptions.newBuilder(readOptions_) + .mergeFrom(value) + .buildPartial(); } else { readOptions_ = value; } @@ -1223,6 +1361,8 @@ public Builder mergeReadOptions(com.google.datastore.v1.ReadOptions value) { return this; } /** + * + * *
      * The options for this query.
      * 
@@ -1241,6 +1381,8 @@ public Builder clearReadOptions() { return this; } /** + * + * *
      * The options for this query.
      * 
@@ -1248,11 +1390,13 @@ public Builder clearReadOptions() { * .google.datastore.v1.ReadOptions read_options = 1; */ public com.google.datastore.v1.ReadOptions.Builder getReadOptionsBuilder() { - + onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * The options for this query.
      * 
@@ -1263,11 +1407,14 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null ? - com.google.datastore.v1.ReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.datastore.v1.ReadOptions.getDefaultInstance() + : readOptions_; } } /** + * + * *
      * The options for this query.
      * 
@@ -1275,27 +1422,36 @@ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { * .google.datastore.v1.ReadOptions read_options = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder> + com.google.datastore.v1.ReadOptions, + com.google.datastore.v1.ReadOptions.Builder, + com.google.datastore.v1.ReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.ReadOptions, com.google.datastore.v1.ReadOptions.Builder, com.google.datastore.v1.ReadOptionsOrBuilder>( - getReadOptions(), - getParentForChildren(), - isClean()); + readOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.ReadOptions, + com.google.datastore.v1.ReadOptions.Builder, + com.google.datastore.v1.ReadOptionsOrBuilder>( + getReadOptions(), getParentForChildren(), isClean()); readOptions_ = null; } return readOptionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> queryBuilder_; + com.google.datastore.v1.Query, + com.google.datastore.v1.Query.Builder, + com.google.datastore.v1.QueryOrBuilder> + queryBuilder_; /** + * + * *
      * The query to run.
      * 
* * .google.datastore.v1.Query query = 3; + * * @return Whether the query field is set. */ @java.lang.Override @@ -1303,11 +1459,14 @@ public boolean hasQuery() { return queryTypeCase_ == 3; } /** + * + * *
      * The query to run.
      * 
* * .google.datastore.v1.Query query = 3; + * * @return The query. */ @java.lang.Override @@ -1325,6 +1484,8 @@ public com.google.datastore.v1.Query getQuery() { } } /** + * + * *
      * The query to run.
      * 
@@ -1345,14 +1506,15 @@ public Builder setQuery(com.google.datastore.v1.Query value) { return this; } /** + * + * *
      * The query to run.
      * 
* * .google.datastore.v1.Query query = 3; */ - public Builder setQuery( - com.google.datastore.v1.Query.Builder builderForValue) { + public Builder setQuery(com.google.datastore.v1.Query.Builder builderForValue) { if (queryBuilder_ == null) { queryType_ = builderForValue.build(); onChanged(); @@ -1363,6 +1525,8 @@ public Builder setQuery( return this; } /** + * + * *
      * The query to run.
      * 
@@ -1371,10 +1535,12 @@ public Builder setQuery( */ public Builder mergeQuery(com.google.datastore.v1.Query value) { if (queryBuilder_ == null) { - if (queryTypeCase_ == 3 && - queryType_ != com.google.datastore.v1.Query.getDefaultInstance()) { - queryType_ = com.google.datastore.v1.Query.newBuilder((com.google.datastore.v1.Query) queryType_) - .mergeFrom(value).buildPartial(); + if (queryTypeCase_ == 3 + && queryType_ != com.google.datastore.v1.Query.getDefaultInstance()) { + queryType_ = + com.google.datastore.v1.Query.newBuilder((com.google.datastore.v1.Query) queryType_) + .mergeFrom(value) + .buildPartial(); } else { queryType_ = value; } @@ -1390,6 +1556,8 @@ public Builder mergeQuery(com.google.datastore.v1.Query value) { return this; } /** + * + * *
      * The query to run.
      * 
@@ -1413,6 +1581,8 @@ public Builder clearQuery() { return this; } /** + * + * *
      * The query to run.
      * 
@@ -1423,6 +1593,8 @@ public com.google.datastore.v1.Query.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** + * + * *
      * The query to run.
      * 
@@ -1441,6 +1613,8 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { } } /** + * + * *
      * The query to run.
      * 
@@ -1448,32 +1622,42 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { * .google.datastore.v1.Query query = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> + com.google.datastore.v1.Query, + com.google.datastore.v1.Query.Builder, + com.google.datastore.v1.QueryOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { if (!(queryTypeCase_ == 3)) { queryType_ = com.google.datastore.v1.Query.getDefaultInstance(); } - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder>( - (com.google.datastore.v1.Query) queryType_, - getParentForChildren(), - isClean()); + queryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Query, + com.google.datastore.v1.Query.Builder, + com.google.datastore.v1.QueryOrBuilder>( + (com.google.datastore.v1.Query) queryType_, getParentForChildren(), isClean()); queryType_ = null; } queryTypeCase_ = 3; - onChanged();; + onChanged(); + ; return queryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.GqlQuery, com.google.datastore.v1.GqlQuery.Builder, com.google.datastore.v1.GqlQueryOrBuilder> gqlQueryBuilder_; + com.google.datastore.v1.GqlQuery, + com.google.datastore.v1.GqlQuery.Builder, + com.google.datastore.v1.GqlQueryOrBuilder> + gqlQueryBuilder_; /** + * + * *
      * The GQL query to run.
      * 
* * .google.datastore.v1.GqlQuery gql_query = 7; + * * @return Whether the gqlQuery field is set. */ @java.lang.Override @@ -1481,11 +1665,14 @@ public boolean hasGqlQuery() { return queryTypeCase_ == 7; } /** + * + * *
      * The GQL query to run.
      * 
* * .google.datastore.v1.GqlQuery gql_query = 7; + * * @return The gqlQuery. */ @java.lang.Override @@ -1503,6 +1690,8 @@ public com.google.datastore.v1.GqlQuery getGqlQuery() { } } /** + * + * *
      * The GQL query to run.
      * 
@@ -1523,14 +1712,15 @@ public Builder setGqlQuery(com.google.datastore.v1.GqlQuery value) { return this; } /** + * + * *
      * The GQL query to run.
      * 
* * .google.datastore.v1.GqlQuery gql_query = 7; */ - public Builder setGqlQuery( - com.google.datastore.v1.GqlQuery.Builder builderForValue) { + public Builder setGqlQuery(com.google.datastore.v1.GqlQuery.Builder builderForValue) { if (gqlQueryBuilder_ == null) { queryType_ = builderForValue.build(); onChanged(); @@ -1541,6 +1731,8 @@ public Builder setGqlQuery( return this; } /** + * + * *
      * The GQL query to run.
      * 
@@ -1549,10 +1741,13 @@ public Builder setGqlQuery( */ public Builder mergeGqlQuery(com.google.datastore.v1.GqlQuery value) { if (gqlQueryBuilder_ == null) { - if (queryTypeCase_ == 7 && - queryType_ != com.google.datastore.v1.GqlQuery.getDefaultInstance()) { - queryType_ = com.google.datastore.v1.GqlQuery.newBuilder((com.google.datastore.v1.GqlQuery) queryType_) - .mergeFrom(value).buildPartial(); + if (queryTypeCase_ == 7 + && queryType_ != com.google.datastore.v1.GqlQuery.getDefaultInstance()) { + queryType_ = + com.google.datastore.v1.GqlQuery.newBuilder( + (com.google.datastore.v1.GqlQuery) queryType_) + .mergeFrom(value) + .buildPartial(); } else { queryType_ = value; } @@ -1568,6 +1763,8 @@ public Builder mergeGqlQuery(com.google.datastore.v1.GqlQuery value) { return this; } /** + * + * *
      * The GQL query to run.
      * 
@@ -1591,6 +1788,8 @@ public Builder clearGqlQuery() { return this; } /** + * + * *
      * The GQL query to run.
      * 
@@ -1601,6 +1800,8 @@ public com.google.datastore.v1.GqlQuery.Builder getGqlQueryBuilder() { return getGqlQueryFieldBuilder().getBuilder(); } /** + * + * *
      * The GQL query to run.
      * 
@@ -1619,6 +1820,8 @@ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() { } } /** + * + * *
      * The GQL query to run.
      * 
@@ -1626,26 +1829,30 @@ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() { * .google.datastore.v1.GqlQuery gql_query = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.GqlQuery, com.google.datastore.v1.GqlQuery.Builder, com.google.datastore.v1.GqlQueryOrBuilder> + com.google.datastore.v1.GqlQuery, + com.google.datastore.v1.GqlQuery.Builder, + com.google.datastore.v1.GqlQueryOrBuilder> getGqlQueryFieldBuilder() { if (gqlQueryBuilder_ == null) { if (!(queryTypeCase_ == 7)) { queryType_ = com.google.datastore.v1.GqlQuery.getDefaultInstance(); } - gqlQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.GqlQuery, com.google.datastore.v1.GqlQuery.Builder, com.google.datastore.v1.GqlQueryOrBuilder>( - (com.google.datastore.v1.GqlQuery) queryType_, - getParentForChildren(), - isClean()); + gqlQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.GqlQuery, + com.google.datastore.v1.GqlQuery.Builder, + com.google.datastore.v1.GqlQueryOrBuilder>( + (com.google.datastore.v1.GqlQuery) queryType_, getParentForChildren(), isClean()); queryType_ = null; } queryTypeCase_ = 7; - onChanged();; + onChanged(); + ; return gqlQueryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1655,12 +1862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.RunQueryRequest) } // @@protoc_insertion_point(class_scope:google.datastore.v1.RunQueryRequest) private static final com.google.datastore.v1.RunQueryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.RunQueryRequest(); } @@ -1669,16 +1876,16 @@ public static com.google.datastore.v1.RunQueryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunQueryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunQueryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1693,6 +1900,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.RunQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java index 8347d9f43..3b54516e3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface RunQueryRequestOrBuilder extends +public interface RunQueryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.RunQueryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the project against which to make the request.
    * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -36,10 +59,13 @@ public interface RunQueryRequestOrBuilder extends
    * 
* * .google.datastore.v1.PartitionId partition_id = 2; + * * @return Whether the partitionId field is set. */ boolean hasPartitionId(); /** + * + * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -48,10 +74,13 @@ public interface RunQueryRequestOrBuilder extends
    * 
* * .google.datastore.v1.PartitionId partition_id = 2; + * * @return The partitionId. */ com.google.datastore.v1.PartitionId getPartitionId(); /** + * + * *
    * Entities are partitioned into subsets, identified by a partition ID.
    * Queries are scoped to a single partition.
@@ -64,24 +93,32 @@ public interface RunQueryRequestOrBuilder extends
   com.google.datastore.v1.PartitionIdOrBuilder getPartitionIdOrBuilder();
 
   /**
+   *
+   *
    * 
    * The options for this query.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** + * + * *
    * The options for this query.
    * 
* * .google.datastore.v1.ReadOptions read_options = 1; + * * @return The readOptions. */ com.google.datastore.v1.ReadOptions getReadOptions(); /** + * + * *
    * The options for this query.
    * 
@@ -91,24 +128,32 @@ public interface RunQueryRequestOrBuilder extends com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder(); /** + * + * *
    * The query to run.
    * 
* * .google.datastore.v1.Query query = 3; + * * @return Whether the query field is set. */ boolean hasQuery(); /** + * + * *
    * The query to run.
    * 
* * .google.datastore.v1.Query query = 3; + * * @return The query. */ com.google.datastore.v1.Query getQuery(); /** + * + * *
    * The query to run.
    * 
@@ -118,24 +163,32 @@ public interface RunQueryRequestOrBuilder extends com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder(); /** + * + * *
    * The GQL query to run.
    * 
* * .google.datastore.v1.GqlQuery gql_query = 7; + * * @return Whether the gqlQuery field is set. */ boolean hasGqlQuery(); /** + * + * *
    * The GQL query to run.
    * 
* * .google.datastore.v1.GqlQuery gql_query = 7; + * * @return The gqlQuery. */ com.google.datastore.v1.GqlQuery getGqlQuery(); /** + * + * *
    * The GQL query to run.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java index fefa01e6a..cc025af6b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * The response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
  * 
* * Protobuf type {@code google.datastore.v1.RunQueryResponse} */ -public final class RunQueryResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunQueryResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.RunQueryResponse) RunQueryResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunQueryResponse.newBuilder() to construct. private RunQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunQueryResponse() { - } + + private RunQueryResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunQueryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RunQueryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,43 @@ private RunQueryResponse( case 0: done = true; break; - case 10: { - com.google.datastore.v1.QueryResultBatch.Builder subBuilder = null; - if (batch_ != null) { - subBuilder = batch_.toBuilder(); - } - batch_ = input.readMessage(com.google.datastore.v1.QueryResultBatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(batch_); - batch_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.datastore.v1.Query.Builder subBuilder = null; - if (query_ != null) { - subBuilder = query_.toBuilder(); + case 10: + { + com.google.datastore.v1.QueryResultBatch.Builder subBuilder = null; + if (batch_ != null) { + subBuilder = batch_.toBuilder(); + } + batch_ = + input.readMessage( + com.google.datastore.v1.QueryResultBatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(batch_); + batch_ = subBuilder.buildPartial(); + } + + break; } - query_ = input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(query_); - query_ = subBuilder.buildPartial(); + case 18: + { + com.google.datastore.v1.Query.Builder subBuilder = null; + if (query_ != null) { + subBuilder = query_.toBuilder(); + } + query_ = input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(query_); + query_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,39 @@ private RunQueryResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RunQueryResponse.class, com.google.datastore.v1.RunQueryResponse.Builder.class); + com.google.datastore.v1.RunQueryResponse.class, + com.google.datastore.v1.RunQueryResponse.Builder.class); } public static final int BATCH_FIELD_NUMBER = 1; private com.google.datastore.v1.QueryResultBatch batch_; /** + * + * *
    * A batch of query results (always present).
    * 
* * .google.datastore.v1.QueryResultBatch batch = 1; + * * @return Whether the batch field is set. */ @java.lang.Override @@ -127,11 +152,14 @@ public boolean hasBatch() { return batch_ != null; } /** + * + * *
    * A batch of query results (always present).
    * 
* * .google.datastore.v1.QueryResultBatch batch = 1; + * * @return The batch. */ @java.lang.Override @@ -139,6 +167,8 @@ public com.google.datastore.v1.QueryResultBatch getBatch() { return batch_ == null ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_; } /** + * + * *
    * A batch of query results (always present).
    * 
@@ -153,11 +183,14 @@ public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() { public static final int QUERY_FIELD_NUMBER = 2; private com.google.datastore.v1.Query query_; /** + * + * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
* * .google.datastore.v1.Query query = 2; + * * @return Whether the query field is set. */ @java.lang.Override @@ -165,11 +198,14 @@ public boolean hasQuery() { return query_ != null; } /** + * + * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
* * .google.datastore.v1.Query query = 2; + * * @return The query. */ @java.lang.Override @@ -177,6 +213,8 @@ public com.google.datastore.v1.Query getQuery() { return query_ == null ? com.google.datastore.v1.Query.getDefaultInstance() : query_; } /** + * + * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
@@ -189,6 +227,7 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +239,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 (batch_ != null) { output.writeMessage(1, getBatch()); } @@ -218,12 +256,10 @@ public int getSerializedSize() { size = 0; if (batch_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBatch()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBatch()); } if (query_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,7 +269,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.datastore.v1.RunQueryResponse)) { return super.equals(obj); @@ -242,13 +278,11 @@ public boolean equals(final java.lang.Object obj) { if (hasBatch() != other.hasBatch()) return false; if (hasBatch()) { - if (!getBatch() - .equals(other.getBatch())) return false; + if (!getBatch().equals(other.getBatch())) return false; } if (hasQuery() != other.hasQuery()) return false; if (hasQuery()) { - if (!getQuery() - .equals(other.getQuery())) return false; + if (!getQuery().equals(other.getQuery())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +308,127 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.RunQueryResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.RunQueryResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RunQueryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RunQueryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RunQueryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RunQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.RunQueryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.RunQueryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.RunQueryResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.RunQueryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.RunQueryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.RunQueryResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.RunQueryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.RunQueryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.RunQueryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
    * 
* * Protobuf type {@code google.datastore.v1.RunQueryResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.RunQueryResponse) com.google.datastore.v1.RunQueryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.RunQueryResponse.class, com.google.datastore.v1.RunQueryResponse.Builder.class); + com.google.datastore.v1.RunQueryResponse.class, + com.google.datastore.v1.RunQueryResponse.Builder.class); } // Construct using com.google.datastore.v1.RunQueryResponse.newBuilder() @@ -393,16 +436,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_RunQueryResponse_descriptor; } @java.lang.Override @@ -443,7 +485,8 @@ public com.google.datastore.v1.RunQueryResponse build() { @java.lang.Override public com.google.datastore.v1.RunQueryResponse buildPartial() { - com.google.datastore.v1.RunQueryResponse result = new com.google.datastore.v1.RunQueryResponse(this); + com.google.datastore.v1.RunQueryResponse result = + new com.google.datastore.v1.RunQueryResponse(this); if (batchBuilder_ == null) { result.batch_ = batch_; } else { @@ -462,38 +505,39 @@ public com.google.datastore.v1.RunQueryResponse 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.datastore.v1.RunQueryResponse) { - return mergeFrom((com.google.datastore.v1.RunQueryResponse)other); + return mergeFrom((com.google.datastore.v1.RunQueryResponse) other); } else { super.mergeFrom(other); return this; @@ -539,34 +583,47 @@ public Builder mergeFrom( private com.google.datastore.v1.QueryResultBatch batch_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder> batchBuilder_; + com.google.datastore.v1.QueryResultBatch, + com.google.datastore.v1.QueryResultBatch.Builder, + com.google.datastore.v1.QueryResultBatchOrBuilder> + batchBuilder_; /** + * + * *
      * A batch of query results (always present).
      * 
* * .google.datastore.v1.QueryResultBatch batch = 1; + * * @return Whether the batch field is set. */ public boolean hasBatch() { return batchBuilder_ != null || batch_ != null; } /** + * + * *
      * A batch of query results (always present).
      * 
* * .google.datastore.v1.QueryResultBatch batch = 1; + * * @return The batch. */ public com.google.datastore.v1.QueryResultBatch getBatch() { if (batchBuilder_ == null) { - return batch_ == null ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_; + return batch_ == null + ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() + : batch_; } else { return batchBuilder_.getMessage(); } } /** + * + * *
      * A batch of query results (always present).
      * 
@@ -587,14 +644,15 @@ public Builder setBatch(com.google.datastore.v1.QueryResultBatch value) { return this; } /** + * + * *
      * A batch of query results (always present).
      * 
* * .google.datastore.v1.QueryResultBatch batch = 1; */ - public Builder setBatch( - com.google.datastore.v1.QueryResultBatch.Builder builderForValue) { + public Builder setBatch(com.google.datastore.v1.QueryResultBatch.Builder builderForValue) { if (batchBuilder_ == null) { batch_ = builderForValue.build(); onChanged(); @@ -605,6 +663,8 @@ public Builder setBatch( return this; } /** + * + * *
      * A batch of query results (always present).
      * 
@@ -615,7 +675,9 @@ public Builder mergeBatch(com.google.datastore.v1.QueryResultBatch value) { if (batchBuilder_ == null) { if (batch_ != null) { batch_ = - com.google.datastore.v1.QueryResultBatch.newBuilder(batch_).mergeFrom(value).buildPartial(); + com.google.datastore.v1.QueryResultBatch.newBuilder(batch_) + .mergeFrom(value) + .buildPartial(); } else { batch_ = value; } @@ -627,6 +689,8 @@ public Builder mergeBatch(com.google.datastore.v1.QueryResultBatch value) { return this; } /** + * + * *
      * A batch of query results (always present).
      * 
@@ -645,6 +709,8 @@ public Builder clearBatch() { return this; } /** + * + * *
      * A batch of query results (always present).
      * 
@@ -652,11 +718,13 @@ public Builder clearBatch() { * .google.datastore.v1.QueryResultBatch batch = 1; */ public com.google.datastore.v1.QueryResultBatch.Builder getBatchBuilder() { - + onChanged(); return getBatchFieldBuilder().getBuilder(); } /** + * + * *
      * A batch of query results (always present).
      * 
@@ -667,11 +735,14 @@ public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() { if (batchBuilder_ != null) { return batchBuilder_.getMessageOrBuilder(); } else { - return batch_ == null ? - com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_; + return batch_ == null + ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() + : batch_; } } /** + * + * *
      * A batch of query results (always present).
      * 
@@ -679,14 +750,17 @@ public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() { * .google.datastore.v1.QueryResultBatch batch = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder> + com.google.datastore.v1.QueryResultBatch, + com.google.datastore.v1.QueryResultBatch.Builder, + com.google.datastore.v1.QueryResultBatchOrBuilder> getBatchFieldBuilder() { if (batchBuilder_ == null) { - batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder>( - getBatch(), - getParentForChildren(), - isClean()); + batchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.QueryResultBatch, + com.google.datastore.v1.QueryResultBatch.Builder, + com.google.datastore.v1.QueryResultBatchOrBuilder>( + getBatch(), getParentForChildren(), isClean()); batch_ = null; } return batchBuilder_; @@ -694,24 +768,33 @@ public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() { private com.google.datastore.v1.Query query_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> queryBuilder_; + com.google.datastore.v1.Query, + com.google.datastore.v1.Query.Builder, + com.google.datastore.v1.QueryOrBuilder> + queryBuilder_; /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
* * .google.datastore.v1.Query query = 2; + * * @return Whether the query field is set. */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
* * .google.datastore.v1.Query query = 2; + * * @return The query. */ public com.google.datastore.v1.Query getQuery() { @@ -722,6 +805,8 @@ public com.google.datastore.v1.Query getQuery() { } } /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -742,14 +827,15 @@ public Builder setQuery(com.google.datastore.v1.Query value) { return this; } /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
* * .google.datastore.v1.Query query = 2; */ - public Builder setQuery( - com.google.datastore.v1.Query.Builder builderForValue) { + public Builder setQuery(com.google.datastore.v1.Query.Builder builderForValue) { if (queryBuilder_ == null) { query_ = builderForValue.build(); onChanged(); @@ -760,6 +846,8 @@ public Builder setQuery( return this; } /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -769,8 +857,7 @@ public Builder setQuery( public Builder mergeQuery(com.google.datastore.v1.Query value) { if (queryBuilder_ == null) { if (query_ != null) { - query_ = - com.google.datastore.v1.Query.newBuilder(query_).mergeFrom(value).buildPartial(); + query_ = com.google.datastore.v1.Query.newBuilder(query_).mergeFrom(value).buildPartial(); } else { query_ = value; } @@ -782,6 +869,8 @@ public Builder mergeQuery(com.google.datastore.v1.Query value) { return this; } /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -800,6 +889,8 @@ public Builder clearQuery() { return this; } /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -807,11 +898,13 @@ public Builder clearQuery() { * .google.datastore.v1.Query query = 2; */ public com.google.datastore.v1.Query.Builder getQueryBuilder() { - + onChanged(); return getQueryFieldBuilder().getBuilder(); } /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -822,11 +915,12 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { if (queryBuilder_ != null) { return queryBuilder_.getMessageOrBuilder(); } else { - return query_ == null ? - com.google.datastore.v1.Query.getDefaultInstance() : query_; + return query_ == null ? com.google.datastore.v1.Query.getDefaultInstance() : query_; } } /** + * + * *
      * The parsed form of the `GqlQuery` from the request, if it was set.
      * 
@@ -834,21 +928,24 @@ public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() { * .google.datastore.v1.Query query = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> + com.google.datastore.v1.Query, + com.google.datastore.v1.Query.Builder, + com.google.datastore.v1.QueryOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder>( - getQuery(), - getParentForChildren(), - isClean()); + queryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Query, + com.google.datastore.v1.Query.Builder, + com.google.datastore.v1.QueryOrBuilder>( + getQuery(), getParentForChildren(), isClean()); query_ = null; } return queryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +955,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.RunQueryResponse) } // @@protoc_insertion_point(class_scope:google.datastore.v1.RunQueryResponse) private static final com.google.datastore.v1.RunQueryResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.RunQueryResponse(); } @@ -872,16 +969,16 @@ public static com.google.datastore.v1.RunQueryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunQueryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunQueryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunQueryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +993,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.RunQueryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java index ca8abb064..849dc5c98 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface RunQueryResponseOrBuilder extends +public interface RunQueryResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.RunQueryResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A batch of query results (always present).
    * 
* * .google.datastore.v1.QueryResultBatch batch = 1; + * * @return Whether the batch field is set. */ boolean hasBatch(); /** + * + * *
    * A batch of query results (always present).
    * 
* * .google.datastore.v1.QueryResultBatch batch = 1; + * * @return The batch. */ com.google.datastore.v1.QueryResultBatch getBatch(); /** + * + * *
    * A batch of query results (always present).
    * 
@@ -35,24 +59,32 @@ public interface RunQueryResponseOrBuilder extends com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder(); /** + * + * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
* * .google.datastore.v1.Query query = 2; + * * @return Whether the query field is set. */ boolean hasQuery(); /** + * + * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
* * .google.datastore.v1.Query query = 2; + * * @return The query. */ com.google.datastore.v1.Query getQuery(); /** + * + * *
    * The parsed form of the `GqlQuery` from the request, if it was set.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java index 460c6b7c7..27a3efa73 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.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/datastore/v1/datastore.proto package com.google.datastore.v1; /** + * + * *
  * Options for beginning a new transaction.
  * Transactions can be created explicitly with calls to
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.datastore.v1.TransactionOptions}
  */
-public final class TransactionOptions extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TransactionOptions extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.TransactionOptions)
     TransactionOptionsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TransactionOptions.newBuilder() to construct.
   private TransactionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private TransactionOptions() {
-  }
+
+  private TransactionOptions() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TransactionOptions();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TransactionOptions(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,41 +71,49 @@ private TransactionOptions(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.datastore.v1.TransactionOptions.ReadWrite.Builder subBuilder = null;
-            if (modeCase_ == 1) {
-              subBuilder = ((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_).toBuilder();
-            }
-            mode_ =
-                input.readMessage(com.google.datastore.v1.TransactionOptions.ReadWrite.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_);
-              mode_ = subBuilder.buildPartial();
-            }
-            modeCase_ = 1;
-            break;
-          }
-          case 18: {
-            com.google.datastore.v1.TransactionOptions.ReadOnly.Builder subBuilder = null;
-            if (modeCase_ == 2) {
-              subBuilder = ((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_).toBuilder();
+          case 10:
+            {
+              com.google.datastore.v1.TransactionOptions.ReadWrite.Builder subBuilder = null;
+              if (modeCase_ == 1) {
+                subBuilder =
+                    ((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_).toBuilder();
+              }
+              mode_ =
+                  input.readMessage(
+                      com.google.datastore.v1.TransactionOptions.ReadWrite.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_);
+                mode_ = subBuilder.buildPartial();
+              }
+              modeCase_ = 1;
+              break;
             }
-            mode_ =
-                input.readMessage(com.google.datastore.v1.TransactionOptions.ReadOnly.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_);
-              mode_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.datastore.v1.TransactionOptions.ReadOnly.Builder subBuilder = null;
+              if (modeCase_ == 2) {
+                subBuilder =
+                    ((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_).toBuilder();
+              }
+              mode_ =
+                  input.readMessage(
+                      com.google.datastore.v1.TransactionOptions.ReadOnly.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_);
+                mode_ = subBuilder.buildPartial();
+              }
+              modeCase_ = 2;
+              break;
             }
-            modeCase_ = 2;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,72 +121,80 @@ private TransactionOptions(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.datastore.v1.DatastoreProto
+        .internal_static_google_datastore_v1_TransactionOptions_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable
+    return com.google.datastore.v1.DatastoreProto
+        .internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.datastore.v1.TransactionOptions.class, com.google.datastore.v1.TransactionOptions.Builder.class);
+            com.google.datastore.v1.TransactionOptions.class,
+            com.google.datastore.v1.TransactionOptions.Builder.class);
   }
 
-  public interface ReadWriteOrBuilder extends
+  public interface ReadWriteOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.datastore.v1.TransactionOptions.ReadWrite)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The transaction identifier of the transaction being retried.
      * 
* * bytes previous_transaction = 1; + * * @return The previousTransaction. */ com.google.protobuf.ByteString getPreviousTransaction(); } /** + * + * *
    * Options specific to read / write transactions.
    * 
* * Protobuf type {@code google.datastore.v1.TransactionOptions.ReadWrite} */ - public static final class ReadWrite extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ReadWrite extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.TransactionOptions.ReadWrite) ReadWriteOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadWrite.newBuilder() to construct. private ReadWrite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReadWrite() { previousTransaction_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadWrite(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReadWrite( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -181,18 +213,18 @@ private ReadWrite( case 0: done = true; break; - case 10: { - - previousTransaction_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + previousTransaction_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -200,34 +232,39 @@ private ReadWrite( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.TransactionOptions.ReadWrite.class, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder.class); + com.google.datastore.v1.TransactionOptions.ReadWrite.class, + com.google.datastore.v1.TransactionOptions.ReadWrite.Builder.class); } public static final int PREVIOUS_TRANSACTION_FIELD_NUMBER = 1; private com.google.protobuf.ByteString previousTransaction_; /** + * + * *
      * The transaction identifier of the transaction being retried.
      * 
* * bytes previous_transaction = 1; + * * @return The previousTransaction. */ @java.lang.Override @@ -236,6 +273,7 @@ public com.google.protobuf.ByteString getPreviousTransaction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,8 +285,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 (!previousTransaction_.isEmpty()) { output.writeBytes(1, previousTransaction_); } @@ -262,8 +299,7 @@ public int getSerializedSize() { size = 0; if (!previousTransaction_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, previousTransaction_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, previousTransaction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,15 +309,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.datastore.v1.TransactionOptions.ReadWrite)) { return super.equals(obj); } - com.google.datastore.v1.TransactionOptions.ReadWrite other = (com.google.datastore.v1.TransactionOptions.ReadWrite) obj; + com.google.datastore.v1.TransactionOptions.ReadWrite other = + (com.google.datastore.v1.TransactionOptions.ReadWrite) obj; - if (!getPreviousTransaction() - .equals(other.getPreviousTransaction())) return false; + if (!getPreviousTransaction().equals(other.getPreviousTransaction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,87 +337,94 @@ public int hashCode() { } public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions.ReadWrite parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.TransactionOptions.ReadWrite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.datastore.v1.TransactionOptions.ReadWrite prototype) { + + public static Builder newBuilder( + com.google.datastore.v1.TransactionOptions.ReadWrite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -391,27 +434,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Options specific to read / write transactions.
      * 
* * Protobuf type {@code google.datastore.v1.TransactionOptions.ReadWrite} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.TransactionOptions.ReadWrite) com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.TransactionOptions.ReadWrite.class, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder.class); + com.google.datastore.v1.TransactionOptions.ReadWrite.class, + com.google.datastore.v1.TransactionOptions.ReadWrite.Builder.class); } // Construct using com.google.datastore.v1.TransactionOptions.ReadWrite.newBuilder() @@ -419,16 +467,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -438,9 +485,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadWrite_descriptor; } @java.lang.Override @@ -459,7 +506,8 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite build() { @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadWrite buildPartial() { - com.google.datastore.v1.TransactionOptions.ReadWrite result = new com.google.datastore.v1.TransactionOptions.ReadWrite(this); + com.google.datastore.v1.TransactionOptions.ReadWrite result = + new com.google.datastore.v1.TransactionOptions.ReadWrite(this); result.previousTransaction_ = previousTransaction_; onBuilt(); return result; @@ -469,38 +517,41 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.datastore.v1.TransactionOptions.ReadWrite) { - return mergeFrom((com.google.datastore.v1.TransactionOptions.ReadWrite)other); + return mergeFrom((com.google.datastore.v1.TransactionOptions.ReadWrite) other); } else { super.mergeFrom(other); return this; @@ -508,7 +559,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.v1.TransactionOptions.ReadWrite other) { - if (other == com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) return this; + if (other == com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) + return this; if (other.getPreviousTransaction() != com.google.protobuf.ByteString.EMPTY) { setPreviousTransaction(other.getPreviousTransaction()); } @@ -531,7 +583,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.datastore.v1.TransactionOptions.ReadWrite) e.getUnfinishedMessage(); + parsedMessage = + (com.google.datastore.v1.TransactionOptions.ReadWrite) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -541,13 +594,17 @@ public Builder mergeFrom( return this; } - private com.google.protobuf.ByteString previousTransaction_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString previousTransaction_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * The transaction identifier of the transaction being retried.
        * 
* * bytes previous_transaction = 1; + * * @return The previousTransaction. */ @java.lang.Override @@ -555,37 +612,44 @@ public com.google.protobuf.ByteString getPreviousTransaction() { return previousTransaction_; } /** + * + * *
        * The transaction identifier of the transaction being retried.
        * 
* * bytes previous_transaction = 1; + * * @param value The previousTransaction to set. * @return This builder for chaining. */ public Builder setPreviousTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + previousTransaction_ = value; onChanged(); return this; } /** + * + * *
        * The transaction identifier of the transaction being retried.
        * 
* * bytes previous_transaction = 1; + * * @return This builder for chaining. */ public Builder clearPreviousTransaction() { - + previousTransaction_ = getDefaultInstance().getPreviousTransaction(); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -598,12 +662,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.TransactionOptions.ReadWrite) } // @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions.ReadWrite) private static final com.google.datastore.v1.TransactionOptions.ReadWrite DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.TransactionOptions.ReadWrite(); } @@ -612,16 +676,16 @@ public static com.google.datastore.v1.TransactionOptions.ReadWrite getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadWrite parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReadWrite(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadWrite parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadWrite(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,34 +700,42 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.TransactionOptions.ReadWrite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ReadOnlyOrBuilder extends + public interface ReadOnlyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.TransactionOptions.ReadOnly) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
      * 
* * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
      * 
* * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
@@ -674,36 +746,37 @@ public interface ReadOnlyOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Options specific to read-only transactions.
    * 
* * Protobuf type {@code google.datastore.v1.TransactionOptions.ReadOnly} */ - public static final class ReadOnly extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ReadOnly extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.datastore.v1.TransactionOptions.ReadOnly) ReadOnlyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadOnly.newBuilder() to construct. private ReadOnly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadOnly() { - } + + private ReadOnly() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadOnly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReadOnly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -722,26 +795,28 @@ private ReadOnly( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -749,35 +824,40 @@ private ReadOnly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.TransactionOptions.ReadOnly.class, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder.class); + com.google.datastore.v1.TransactionOptions.ReadOnly.class, + com.google.datastore.v1.TransactionOptions.ReadOnly.Builder.class); } public static final int READ_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp readTime_; /** + * + * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
      * 
* * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -785,12 +865,15 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
      * 
* * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ @java.lang.Override @@ -798,6 +881,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
      * Reads entities at the given time.
      * This may not be older than 60 seconds.
@@ -811,6 +896,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -822,8 +908,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 (readTime_ != null) {
         output.writeMessage(1, getReadTime());
       }
@@ -837,8 +922,7 @@ public int getSerializedSize() {
 
       size = 0;
       if (readTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getReadTime());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -848,17 +932,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.datastore.v1.TransactionOptions.ReadOnly)) {
         return super.equals(obj);
       }
-      com.google.datastore.v1.TransactionOptions.ReadOnly other = (com.google.datastore.v1.TransactionOptions.ReadOnly) obj;
+      com.google.datastore.v1.TransactionOptions.ReadOnly other =
+          (com.google.datastore.v1.TransactionOptions.ReadOnly) obj;
 
       if (hasReadTime() != other.hasReadTime()) return false;
       if (hasReadTime()) {
-        if (!getReadTime()
-            .equals(other.getReadTime())) return false;
+        if (!getReadTime().equals(other.getReadTime())) return false;
       }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -881,87 +965,94 @@ public int hashCode() {
     }
 
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.datastore.v1.TransactionOptions.ReadOnly parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.datastore.v1.TransactionOptions.ReadOnly parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.datastore.v1.TransactionOptions.ReadOnly parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.datastore.v1.TransactionOptions.ReadOnly prototype) {
+
+    public static Builder newBuilder(
+        com.google.datastore.v1.TransactionOptions.ReadOnly prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -971,27 +1062,32 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Options specific to read-only transactions.
      * 
* * Protobuf type {@code google.datastore.v1.TransactionOptions.ReadOnly} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.datastore.v1.TransactionOptions.ReadOnly) com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.datastore.v1.TransactionOptions.ReadOnly.class, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder.class); + com.google.datastore.v1.TransactionOptions.ReadOnly.class, + com.google.datastore.v1.TransactionOptions.ReadOnly.Builder.class); } // Construct using com.google.datastore.v1.TransactionOptions.ReadOnly.newBuilder() @@ -999,16 +1095,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1022,9 +1117,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.datastore.v1.DatastoreProto + .internal_static_google_datastore_v1_TransactionOptions_ReadOnly_descriptor; } @java.lang.Override @@ -1043,7 +1138,8 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly build() { @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadOnly buildPartial() { - com.google.datastore.v1.TransactionOptions.ReadOnly result = new com.google.datastore.v1.TransactionOptions.ReadOnly(this); + com.google.datastore.v1.TransactionOptions.ReadOnly result = + new com.google.datastore.v1.TransactionOptions.ReadOnly(this); if (readTimeBuilder_ == null) { result.readTime_ = readTime_; } else { @@ -1057,38 +1153,41 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.datastore.v1.TransactionOptions.ReadOnly) { - return mergeFrom((com.google.datastore.v1.TransactionOptions.ReadOnly)other); + return mergeFrom((com.google.datastore.v1.TransactionOptions.ReadOnly) other); } else { super.mergeFrom(other); return this; @@ -1096,7 +1195,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.datastore.v1.TransactionOptions.ReadOnly other) { - if (other == com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance()) return this; + if (other == com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance()) + return this; if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } @@ -1119,7 +1219,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.datastore.v1.TransactionOptions.ReadOnly) e.getUnfinishedMessage(); + parsedMessage = + (com.google.datastore.v1.TransactionOptions.ReadOnly) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1131,26 +1232,35 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
        * 
* * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
        * 
* * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1161,6 +1271,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1182,6 +1294,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1189,8 +1303,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp read_time = 1;
        */
-      public Builder setReadTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (readTimeBuilder_ == null) {
           readTime_ = builderForValue.build();
           onChanged();
@@ -1201,6 +1314,8 @@ public Builder setReadTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1212,7 +1327,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
         if (readTimeBuilder_ == null) {
           if (readTime_ != null) {
             readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
           } else {
             readTime_ = value;
           }
@@ -1224,6 +1339,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1243,6 +1360,8 @@ public Builder clearReadTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1251,11 +1370,13 @@ public Builder clearReadTime() {
        * .google.protobuf.Timestamp read_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-        
+
         onChanged();
         return getReadTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1267,11 +1388,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
         if (readTimeBuilder_ != null) {
           return readTimeBuilder_.getMessageOrBuilder();
         } else {
-          return readTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+          return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
         }
       }
       /**
+       *
+       *
        * 
        * Reads entities at the given time.
        * This may not be older than 60 seconds.
@@ -1280,18 +1402,22 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * .google.protobuf.Timestamp read_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getReadTimeFieldBuilder() {
         if (readTimeBuilder_ == null) {
-          readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getReadTime(),
-                  getParentForChildren(),
-                  isClean());
+          readTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getReadTime(), getParentForChildren(), isClean());
           readTime_ = null;
         }
         return readTimeBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1304,12 +1430,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.datastore.v1.TransactionOptions.ReadOnly)
     }
 
     // @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions.ReadOnly)
     private static final com.google.datastore.v1.TransactionOptions.ReadOnly DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.datastore.v1.TransactionOptions.ReadOnly();
     }
@@ -1318,16 +1444,16 @@ public static com.google.datastore.v1.TransactionOptions.ReadOnly getDefaultInst
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public ReadOnly parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new ReadOnly(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public ReadOnly parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new ReadOnly(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1342,18 +1468,20 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.datastore.v1.TransactionOptions.ReadOnly getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private int modeCase_ = 0;
   private java.lang.Object mode_;
+
   public enum ModeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     READ_WRITE(1),
     READ_ONLY(2),
     MODE_NOT_SET(0);
     private final int value;
+
     private ModeCase(int value) {
       this.value = value;
     }
@@ -1369,30 +1497,36 @@ public static ModeCase valueOf(int value) {
 
     public static ModeCase forNumber(int value) {
       switch (value) {
-        case 1: return READ_WRITE;
-        case 2: return READ_ONLY;
-        case 0: return MODE_NOT_SET;
-        default: return null;
+        case 1:
+          return READ_WRITE;
+        case 2:
+          return READ_ONLY;
+        case 0:
+          return MODE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ModeCase
-  getModeCase() {
-    return ModeCase.forNumber(
-        modeCase_);
+  public ModeCase getModeCase() {
+    return ModeCase.forNumber(modeCase_);
   }
 
   public static final int READ_WRITE_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The transaction should allow both reads and writes.
    * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; + * * @return Whether the readWrite field is set. */ @java.lang.Override @@ -1400,21 +1534,26 @@ public boolean hasReadWrite() { return modeCase_ == 1; } /** + * + * *
    * The transaction should allow both reads and writes.
    * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; + * * @return The readWrite. */ @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { if (modeCase_ == 1) { - return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; + return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } /** + * + * *
    * The transaction should allow both reads and writes.
    * 
@@ -1424,18 +1563,21 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder() { if (modeCase_ == 1) { - return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; + return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } public static final int READ_ONLY_FIELD_NUMBER = 2; /** + * + * *
    * The transaction should only allow reads.
    * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; + * * @return Whether the readOnly field is set. */ @java.lang.Override @@ -1443,21 +1585,26 @@ public boolean hasReadOnly() { return modeCase_ == 2; } /** + * + * *
    * The transaction should only allow reads.
    * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; + * * @return The readOnly. */ @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadOnly getReadOnly() { if (modeCase_ == 2) { - return (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_; + return (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_; } return com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance(); } /** + * + * *
    * The transaction should only allow reads.
    * 
@@ -1467,12 +1614,13 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly getReadOnly() { @java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder() { if (modeCase_ == 2) { - return (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_; + return (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_; } return com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1484,8 +1632,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 (modeCase_ == 1) { output.writeMessage(1, (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_); } @@ -1502,12 +1649,14 @@ public int getSerializedSize() { size = 0; if (modeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_); } if (modeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1517,22 +1666,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.datastore.v1.TransactionOptions)) { return super.equals(obj); } - com.google.datastore.v1.TransactionOptions other = (com.google.datastore.v1.TransactionOptions) obj; + com.google.datastore.v1.TransactionOptions other = + (com.google.datastore.v1.TransactionOptions) obj; if (!getModeCase().equals(other.getModeCase())) return false; switch (modeCase_) { case 1: - if (!getReadWrite() - .equals(other.getReadWrite())) return false; + if (!getReadWrite().equals(other.getReadWrite())) return false; break; case 2: - if (!getReadOnly() - .equals(other.getReadOnly())) return false; + if (!getReadOnly().equals(other.getReadOnly())) return false; break; case 0: default: @@ -1565,97 +1713,104 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.TransactionOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.TransactionOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.TransactionOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.TransactionOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.TransactionOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.TransactionOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.TransactionOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.TransactionOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.TransactionOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.TransactionOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.datastore.v1.TransactionOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.TransactionOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.TransactionOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.TransactionOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.TransactionOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 beginning a new transaction.
    * Transactions can be created explicitly with calls to
@@ -1665,21 +1820,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.v1.TransactionOptions}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.TransactionOptions)
       com.google.datastore.v1.TransactionOptionsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.v1.DatastoreProto
+          .internal_static_google_datastore_v1_TransactionOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable
+      return com.google.datastore.v1.DatastoreProto
+          .internal_static_google_datastore_v1_TransactionOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.datastore.v1.TransactionOptions.class, com.google.datastore.v1.TransactionOptions.Builder.class);
+              com.google.datastore.v1.TransactionOptions.class,
+              com.google.datastore.v1.TransactionOptions.Builder.class);
     }
 
     // Construct using com.google.datastore.v1.TransactionOptions.newBuilder()
@@ -1687,16 +1844,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1706,9 +1862,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_TransactionOptions_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.v1.DatastoreProto
+          .internal_static_google_datastore_v1_TransactionOptions_descriptor;
     }
 
     @java.lang.Override
@@ -1727,7 +1883,8 @@ public com.google.datastore.v1.TransactionOptions build() {
 
     @java.lang.Override
     public com.google.datastore.v1.TransactionOptions buildPartial() {
-      com.google.datastore.v1.TransactionOptions result = new com.google.datastore.v1.TransactionOptions(this);
+      com.google.datastore.v1.TransactionOptions result =
+          new com.google.datastore.v1.TransactionOptions(this);
       if (modeCase_ == 1) {
         if (readWriteBuilder_ == null) {
           result.mode_ = mode_;
@@ -1751,38 +1908,39 @@ public com.google.datastore.v1.TransactionOptions 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.datastore.v1.TransactionOptions) {
-        return mergeFrom((com.google.datastore.v1.TransactionOptions)other);
+        return mergeFrom((com.google.datastore.v1.TransactionOptions) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1792,17 +1950,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.datastore.v1.TransactionOptions other) {
       if (other == com.google.datastore.v1.TransactionOptions.getDefaultInstance()) return this;
       switch (other.getModeCase()) {
-        case READ_WRITE: {
-          mergeReadWrite(other.getReadWrite());
-          break;
-        }
-        case READ_ONLY: {
-          mergeReadOnly(other.getReadOnly());
-          break;
-        }
-        case MODE_NOT_SET: {
-          break;
-        }
+        case READ_WRITE:
+          {
+            mergeReadWrite(other.getReadWrite());
+            break;
+          }
+        case READ_ONLY:
+          {
+            mergeReadOnly(other.getReadOnly());
+            break;
+          }
+        case MODE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1832,12 +1993,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int modeCase_ = 0;
     private java.lang.Object mode_;
-    public ModeCase
-        getModeCase() {
-      return ModeCase.forNumber(
-          modeCase_);
+
+    public ModeCase getModeCase() {
+      return ModeCase.forNumber(modeCase_);
     }
 
     public Builder clearMode() {
@@ -1847,15 +2008,20 @@ public Builder clearMode() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.TransactionOptions.ReadWrite, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder> readWriteBuilder_;
+            com.google.datastore.v1.TransactionOptions.ReadWrite,
+            com.google.datastore.v1.TransactionOptions.ReadWrite.Builder,
+            com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder>
+        readWriteBuilder_;
     /**
+     *
+     *
      * 
      * The transaction should allow both reads and writes.
      * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; + * * @return Whether the readWrite field is set. */ @java.lang.Override @@ -1863,11 +2029,14 @@ public boolean hasReadWrite() { return modeCase_ == 1; } /** + * + * *
      * The transaction should allow both reads and writes.
      * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; + * * @return The readWrite. */ @java.lang.Override @@ -1885,6 +2054,8 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { } } /** + * + * *
      * The transaction should allow both reads and writes.
      * 
@@ -1905,6 +2076,8 @@ public Builder setReadWrite(com.google.datastore.v1.TransactionOptions.ReadWrite return this; } /** + * + * *
      * The transaction should allow both reads and writes.
      * 
@@ -1923,6 +2096,8 @@ public Builder setReadWrite( return this; } /** + * + * *
      * The transaction should allow both reads and writes.
      * 
@@ -1931,10 +2106,13 @@ public Builder setReadWrite( */ public Builder mergeReadWrite(com.google.datastore.v1.TransactionOptions.ReadWrite value) { if (readWriteBuilder_ == null) { - if (modeCase_ == 1 && - mode_ != com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) { - mode_ = com.google.datastore.v1.TransactionOptions.ReadWrite.newBuilder((com.google.datastore.v1.TransactionOptions.ReadWrite) mode_) - .mergeFrom(value).buildPartial(); + if (modeCase_ == 1 + && mode_ != com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) { + mode_ = + com.google.datastore.v1.TransactionOptions.ReadWrite.newBuilder( + (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_) + .mergeFrom(value) + .buildPartial(); } else { mode_ = value; } @@ -1950,6 +2128,8 @@ public Builder mergeReadWrite(com.google.datastore.v1.TransactionOptions.ReadWri return this; } /** + * + * *
      * The transaction should allow both reads and writes.
      * 
@@ -1973,6 +2153,8 @@ public Builder clearReadWrite() { return this; } /** + * + * *
      * The transaction should allow both reads and writes.
      * 
@@ -1983,6 +2165,8 @@ public com.google.datastore.v1.TransactionOptions.ReadWrite.Builder getReadWrite return getReadWriteFieldBuilder().getBuilder(); } /** + * + * *
      * The transaction should allow both reads and writes.
      * 
@@ -2001,6 +2185,8 @@ public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWrit } } /** + * + * *
      * The transaction should allow both reads and writes.
      * 
@@ -2008,32 +2194,44 @@ public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWrit * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadWrite, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder> + com.google.datastore.v1.TransactionOptions.ReadWrite, + com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, + com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder> getReadWriteFieldBuilder() { if (readWriteBuilder_ == null) { if (!(modeCase_ == 1)) { mode_ = com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } - readWriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadWrite, com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder>( + readWriteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.TransactionOptions.ReadWrite, + com.google.datastore.v1.TransactionOptions.ReadWrite.Builder, + com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder>( (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_, getParentForChildren(), isClean()); mode_ = null; } modeCase_ = 1; - onChanged();; + onChanged(); + ; return readWriteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadOnly, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder> readOnlyBuilder_; + com.google.datastore.v1.TransactionOptions.ReadOnly, + com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, + com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder> + readOnlyBuilder_; /** + * + * *
      * The transaction should only allow reads.
      * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; + * * @return Whether the readOnly field is set. */ @java.lang.Override @@ -2041,11 +2239,14 @@ public boolean hasReadOnly() { return modeCase_ == 2; } /** + * + * *
      * The transaction should only allow reads.
      * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; + * * @return The readOnly. */ @java.lang.Override @@ -2063,6 +2264,8 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly getReadOnly() { } } /** + * + * *
      * The transaction should only allow reads.
      * 
@@ -2083,6 +2286,8 @@ public Builder setReadOnly(com.google.datastore.v1.TransactionOptions.ReadOnly v return this; } /** + * + * *
      * The transaction should only allow reads.
      * 
@@ -2101,6 +2306,8 @@ public Builder setReadOnly( return this; } /** + * + * *
      * The transaction should only allow reads.
      * 
@@ -2109,10 +2316,13 @@ public Builder setReadOnly( */ public Builder mergeReadOnly(com.google.datastore.v1.TransactionOptions.ReadOnly value) { if (readOnlyBuilder_ == null) { - if (modeCase_ == 2 && - mode_ != com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance()) { - mode_ = com.google.datastore.v1.TransactionOptions.ReadOnly.newBuilder((com.google.datastore.v1.TransactionOptions.ReadOnly) mode_) - .mergeFrom(value).buildPartial(); + if (modeCase_ == 2 + && mode_ != com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance()) { + mode_ = + com.google.datastore.v1.TransactionOptions.ReadOnly.newBuilder( + (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_) + .mergeFrom(value) + .buildPartial(); } else { mode_ = value; } @@ -2128,6 +2338,8 @@ public Builder mergeReadOnly(com.google.datastore.v1.TransactionOptions.ReadOnly return this; } /** + * + * *
      * The transaction should only allow reads.
      * 
@@ -2151,6 +2363,8 @@ public Builder clearReadOnly() { return this; } /** + * + * *
      * The transaction should only allow reads.
      * 
@@ -2161,6 +2375,8 @@ public com.google.datastore.v1.TransactionOptions.ReadOnly.Builder getReadOnlyBu return getReadOnlyFieldBuilder().getBuilder(); } /** + * + * *
      * The transaction should only allow reads.
      * 
@@ -2179,6 +2395,8 @@ public com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder getReadOnlyO } } /** + * + * *
      * The transaction should only allow reads.
      * 
@@ -2186,26 +2404,32 @@ public com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder getReadOnlyO * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadOnly, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder> + com.google.datastore.v1.TransactionOptions.ReadOnly, + com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, + com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder> getReadOnlyFieldBuilder() { if (readOnlyBuilder_ == null) { if (!(modeCase_ == 2)) { mode_ = com.google.datastore.v1.TransactionOptions.ReadOnly.getDefaultInstance(); } - readOnlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.TransactionOptions.ReadOnly, com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder>( + readOnlyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.TransactionOptions.ReadOnly, + com.google.datastore.v1.TransactionOptions.ReadOnly.Builder, + com.google.datastore.v1.TransactionOptions.ReadOnlyOrBuilder>( (com.google.datastore.v1.TransactionOptions.ReadOnly) mode_, getParentForChildren(), isClean()); mode_ = null; } modeCase_ = 2; - onChanged();; + onChanged(); + ; return readOnlyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2215,12 +2439,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.TransactionOptions) } // @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions) private static final com.google.datastore.v1.TransactionOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.TransactionOptions(); } @@ -2229,16 +2453,16 @@ public static com.google.datastore.v1.TransactionOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransactionOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2253,6 +2477,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.TransactionOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java index 494e99246..a716d733f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto package com.google.datastore.v1; -public interface TransactionOptionsOrBuilder extends +public interface TransactionOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.TransactionOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The transaction should allow both reads and writes.
    * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; + * * @return Whether the readWrite field is set. */ boolean hasReadWrite(); /** + * + * *
    * The transaction should allow both reads and writes.
    * 
* * .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; + * * @return The readWrite. */ com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite(); /** + * + * *
    * The transaction should allow both reads and writes.
    * 
@@ -35,24 +59,32 @@ public interface TransactionOptionsOrBuilder extends com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder(); /** + * + * *
    * The transaction should only allow reads.
    * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; + * * @return Whether the readOnly field is set. */ boolean hasReadOnly(); /** + * + * *
    * The transaction should only allow reads.
    * 
* * .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; + * * @return The readOnly. */ com.google.datastore.v1.TransactionOptions.ReadOnly getReadOnly(); /** + * + * *
    * The transaction should only allow reads.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java index 5351881de..9c1dc9ae8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/entity.proto package com.google.datastore.v1; /** + * + * *
  * A message that can hold any of the supported value types and associated
  * metadata.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.datastore.v1.Value}
  */
-public final class Value extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Value extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.datastore.v1.Value)
     ValueOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Value.newBuilder() to construct.
   private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Value() {
-  }
+
+  private Value() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Value();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Value(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,125 +69,135 @@ private Value(
           case 0:
             done = true;
             break;
-          case 8: {
-            valueType_ = input.readBool();
-            valueTypeCase_ = 1;
-            break;
-          }
-          case 16: {
-            valueType_ = input.readInt64();
-            valueTypeCase_ = 2;
-            break;
-          }
-          case 25: {
-            valueType_ = input.readDouble();
-            valueTypeCase_ = 3;
-            break;
-          }
-          case 42: {
-            com.google.datastore.v1.Key.Builder subBuilder = null;
-            if (valueTypeCase_ == 5) {
-              subBuilder = ((com.google.datastore.v1.Key) valueType_).toBuilder();
+          case 8:
+            {
+              valueType_ = input.readBool();
+              valueTypeCase_ = 1;
+              break;
             }
-            valueType_ =
-                input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.datastore.v1.Key) valueType_);
-              valueType_ = subBuilder.buildPartial();
+          case 16:
+            {
+              valueType_ = input.readInt64();
+              valueTypeCase_ = 2;
+              break;
             }
-            valueTypeCase_ = 5;
-            break;
-          }
-          case 50: {
-            com.google.datastore.v1.Entity.Builder subBuilder = null;
-            if (valueTypeCase_ == 6) {
-              subBuilder = ((com.google.datastore.v1.Entity) valueType_).toBuilder();
+          case 25:
+            {
+              valueType_ = input.readDouble();
+              valueTypeCase_ = 3;
+              break;
             }
-            valueType_ =
-                input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.datastore.v1.Entity) valueType_);
-              valueType_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.datastore.v1.Key.Builder subBuilder = null;
+              if (valueTypeCase_ == 5) {
+                subBuilder = ((com.google.datastore.v1.Key) valueType_).toBuilder();
+              }
+              valueType_ =
+                  input.readMessage(com.google.datastore.v1.Key.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.datastore.v1.Key) valueType_);
+                valueType_ = subBuilder.buildPartial();
+              }
+              valueTypeCase_ = 5;
+              break;
             }
-            valueTypeCase_ = 6;
-            break;
-          }
-          case 66: {
-            com.google.type.LatLng.Builder subBuilder = null;
-            if (valueTypeCase_ == 8) {
-              subBuilder = ((com.google.type.LatLng) valueType_).toBuilder();
+          case 50:
+            {
+              com.google.datastore.v1.Entity.Builder subBuilder = null;
+              if (valueTypeCase_ == 6) {
+                subBuilder = ((com.google.datastore.v1.Entity) valueType_).toBuilder();
+              }
+              valueType_ =
+                  input.readMessage(com.google.datastore.v1.Entity.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.datastore.v1.Entity) valueType_);
+                valueType_ = subBuilder.buildPartial();
+              }
+              valueTypeCase_ = 6;
+              break;
             }
-            valueType_ =
-                input.readMessage(com.google.type.LatLng.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.type.LatLng) valueType_);
-              valueType_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.type.LatLng.Builder subBuilder = null;
+              if (valueTypeCase_ == 8) {
+                subBuilder = ((com.google.type.LatLng) valueType_).toBuilder();
+              }
+              valueType_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.type.LatLng) valueType_);
+                valueType_ = subBuilder.buildPartial();
+              }
+              valueTypeCase_ = 8;
+              break;
             }
-            valueTypeCase_ = 8;
-            break;
-          }
-          case 74: {
-            com.google.datastore.v1.ArrayValue.Builder subBuilder = null;
-            if (valueTypeCase_ == 9) {
-              subBuilder = ((com.google.datastore.v1.ArrayValue) valueType_).toBuilder();
+          case 74:
+            {
+              com.google.datastore.v1.ArrayValue.Builder subBuilder = null;
+              if (valueTypeCase_ == 9) {
+                subBuilder = ((com.google.datastore.v1.ArrayValue) valueType_).toBuilder();
+              }
+              valueType_ =
+                  input.readMessage(com.google.datastore.v1.ArrayValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.datastore.v1.ArrayValue) valueType_);
+                valueType_ = subBuilder.buildPartial();
+              }
+              valueTypeCase_ = 9;
+              break;
             }
-            valueType_ =
-                input.readMessage(com.google.datastore.v1.ArrayValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.datastore.v1.ArrayValue) valueType_);
-              valueType_ = subBuilder.buildPartial();
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (valueTypeCase_ == 10) {
+                subBuilder = ((com.google.protobuf.Timestamp) valueType_).toBuilder();
+              }
+              valueType_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.protobuf.Timestamp) valueType_);
+                valueType_ = subBuilder.buildPartial();
+              }
+              valueTypeCase_ = 10;
+              break;
             }
-            valueTypeCase_ = 9;
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (valueTypeCase_ == 10) {
-              subBuilder = ((com.google.protobuf.Timestamp) valueType_).toBuilder();
+          case 88:
+            {
+              int rawValue = input.readEnum();
+              valueTypeCase_ = 11;
+              valueType_ = rawValue;
+              break;
             }
-            valueType_ =
-                input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.protobuf.Timestamp) valueType_);
-              valueType_ = subBuilder.buildPartial();
+          case 112:
+            {
+              meaning_ = input.readInt32();
+              break;
             }
-            valueTypeCase_ = 10;
-            break;
-          }
-          case 88: {
-            int rawValue = input.readEnum();
-            valueTypeCase_ = 11;
-            valueType_ = rawValue;
-            break;
-          }
-          case 112: {
-
-            meaning_ = input.readInt32();
-            break;
-          }
-          case 138: {
-            java.lang.String s = input.readStringRequireUtf8();
-            valueTypeCase_ = 17;
-            valueType_ = s;
-            break;
-          }
-          case 146: {
-            valueType_ = input.readBytes();
-            valueTypeCase_ = 18;
-            break;
-          }
-          case 152: {
-
-            excludeFromIndexes_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 138:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              valueTypeCase_ = 17;
+              valueType_ = s;
+              break;
+            }
+          case 146:
+            {
+              valueType_ = input.readBytes();
+              valueTypeCase_ = 18;
+              break;
+            }
+          case 152:
+            {
+              excludeFromIndexes_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -179,30 +205,32 @@ private Value(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_fieldAccessorTable
+    return com.google.datastore.v1.EntityProto
+        .internal_static_google_datastore_v1_Value_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.datastore.v1.Value.class, com.google.datastore.v1.Value.Builder.class);
   }
 
   private int valueTypeCase_ = 0;
   private java.lang.Object valueType_;
+
   public enum ValueTypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NULL_VALUE(11),
     BOOLEAN_VALUE(1),
@@ -217,6 +245,7 @@ public enum ValueTypeCase
     ARRAY_VALUE(9),
     VALUETYPE_NOT_SET(0);
     private final int value;
+
     private ValueTypeCase(int value) {
       this.value = value;
     }
@@ -232,50 +261,68 @@ public static ValueTypeCase valueOf(int value) {
 
     public static ValueTypeCase forNumber(int value) {
       switch (value) {
-        case 11: return NULL_VALUE;
-        case 1: return BOOLEAN_VALUE;
-        case 2: return INTEGER_VALUE;
-        case 3: return DOUBLE_VALUE;
-        case 10: return TIMESTAMP_VALUE;
-        case 5: return KEY_VALUE;
-        case 17: return STRING_VALUE;
-        case 18: return BLOB_VALUE;
-        case 8: return GEO_POINT_VALUE;
-        case 6: return ENTITY_VALUE;
-        case 9: return ARRAY_VALUE;
-        case 0: return VALUETYPE_NOT_SET;
-        default: return null;
+        case 11:
+          return NULL_VALUE;
+        case 1:
+          return BOOLEAN_VALUE;
+        case 2:
+          return INTEGER_VALUE;
+        case 3:
+          return DOUBLE_VALUE;
+        case 10:
+          return TIMESTAMP_VALUE;
+        case 5:
+          return KEY_VALUE;
+        case 17:
+          return STRING_VALUE;
+        case 18:
+          return BLOB_VALUE;
+        case 8:
+          return GEO_POINT_VALUE;
+        case 6:
+          return ENTITY_VALUE;
+        case 9:
+          return ARRAY_VALUE;
+        case 0:
+          return VALUETYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ValueTypeCase
-  getValueTypeCase() {
-    return ValueTypeCase.forNumber(
-        valueTypeCase_);
+  public ValueTypeCase getValueTypeCase() {
+    return ValueTypeCase.forNumber(valueTypeCase_);
   }
 
   public static final int NULL_VALUE_FIELD_NUMBER = 11;
   /**
+   *
+   *
    * 
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; + * * @return Whether the nullValue field is set. */ public boolean hasNullValue() { return valueTypeCase_ == 11; } /** + * + * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; + * * @return The enum numeric value on the wire for nullValue. */ public int getNullValueValue() { @@ -285,18 +332,21 @@ public int getNullValueValue() { return 0; } /** + * + * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; + * * @return The nullValue. */ public com.google.protobuf.NullValue getNullValue() { if (valueTypeCase_ == 11) { @SuppressWarnings("deprecation") - com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf( - (java.lang.Integer) valueType_); + com.google.protobuf.NullValue result = + com.google.protobuf.NullValue.valueOf((java.lang.Integer) valueType_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; @@ -304,11 +354,14 @@ public com.google.protobuf.NullValue getNullValue() { public static final int BOOLEAN_VALUE_FIELD_NUMBER = 1; /** + * + * *
    * A boolean value.
    * 
* * bool boolean_value = 1; + * * @return Whether the booleanValue field is set. */ @java.lang.Override @@ -316,11 +369,14 @@ public boolean hasBooleanValue() { return valueTypeCase_ == 1; } /** + * + * *
    * A boolean value.
    * 
* * bool boolean_value = 1; + * * @return The booleanValue. */ @java.lang.Override @@ -333,11 +389,14 @@ public boolean getBooleanValue() { public static final int INTEGER_VALUE_FIELD_NUMBER = 2; /** + * + * *
    * An integer value.
    * 
* * int64 integer_value = 2; + * * @return Whether the integerValue field is set. */ @java.lang.Override @@ -345,11 +404,14 @@ public boolean hasIntegerValue() { return valueTypeCase_ == 2; } /** + * + * *
    * An integer value.
    * 
* * int64 integer_value = 2; + * * @return The integerValue. */ @java.lang.Override @@ -362,11 +424,14 @@ public long getIntegerValue() { public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; /** + * + * *
    * A double value.
    * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ @java.lang.Override @@ -374,11 +439,14 @@ public boolean hasDoubleValue() { return valueTypeCase_ == 3; } /** + * + * *
    * A double value.
    * 
* * double double_value = 3; + * * @return The doubleValue. */ @java.lang.Override @@ -391,6 +459,8 @@ public double getDoubleValue() { public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 10; /** + * + * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -398,6 +468,7 @@ public double getDoubleValue() {
    * 
* * .google.protobuf.Timestamp timestamp_value = 10; + * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -405,6 +476,8 @@ public boolean hasTimestampValue() { return valueTypeCase_ == 10; } /** + * + * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -412,16 +485,19 @@ public boolean hasTimestampValue() {
    * 
* * .google.protobuf.Timestamp timestamp_value = 10; + * * @return The timestampValue. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestampValue() { if (valueTypeCase_ == 10) { - return (com.google.protobuf.Timestamp) valueType_; + return (com.google.protobuf.Timestamp) valueType_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -433,18 +509,21 @@ public com.google.protobuf.Timestamp getTimestampValue() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
     if (valueTypeCase_ == 10) {
-       return (com.google.protobuf.Timestamp) valueType_;
+      return (com.google.protobuf.Timestamp) valueType_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int KEY_VALUE_FIELD_NUMBER = 5;
   /**
+   *
+   *
    * 
    * A key value.
    * 
* * .google.datastore.v1.Key key_value = 5; + * * @return Whether the keyValue field is set. */ @java.lang.Override @@ -452,21 +531,26 @@ public boolean hasKeyValue() { return valueTypeCase_ == 5; } /** + * + * *
    * A key value.
    * 
* * .google.datastore.v1.Key key_value = 5; + * * @return The keyValue. */ @java.lang.Override public com.google.datastore.v1.Key getKeyValue() { if (valueTypeCase_ == 5) { - return (com.google.datastore.v1.Key) valueType_; + return (com.google.datastore.v1.Key) valueType_; } return com.google.datastore.v1.Key.getDefaultInstance(); } /** + * + * *
    * A key value.
    * 
@@ -476,13 +560,15 @@ public com.google.datastore.v1.Key getKeyValue() { @java.lang.Override public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() { if (valueTypeCase_ == 5) { - return (com.google.datastore.v1.Key) valueType_; + return (com.google.datastore.v1.Key) valueType_; } return com.google.datastore.v1.Key.getDefaultInstance(); } public static final int STRING_VALUE_FIELD_NUMBER = 17; /** + * + * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -490,12 +576,15 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() {
    * 
* * string string_value = 17; + * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueTypeCase_ == 17; } /** + * + * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -503,6 +592,7 @@ public boolean hasStringValue() {
    * 
* * string string_value = 17; + * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -513,8 +603,7 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueTypeCase_ == 17) { valueType_ = s; @@ -523,6 +612,8 @@ public java.lang.String getStringValue() { } } /** + * + * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -530,18 +621,17 @@ public java.lang.String getStringValue() {
    * 
* * string string_value = 17; + * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueTypeCase_ == 17) { ref = valueType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (valueTypeCase_ == 17) { valueType_ = b; } @@ -553,6 +643,8 @@ public java.lang.String getStringValue() { public static final int BLOB_VALUE_FIELD_NUMBER = 18; /** + * + * *
    * A blob value.
    * May have at most 1,000,000 bytes.
@@ -561,6 +653,7 @@ public java.lang.String getStringValue() {
    * 
* * bytes blob_value = 18; + * * @return Whether the blobValue field is set. */ @java.lang.Override @@ -568,6 +661,8 @@ public boolean hasBlobValue() { return valueTypeCase_ == 18; } /** + * + * *
    * A blob value.
    * May have at most 1,000,000 bytes.
@@ -576,6 +671,7 @@ public boolean hasBlobValue() {
    * 
* * bytes blob_value = 18; + * * @return The blobValue. */ @java.lang.Override @@ -588,11 +684,14 @@ public com.google.protobuf.ByteString getBlobValue() { public static final int GEO_POINT_VALUE_FIELD_NUMBER = 8; /** + * + * *
    * A geo point value representing a point on the surface of Earth.
    * 
* * .google.type.LatLng geo_point_value = 8; + * * @return Whether the geoPointValue field is set. */ @java.lang.Override @@ -600,21 +699,26 @@ public boolean hasGeoPointValue() { return valueTypeCase_ == 8; } /** + * + * *
    * A geo point value representing a point on the surface of Earth.
    * 
* * .google.type.LatLng geo_point_value = 8; + * * @return The geoPointValue. */ @java.lang.Override public com.google.type.LatLng getGeoPointValue() { if (valueTypeCase_ == 8) { - return (com.google.type.LatLng) valueType_; + return (com.google.type.LatLng) valueType_; } return com.google.type.LatLng.getDefaultInstance(); } /** + * + * *
    * A geo point value representing a point on the surface of Earth.
    * 
@@ -624,13 +728,15 @@ public com.google.type.LatLng getGeoPointValue() { @java.lang.Override public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() { if (valueTypeCase_ == 8) { - return (com.google.type.LatLng) valueType_; + return (com.google.type.LatLng) valueType_; } return com.google.type.LatLng.getDefaultInstance(); } public static final int ENTITY_VALUE_FIELD_NUMBER = 6; /** + * + * *
    * An entity value.
    * - May have no key.
@@ -639,6 +745,7 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() {
    * 
* * .google.datastore.v1.Entity entity_value = 6; + * * @return Whether the entityValue field is set. */ @java.lang.Override @@ -646,6 +753,8 @@ public boolean hasEntityValue() { return valueTypeCase_ == 6; } /** + * + * *
    * An entity value.
    * - May have no key.
@@ -654,16 +763,19 @@ public boolean hasEntityValue() {
    * 
* * .google.datastore.v1.Entity entity_value = 6; + * * @return The entityValue. */ @java.lang.Override public com.google.datastore.v1.Entity getEntityValue() { if (valueTypeCase_ == 6) { - return (com.google.datastore.v1.Entity) valueType_; + return (com.google.datastore.v1.Entity) valueType_; } return com.google.datastore.v1.Entity.getDefaultInstance(); } /** + * + * *
    * An entity value.
    * - May have no key.
@@ -676,13 +788,15 @@ public com.google.datastore.v1.Entity getEntityValue() {
   @java.lang.Override
   public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
     if (valueTypeCase_ == 6) {
-       return (com.google.datastore.v1.Entity) valueType_;
+      return (com.google.datastore.v1.Entity) valueType_;
     }
     return com.google.datastore.v1.Entity.getDefaultInstance();
   }
 
   public static final int ARRAY_VALUE_FIELD_NUMBER = 9;
   /**
+   *
+   *
    * 
    * An array value.
    * Cannot contain another array value.
@@ -691,6 +805,7 @@ public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
    * 
* * .google.datastore.v1.ArrayValue array_value = 9; + * * @return Whether the arrayValue field is set. */ @java.lang.Override @@ -698,6 +813,8 @@ public boolean hasArrayValue() { return valueTypeCase_ == 9; } /** + * + * *
    * An array value.
    * Cannot contain another array value.
@@ -706,16 +823,19 @@ public boolean hasArrayValue() {
    * 
* * .google.datastore.v1.ArrayValue array_value = 9; + * * @return The arrayValue. */ @java.lang.Override public com.google.datastore.v1.ArrayValue getArrayValue() { if (valueTypeCase_ == 9) { - return (com.google.datastore.v1.ArrayValue) valueType_; + return (com.google.datastore.v1.ArrayValue) valueType_; } return com.google.datastore.v1.ArrayValue.getDefaultInstance(); } /** + * + * *
    * An array value.
    * Cannot contain another array value.
@@ -728,7 +848,7 @@ public com.google.datastore.v1.ArrayValue getArrayValue() {
   @java.lang.Override
   public com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() {
     if (valueTypeCase_ == 9) {
-       return (com.google.datastore.v1.ArrayValue) valueType_;
+      return (com.google.datastore.v1.ArrayValue) valueType_;
     }
     return com.google.datastore.v1.ArrayValue.getDefaultInstance();
   }
@@ -736,11 +856,14 @@ public com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() {
   public static final int MEANING_FIELD_NUMBER = 14;
   private int meaning_;
   /**
+   *
+   *
    * 
    * The `meaning` field should only be populated for backwards compatibility.
    * 
* * int32 meaning = 14; + * * @return The meaning. */ @java.lang.Override @@ -751,12 +874,15 @@ public int getMeaning() { public static final int EXCLUDE_FROM_INDEXES_FIELD_NUMBER = 19; private boolean excludeFromIndexes_; /** + * + * *
    * If the value should be excluded from all indexes including those defined
    * explicitly.
    * 
* * bool exclude_from_indexes = 19; + * * @return The excludeFromIndexes. */ @java.lang.Override @@ -765,6 +891,7 @@ public boolean getExcludeFromIndexes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -776,19 +903,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueTypeCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) valueType_)); + output.writeBool(1, (boolean) ((java.lang.Boolean) valueType_)); } if (valueTypeCase_ == 2) { - output.writeInt64( - 2, (long)((java.lang.Long) valueType_)); + output.writeInt64(2, (long) ((java.lang.Long) valueType_)); } if (valueTypeCase_ == 3) { - output.writeDouble( - 3, (double)((java.lang.Double) valueType_)); + output.writeDouble(3, (double) ((java.lang.Double) valueType_)); } if (valueTypeCase_ == 5) { output.writeMessage(5, (com.google.datastore.v1.Key) valueType_); @@ -815,8 +938,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 17, valueType_); } if (valueTypeCase_ == 18) { - output.writeBytes( - 18, (com.google.protobuf.ByteString) valueType_); + output.writeBytes(18, (com.google.protobuf.ByteString) valueType_); } if (excludeFromIndexes_ != false) { output.writeBool(19, excludeFromIndexes_); @@ -831,59 +953,63 @@ public int getSerializedSize() { size = 0; if (valueTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) valueType_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) valueType_)); } if (valueTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 2, (long)((java.lang.Long) valueType_)); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) valueType_)); } if (valueTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 3, (double)((java.lang.Double) valueType_)); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) valueType_)); } if (valueTypeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.datastore.v1.Key) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.datastore.v1.Key) valueType_); } if (valueTypeCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.datastore.v1.Entity) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.datastore.v1.Entity) valueType_); } if (valueTypeCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.type.LatLng) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.type.LatLng) valueType_); } if (valueTypeCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.datastore.v1.ArrayValue) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.datastore.v1.ArrayValue) valueType_); } if (valueTypeCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.protobuf.Timestamp) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.protobuf.Timestamp) valueType_); } if (valueTypeCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, ((java.lang.Integer) valueType_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 11, ((java.lang.Integer) valueType_)); } if (meaning_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, meaning_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, meaning_); } if (valueTypeCase_ == 17) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, valueType_); } if (valueTypeCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 18, (com.google.protobuf.ByteString) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 18, (com.google.protobuf.ByteString) valueType_); } if (excludeFromIndexes_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, excludeFromIndexes_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, excludeFromIndexes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -893,63 +1019,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.datastore.v1.Value)) { return super.equals(obj); } com.google.datastore.v1.Value other = (com.google.datastore.v1.Value) obj; - if (getMeaning() - != other.getMeaning()) return false; - if (getExcludeFromIndexes() - != other.getExcludeFromIndexes()) return false; + if (getMeaning() != other.getMeaning()) return false; + if (getExcludeFromIndexes() != other.getExcludeFromIndexes()) return false; if (!getValueTypeCase().equals(other.getValueTypeCase())) return false; switch (valueTypeCase_) { case 11: - if (getNullValueValue() - != other.getNullValueValue()) return false; + if (getNullValueValue() != other.getNullValueValue()) return false; break; case 1: - if (getBooleanValue() - != other.getBooleanValue()) return false; + if (getBooleanValue() != other.getBooleanValue()) return false; break; case 2: - if (getIntegerValue() - != other.getIntegerValue()) return false; + if (getIntegerValue() != other.getIntegerValue()) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; break; case 10: - if (!getTimestampValue() - .equals(other.getTimestampValue())) return false; + if (!getTimestampValue().equals(other.getTimestampValue())) return false; break; case 5: - if (!getKeyValue() - .equals(other.getKeyValue())) return false; + if (!getKeyValue().equals(other.getKeyValue())) return false; break; case 17: - if (!getStringValue() - .equals(other.getStringValue())) return false; + if (!getStringValue().equals(other.getStringValue())) return false; break; case 18: - if (!getBlobValue() - .equals(other.getBlobValue())) return false; + if (!getBlobValue().equals(other.getBlobValue())) return false; break; case 8: - if (!getGeoPointValue() - .equals(other.getGeoPointValue())) return false; + if (!getGeoPointValue().equals(other.getGeoPointValue())) return false; break; case 6: - if (!getEntityValue() - .equals(other.getEntityValue())) return false; + if (!getEntityValue().equals(other.getEntityValue())) return false; break; case 9: - if (!getArrayValue() - .equals(other.getArrayValue())) return false; + if (!getArrayValue().equals(other.getArrayValue())) return false; break; case 0: default: @@ -968,8 +1081,7 @@ public int hashCode() { hash = (37 * hash) + MEANING_FIELD_NUMBER; hash = (53 * hash) + getMeaning(); hash = (37 * hash) + EXCLUDE_FROM_INDEXES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExcludeFromIndexes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExcludeFromIndexes()); switch (valueTypeCase_) { case 11: hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER; @@ -977,18 +1089,18 @@ public int hashCode() { break; case 1: hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBooleanValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBooleanValue()); break; case 2: hash = (37 * hash) + INTEGER_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIntegerValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntegerValue()); break; case 3: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 10: hash = (37 * hash) + TIMESTAMP_VALUE_FIELD_NUMBER; @@ -1026,97 +1138,103 @@ public int hashCode() { return hash; } - public static com.google.datastore.v1.Value parseFrom( - java.nio.ByteBuffer data) + public static com.google.datastore.v1.Value parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Value parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.datastore.v1.Value parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.datastore.v1.Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Value parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.datastore.v1.Value parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.datastore.v1.Value parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.Value parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.datastore.v1.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.datastore.v1.Value parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.datastore.v1.Value parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.datastore.v1.Value parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.datastore.v1.Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.datastore.v1.Value prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A message that can hold any of the supported value types and associated
    * metadata.
@@ -1124,19 +1242,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.datastore.v1.Value}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.datastore.v1.Value)
       com.google.datastore.v1.ValueOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Value_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_fieldAccessorTable
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Value_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.datastore.v1.Value.class, com.google.datastore.v1.Value.Builder.class);
     }
@@ -1146,16 +1265,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1169,9 +1287,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.datastore.v1.EntityProto.internal_static_google_datastore_v1_Value_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.datastore.v1.EntityProto
+          .internal_static_google_datastore_v1_Value_descriptor;
     }
 
     @java.lang.Override
@@ -1255,38 +1373,39 @@ public com.google.datastore.v1.Value buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.datastore.v1.Value) {
-        return mergeFrom((com.google.datastore.v1.Value)other);
+        return mergeFrom((com.google.datastore.v1.Value) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1302,55 +1421,67 @@ public Builder mergeFrom(com.google.datastore.v1.Value other) {
         setExcludeFromIndexes(other.getExcludeFromIndexes());
       }
       switch (other.getValueTypeCase()) {
-        case NULL_VALUE: {
-          setNullValueValue(other.getNullValueValue());
-          break;
-        }
-        case BOOLEAN_VALUE: {
-          setBooleanValue(other.getBooleanValue());
-          break;
-        }
-        case INTEGER_VALUE: {
-          setIntegerValue(other.getIntegerValue());
-          break;
-        }
-        case DOUBLE_VALUE: {
-          setDoubleValue(other.getDoubleValue());
-          break;
-        }
-        case TIMESTAMP_VALUE: {
-          mergeTimestampValue(other.getTimestampValue());
-          break;
-        }
-        case KEY_VALUE: {
-          mergeKeyValue(other.getKeyValue());
-          break;
-        }
-        case STRING_VALUE: {
-          valueTypeCase_ = 17;
-          valueType_ = other.valueType_;
-          onChanged();
-          break;
-        }
-        case BLOB_VALUE: {
-          setBlobValue(other.getBlobValue());
-          break;
-        }
-        case GEO_POINT_VALUE: {
-          mergeGeoPointValue(other.getGeoPointValue());
-          break;
-        }
-        case ENTITY_VALUE: {
-          mergeEntityValue(other.getEntityValue());
-          break;
-        }
-        case ARRAY_VALUE: {
-          mergeArrayValue(other.getArrayValue());
-          break;
-        }
-        case VALUETYPE_NOT_SET: {
-          break;
-        }
+        case NULL_VALUE:
+          {
+            setNullValueValue(other.getNullValueValue());
+            break;
+          }
+        case BOOLEAN_VALUE:
+          {
+            setBooleanValue(other.getBooleanValue());
+            break;
+          }
+        case INTEGER_VALUE:
+          {
+            setIntegerValue(other.getIntegerValue());
+            break;
+          }
+        case DOUBLE_VALUE:
+          {
+            setDoubleValue(other.getDoubleValue());
+            break;
+          }
+        case TIMESTAMP_VALUE:
+          {
+            mergeTimestampValue(other.getTimestampValue());
+            break;
+          }
+        case KEY_VALUE:
+          {
+            mergeKeyValue(other.getKeyValue());
+            break;
+          }
+        case STRING_VALUE:
+          {
+            valueTypeCase_ = 17;
+            valueType_ = other.valueType_;
+            onChanged();
+            break;
+          }
+        case BLOB_VALUE:
+          {
+            setBlobValue(other.getBlobValue());
+            break;
+          }
+        case GEO_POINT_VALUE:
+          {
+            mergeGeoPointValue(other.getGeoPointValue());
+            break;
+          }
+        case ENTITY_VALUE:
+          {
+            mergeEntityValue(other.getEntityValue());
+            break;
+          }
+        case ARRAY_VALUE:
+          {
+            mergeArrayValue(other.getArrayValue());
+            break;
+          }
+        case VALUETYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1380,12 +1511,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int valueTypeCase_ = 0;
     private java.lang.Object valueType_;
-    public ValueTypeCase
-        getValueTypeCase() {
-      return ValueTypeCase.forNumber(
-          valueTypeCase_);
+
+    public ValueTypeCase getValueTypeCase() {
+      return ValueTypeCase.forNumber(valueTypeCase_);
     }
 
     public Builder clearValueType() {
@@ -1395,13 +1526,15 @@ public Builder clearValueType() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; + * * @return Whether the nullValue field is set. */ @java.lang.Override @@ -1409,11 +1542,14 @@ public boolean hasNullValue() { return valueTypeCase_ == 11; } /** + * + * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; + * * @return The enum numeric value on the wire for nullValue. */ @java.lang.Override @@ -1424,11 +1560,14 @@ public int getNullValueValue() { return 0; } /** + * + * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; + * * @param value The enum numeric value on the wire for nullValue to set. * @return This builder for chaining. */ @@ -1439,29 +1578,35 @@ public Builder setNullValueValue(int value) { return this; } /** + * + * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; + * * @return The nullValue. */ @java.lang.Override public com.google.protobuf.NullValue getNullValue() { if (valueTypeCase_ == 11) { @SuppressWarnings("deprecation") - com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf( - (java.lang.Integer) valueType_); + com.google.protobuf.NullValue result = + com.google.protobuf.NullValue.valueOf((java.lang.Integer) valueType_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } /** + * + * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; + * * @param value The nullValue to set. * @return This builder for chaining. */ @@ -1475,11 +1620,14 @@ public Builder setNullValue(com.google.protobuf.NullValue value) { return this; } /** + * + * *
      * A null value.
      * 
* * .google.protobuf.NullValue null_value = 11; + * * @return This builder for chaining. */ public Builder clearNullValue() { @@ -1492,22 +1640,28 @@ public Builder clearNullValue() { } /** + * + * *
      * A boolean value.
      * 
* * bool boolean_value = 1; + * * @return Whether the booleanValue field is set. */ public boolean hasBooleanValue() { return valueTypeCase_ == 1; } /** + * + * *
      * A boolean value.
      * 
* * bool boolean_value = 1; + * * @return The booleanValue. */ public boolean getBooleanValue() { @@ -1517,11 +1671,14 @@ public boolean getBooleanValue() { return false; } /** + * + * *
      * A boolean value.
      * 
* * bool boolean_value = 1; + * * @param value The booleanValue to set. * @return This builder for chaining. */ @@ -1532,11 +1689,14 @@ public Builder setBooleanValue(boolean value) { return this; } /** + * + * *
      * A boolean value.
      * 
* * bool boolean_value = 1; + * * @return This builder for chaining. */ public Builder clearBooleanValue() { @@ -1549,22 +1709,28 @@ public Builder clearBooleanValue() { } /** + * + * *
      * An integer value.
      * 
* * int64 integer_value = 2; + * * @return Whether the integerValue field is set. */ public boolean hasIntegerValue() { return valueTypeCase_ == 2; } /** + * + * *
      * An integer value.
      * 
* * int64 integer_value = 2; + * * @return The integerValue. */ public long getIntegerValue() { @@ -1574,11 +1740,14 @@ public long getIntegerValue() { return 0L; } /** + * + * *
      * An integer value.
      * 
* * int64 integer_value = 2; + * * @param value The integerValue to set. * @return This builder for chaining. */ @@ -1589,11 +1758,14 @@ public Builder setIntegerValue(long value) { return this; } /** + * + * *
      * An integer value.
      * 
* * int64 integer_value = 2; + * * @return This builder for chaining. */ public Builder clearIntegerValue() { @@ -1606,22 +1778,28 @@ public Builder clearIntegerValue() { } /** + * + * *
      * A double value.
      * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return valueTypeCase_ == 3; } /** + * + * *
      * A double value.
      * 
* * double double_value = 3; + * * @return The doubleValue. */ public double getDoubleValue() { @@ -1631,11 +1809,14 @@ public double getDoubleValue() { return 0D; } /** + * + * *
      * A double value.
      * 
* * double double_value = 3; + * * @param value The doubleValue to set. * @return This builder for chaining. */ @@ -1646,11 +1827,14 @@ public Builder setDoubleValue(double value) { return this; } /** + * + * *
      * A double value.
      * 
* * double double_value = 3; + * * @return This builder for chaining. */ public Builder clearDoubleValue() { @@ -1663,8 +1847,13 @@ public Builder clearDoubleValue() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampValueBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + timestampValueBuilder_; /** + * + * *
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1672,6 +1861,7 @@ public Builder clearDoubleValue() {
      * 
* * .google.protobuf.Timestamp timestamp_value = 10; + * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -1679,6 +1869,8 @@ public boolean hasTimestampValue() { return valueTypeCase_ == 10; } /** + * + * *
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1686,6 +1878,7 @@ public boolean hasTimestampValue() {
      * 
* * .google.protobuf.Timestamp timestamp_value = 10; + * * @return The timestampValue. */ @java.lang.Override @@ -1703,6 +1896,8 @@ public com.google.protobuf.Timestamp getTimestampValue() { } } /** + * + * *
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1725,6 +1920,8 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1733,8 +1930,7 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp timestamp_value = 10;
      */
-    public Builder setTimestampValue(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (timestampValueBuilder_ == null) {
         valueType_ = builderForValue.build();
         onChanged();
@@ -1745,6 +1941,8 @@ public Builder setTimestampValue(
       return this;
     }
     /**
+     *
+     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1755,10 +1953,12 @@ public Builder setTimestampValue(
      */
     public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) {
       if (timestampValueBuilder_ == null) {
-        if (valueTypeCase_ == 10 &&
-            valueType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          valueType_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) valueType_)
-              .mergeFrom(value).buildPartial();
+        if (valueTypeCase_ == 10
+            && valueType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          valueType_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) valueType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           valueType_ = value;
         }
@@ -1774,6 +1974,8 @@ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1799,6 +2001,8 @@ public Builder clearTimestampValue() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1811,6 +2015,8 @@ public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() {
       return getTimestampValueFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1831,6 +2037,8 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A timestamp value.
      * When stored in the Datastore, precise only to microseconds;
@@ -1840,32 +2048,42 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
      * .google.protobuf.Timestamp timestamp_value = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getTimestampValueFieldBuilder() {
       if (timestampValueBuilder_ == null) {
         if (!(valueTypeCase_ == 10)) {
           valueType_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) valueType_,
-                getParentForChildren(),
-                isClean());
+        timestampValueBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) valueType_, getParentForChildren(), isClean());
         valueType_ = null;
       }
       valueTypeCase_ = 10;
-      onChanged();;
+      onChanged();
+      ;
       return timestampValueBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> keyValueBuilder_;
+            com.google.datastore.v1.Key,
+            com.google.datastore.v1.Key.Builder,
+            com.google.datastore.v1.KeyOrBuilder>
+        keyValueBuilder_;
     /**
+     *
+     *
      * 
      * A key value.
      * 
* * .google.datastore.v1.Key key_value = 5; + * * @return Whether the keyValue field is set. */ @java.lang.Override @@ -1873,11 +2091,14 @@ public boolean hasKeyValue() { return valueTypeCase_ == 5; } /** + * + * *
      * A key value.
      * 
* * .google.datastore.v1.Key key_value = 5; + * * @return The keyValue. */ @java.lang.Override @@ -1895,6 +2116,8 @@ public com.google.datastore.v1.Key getKeyValue() { } } /** + * + * *
      * A key value.
      * 
@@ -1915,14 +2138,15 @@ public Builder setKeyValue(com.google.datastore.v1.Key value) { return this; } /** + * + * *
      * A key value.
      * 
* * .google.datastore.v1.Key key_value = 5; */ - public Builder setKeyValue( - com.google.datastore.v1.Key.Builder builderForValue) { + public Builder setKeyValue(com.google.datastore.v1.Key.Builder builderForValue) { if (keyValueBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -1933,6 +2157,8 @@ public Builder setKeyValue( return this; } /** + * + * *
      * A key value.
      * 
@@ -1941,10 +2167,11 @@ public Builder setKeyValue( */ public Builder mergeKeyValue(com.google.datastore.v1.Key value) { if (keyValueBuilder_ == null) { - if (valueTypeCase_ == 5 && - valueType_ != com.google.datastore.v1.Key.getDefaultInstance()) { - valueType_ = com.google.datastore.v1.Key.newBuilder((com.google.datastore.v1.Key) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 5 && valueType_ != com.google.datastore.v1.Key.getDefaultInstance()) { + valueType_ = + com.google.datastore.v1.Key.newBuilder((com.google.datastore.v1.Key) valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -1960,6 +2187,8 @@ public Builder mergeKeyValue(com.google.datastore.v1.Key value) { return this; } /** + * + * *
      * A key value.
      * 
@@ -1983,6 +2212,8 @@ public Builder clearKeyValue() { return this; } /** + * + * *
      * A key value.
      * 
@@ -1993,6 +2224,8 @@ public com.google.datastore.v1.Key.Builder getKeyValueBuilder() { return getKeyValueFieldBuilder().getBuilder(); } /** + * + * *
      * A key value.
      * 
@@ -2011,6 +2244,8 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() { } } /** + * + * *
      * A key value.
      * 
@@ -2018,25 +2253,31 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() { * .google.datastore.v1.Key key_value = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder> + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder> getKeyValueFieldBuilder() { if (keyValueBuilder_ == null) { if (!(valueTypeCase_ == 5)) { valueType_ = com.google.datastore.v1.Key.getDefaultInstance(); } - keyValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Key, com.google.datastore.v1.Key.Builder, com.google.datastore.v1.KeyOrBuilder>( - (com.google.datastore.v1.Key) valueType_, - getParentForChildren(), - isClean()); + keyValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.datastore.v1.Key, + com.google.datastore.v1.Key.Builder, + com.google.datastore.v1.KeyOrBuilder>( + (com.google.datastore.v1.Key) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 5; - onChanged();; + onChanged(); + ; return keyValueBuilder_; } /** + * + * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2044,6 +2285,7 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() {
      * 
* * string string_value = 17; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -2051,6 +2293,8 @@ public boolean hasStringValue() { return valueTypeCase_ == 17; } /** + * + * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2058,6 +2302,7 @@ public boolean hasStringValue() {
      * 
* * string string_value = 17; + * * @return The stringValue. */ @java.lang.Override @@ -2067,8 +2312,7 @@ public java.lang.String getStringValue() { ref = valueType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueTypeCase_ == 17) { valueType_ = s; @@ -2079,6 +2323,8 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2086,19 +2332,18 @@ public java.lang.String getStringValue() {
      * 
* * string string_value = 17; + * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueTypeCase_ == 17) { ref = valueType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (valueTypeCase_ == 17) { valueType_ = b; } @@ -2108,6 +2353,8 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2115,20 +2362,22 @@ public java.lang.String getStringValue() {
      * 
* * string string_value = 17; + * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue( - java.lang.String value) { + public Builder setStringValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - valueTypeCase_ = 17; + throw new NullPointerException(); + } + valueTypeCase_ = 17; valueType_ = value; onChanged(); return this; } /** + * + * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2136,6 +2385,7 @@ public Builder setStringValue(
      * 
* * string string_value = 17; + * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -2147,6 +2397,8 @@ public Builder clearStringValue() { return this; } /** + * + * *
      * A UTF-8 encoded string value.
      * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -2154,15 +2406,15 @@ public Builder clearStringValue() {
      * 
* * string string_value = 17; + * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); valueTypeCase_ = 17; valueType_ = value; onChanged(); @@ -2170,6 +2422,8 @@ public Builder setStringValueBytes( } /** + * + * *
      * A blob value.
      * May have at most 1,000,000 bytes.
@@ -2178,12 +2432,15 @@ public Builder setStringValueBytes(
      * 
* * bytes blob_value = 18; + * * @return Whether the blobValue field is set. */ public boolean hasBlobValue() { return valueTypeCase_ == 18; } /** + * + * *
      * A blob value.
      * May have at most 1,000,000 bytes.
@@ -2192,6 +2449,7 @@ public boolean hasBlobValue() {
      * 
* * bytes blob_value = 18; + * * @return The blobValue. */ public com.google.protobuf.ByteString getBlobValue() { @@ -2201,6 +2459,8 @@ public com.google.protobuf.ByteString getBlobValue() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * A blob value.
      * May have at most 1,000,000 bytes.
@@ -2209,19 +2469,22 @@ public com.google.protobuf.ByteString getBlobValue() {
      * 
* * bytes blob_value = 18; + * * @param value The blobValue to set. * @return This builder for chaining. */ public Builder setBlobValue(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - valueTypeCase_ = 18; + throw new NullPointerException(); + } + valueTypeCase_ = 18; valueType_ = value; onChanged(); return this; } /** + * + * *
      * A blob value.
      * May have at most 1,000,000 bytes.
@@ -2230,6 +2493,7 @@ public Builder setBlobValue(com.google.protobuf.ByteString value) {
      * 
* * bytes blob_value = 18; + * * @return This builder for chaining. */ public Builder clearBlobValue() { @@ -2242,13 +2506,17 @@ public Builder clearBlobValue() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> geoPointValueBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + geoPointValueBuilder_; /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
* * .google.type.LatLng geo_point_value = 8; + * * @return Whether the geoPointValue field is set. */ @java.lang.Override @@ -2256,11 +2524,14 @@ public boolean hasGeoPointValue() { return valueTypeCase_ == 8; } /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
* * .google.type.LatLng geo_point_value = 8; + * * @return The geoPointValue. */ @java.lang.Override @@ -2278,6 +2549,8 @@ public com.google.type.LatLng getGeoPointValue() { } } /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2298,14 +2571,15 @@ public Builder setGeoPointValue(com.google.type.LatLng value) { return this; } /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
* * .google.type.LatLng geo_point_value = 8; */ - public Builder setGeoPointValue( - com.google.type.LatLng.Builder builderForValue) { + public Builder setGeoPointValue(com.google.type.LatLng.Builder builderForValue) { if (geoPointValueBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2316,6 +2590,8 @@ public Builder setGeoPointValue( return this; } /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2324,10 +2600,11 @@ public Builder setGeoPointValue( */ public Builder mergeGeoPointValue(com.google.type.LatLng value) { if (geoPointValueBuilder_ == null) { - if (valueTypeCase_ == 8 && - valueType_ != com.google.type.LatLng.getDefaultInstance()) { - valueType_ = com.google.type.LatLng.newBuilder((com.google.type.LatLng) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 8 && valueType_ != com.google.type.LatLng.getDefaultInstance()) { + valueType_ = + com.google.type.LatLng.newBuilder((com.google.type.LatLng) valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -2343,6 +2620,8 @@ public Builder mergeGeoPointValue(com.google.type.LatLng value) { return this; } /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2366,6 +2645,8 @@ public Builder clearGeoPointValue() { return this; } /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2376,6 +2657,8 @@ public com.google.type.LatLng.Builder getGeoPointValueBuilder() { return getGeoPointValueFieldBuilder().getBuilder(); } /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2394,6 +2677,8 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() { } } /** + * + * *
      * A geo point value representing a point on the surface of Earth.
      * 
@@ -2401,27 +2686,34 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() { * .google.type.LatLng geo_point_value = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getGeoPointValueFieldBuilder() { if (geoPointValueBuilder_ == null) { if (!(valueTypeCase_ == 8)) { valueType_ = com.google.type.LatLng.getDefaultInstance(); } - geoPointValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - (com.google.type.LatLng) valueType_, - getParentForChildren(), - isClean()); + geoPointValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>( + (com.google.type.LatLng) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 8; - onChanged();; + onChanged(); + ; return geoPointValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> entityValueBuilder_; + com.google.datastore.v1.Entity, + com.google.datastore.v1.Entity.Builder, + com.google.datastore.v1.EntityOrBuilder> + entityValueBuilder_; /** + * + * *
      * An entity value.
      * - May have no key.
@@ -2430,6 +2722,7 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() {
      * 
* * .google.datastore.v1.Entity entity_value = 6; + * * @return Whether the entityValue field is set. */ @java.lang.Override @@ -2437,6 +2730,8 @@ public boolean hasEntityValue() { return valueTypeCase_ == 6; } /** + * + * *
      * An entity value.
      * - May have no key.
@@ -2445,6 +2740,7 @@ public boolean hasEntityValue() {
      * 
* * .google.datastore.v1.Entity entity_value = 6; + * * @return The entityValue. */ @java.lang.Override @@ -2462,6 +2758,8 @@ public com.google.datastore.v1.Entity getEntityValue() { } } /** + * + * *
      * An entity value.
      * - May have no key.
@@ -2485,6 +2783,8 @@ public Builder setEntityValue(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity value.
      * - May have no key.
@@ -2494,8 +2794,7 @@ public Builder setEntityValue(com.google.datastore.v1.Entity value) {
      *
      * .google.datastore.v1.Entity entity_value = 6;
      */
-    public Builder setEntityValue(
-        com.google.datastore.v1.Entity.Builder builderForValue) {
+    public Builder setEntityValue(com.google.datastore.v1.Entity.Builder builderForValue) {
       if (entityValueBuilder_ == null) {
         valueType_ = builderForValue.build();
         onChanged();
@@ -2506,6 +2805,8 @@ public Builder setEntityValue(
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity value.
      * - May have no key.
@@ -2517,10 +2818,12 @@ public Builder setEntityValue(
      */
     public Builder mergeEntityValue(com.google.datastore.v1.Entity value) {
       if (entityValueBuilder_ == null) {
-        if (valueTypeCase_ == 6 &&
-            valueType_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
-          valueType_ = com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) valueType_)
-              .mergeFrom(value).buildPartial();
+        if (valueTypeCase_ == 6
+            && valueType_ != com.google.datastore.v1.Entity.getDefaultInstance()) {
+          valueType_ =
+              com.google.datastore.v1.Entity.newBuilder((com.google.datastore.v1.Entity) valueType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           valueType_ = value;
         }
@@ -2536,6 +2839,8 @@ public Builder mergeEntityValue(com.google.datastore.v1.Entity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity value.
      * - May have no key.
@@ -2562,6 +2867,8 @@ public Builder clearEntityValue() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity value.
      * - May have no key.
@@ -2575,6 +2882,8 @@ public com.google.datastore.v1.Entity.Builder getEntityValueBuilder() {
       return getEntityValueFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * An entity value.
      * - May have no key.
@@ -2596,6 +2905,8 @@ public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * An entity value.
      * - May have no key.
@@ -2606,27 +2917,36 @@ public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
      * .google.datastore.v1.Entity entity_value = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder> 
+            com.google.datastore.v1.Entity,
+            com.google.datastore.v1.Entity.Builder,
+            com.google.datastore.v1.EntityOrBuilder>
         getEntityValueFieldBuilder() {
       if (entityValueBuilder_ == null) {
         if (!(valueTypeCase_ == 6)) {
           valueType_ = com.google.datastore.v1.Entity.getDefaultInstance();
         }
-        entityValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.Entity, com.google.datastore.v1.Entity.Builder, com.google.datastore.v1.EntityOrBuilder>(
-                (com.google.datastore.v1.Entity) valueType_,
-                getParentForChildren(),
-                isClean());
+        entityValueBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.Entity,
+                com.google.datastore.v1.Entity.Builder,
+                com.google.datastore.v1.EntityOrBuilder>(
+                (com.google.datastore.v1.Entity) valueType_, getParentForChildren(), isClean());
         valueType_ = null;
       }
       valueTypeCase_ = 6;
-      onChanged();;
+      onChanged();
+      ;
       return entityValueBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.ArrayValue, com.google.datastore.v1.ArrayValue.Builder, com.google.datastore.v1.ArrayValueOrBuilder> arrayValueBuilder_;
+            com.google.datastore.v1.ArrayValue,
+            com.google.datastore.v1.ArrayValue.Builder,
+            com.google.datastore.v1.ArrayValueOrBuilder>
+        arrayValueBuilder_;
     /**
+     *
+     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -2635,6 +2955,7 @@ public com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder() {
      * 
* * .google.datastore.v1.ArrayValue array_value = 9; + * * @return Whether the arrayValue field is set. */ @java.lang.Override @@ -2642,6 +2963,8 @@ public boolean hasArrayValue() { return valueTypeCase_ == 9; } /** + * + * *
      * An array value.
      * Cannot contain another array value.
@@ -2650,6 +2973,7 @@ public boolean hasArrayValue() {
      * 
* * .google.datastore.v1.ArrayValue array_value = 9; + * * @return The arrayValue. */ @java.lang.Override @@ -2667,6 +2991,8 @@ public com.google.datastore.v1.ArrayValue getArrayValue() { } } /** + * + * *
      * An array value.
      * Cannot contain another array value.
@@ -2690,6 +3016,8 @@ public Builder setArrayValue(com.google.datastore.v1.ArrayValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -2699,8 +3027,7 @@ public Builder setArrayValue(com.google.datastore.v1.ArrayValue value) {
      *
      * .google.datastore.v1.ArrayValue array_value = 9;
      */
-    public Builder setArrayValue(
-        com.google.datastore.v1.ArrayValue.Builder builderForValue) {
+    public Builder setArrayValue(com.google.datastore.v1.ArrayValue.Builder builderForValue) {
       if (arrayValueBuilder_ == null) {
         valueType_ = builderForValue.build();
         onChanged();
@@ -2711,6 +3038,8 @@ public Builder setArrayValue(
       return this;
     }
     /**
+     *
+     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -2722,10 +3051,13 @@ public Builder setArrayValue(
      */
     public Builder mergeArrayValue(com.google.datastore.v1.ArrayValue value) {
       if (arrayValueBuilder_ == null) {
-        if (valueTypeCase_ == 9 &&
-            valueType_ != com.google.datastore.v1.ArrayValue.getDefaultInstance()) {
-          valueType_ = com.google.datastore.v1.ArrayValue.newBuilder((com.google.datastore.v1.ArrayValue) valueType_)
-              .mergeFrom(value).buildPartial();
+        if (valueTypeCase_ == 9
+            && valueType_ != com.google.datastore.v1.ArrayValue.getDefaultInstance()) {
+          valueType_ =
+              com.google.datastore.v1.ArrayValue.newBuilder(
+                      (com.google.datastore.v1.ArrayValue) valueType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           valueType_ = value;
         }
@@ -2741,6 +3073,8 @@ public Builder mergeArrayValue(com.google.datastore.v1.ArrayValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -2767,6 +3101,8 @@ public Builder clearArrayValue() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -2780,6 +3116,8 @@ public com.google.datastore.v1.ArrayValue.Builder getArrayValueBuilder() {
       return getArrayValueFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -2801,6 +3139,8 @@ public com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * An array value.
      * Cannot contain another array value.
@@ -2811,31 +3151,38 @@ public com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() {
      * .google.datastore.v1.ArrayValue array_value = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.datastore.v1.ArrayValue, com.google.datastore.v1.ArrayValue.Builder, com.google.datastore.v1.ArrayValueOrBuilder> 
+            com.google.datastore.v1.ArrayValue,
+            com.google.datastore.v1.ArrayValue.Builder,
+            com.google.datastore.v1.ArrayValueOrBuilder>
         getArrayValueFieldBuilder() {
       if (arrayValueBuilder_ == null) {
         if (!(valueTypeCase_ == 9)) {
           valueType_ = com.google.datastore.v1.ArrayValue.getDefaultInstance();
         }
-        arrayValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.datastore.v1.ArrayValue, com.google.datastore.v1.ArrayValue.Builder, com.google.datastore.v1.ArrayValueOrBuilder>(
-                (com.google.datastore.v1.ArrayValue) valueType_,
-                getParentForChildren(),
-                isClean());
+        arrayValueBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.datastore.v1.ArrayValue,
+                com.google.datastore.v1.ArrayValue.Builder,
+                com.google.datastore.v1.ArrayValueOrBuilder>(
+                (com.google.datastore.v1.ArrayValue) valueType_, getParentForChildren(), isClean());
         valueType_ = null;
       }
       valueTypeCase_ = 9;
-      onChanged();;
+      onChanged();
+      ;
       return arrayValueBuilder_;
     }
 
-    private int meaning_ ;
+    private int meaning_;
     /**
+     *
+     *
      * 
      * The `meaning` field should only be populated for backwards compatibility.
      * 
* * int32 meaning = 14; + * * @return The meaning. */ @java.lang.Override @@ -2843,43 +3190,52 @@ public int getMeaning() { return meaning_; } /** + * + * *
      * The `meaning` field should only be populated for backwards compatibility.
      * 
* * int32 meaning = 14; + * * @param value The meaning to set. * @return This builder for chaining. */ public Builder setMeaning(int value) { - + meaning_ = value; onChanged(); return this; } /** + * + * *
      * The `meaning` field should only be populated for backwards compatibility.
      * 
* * int32 meaning = 14; + * * @return This builder for chaining. */ public Builder clearMeaning() { - + meaning_ = 0; onChanged(); return this; } - private boolean excludeFromIndexes_ ; + private boolean excludeFromIndexes_; /** + * + * *
      * If the value should be excluded from all indexes including those defined
      * explicitly.
      * 
* * bool exclude_from_indexes = 19; + * * @return The excludeFromIndexes. */ @java.lang.Override @@ -2887,39 +3243,45 @@ public boolean getExcludeFromIndexes() { return excludeFromIndexes_; } /** + * + * *
      * If the value should be excluded from all indexes including those defined
      * explicitly.
      * 
* * bool exclude_from_indexes = 19; + * * @param value The excludeFromIndexes to set. * @return This builder for chaining. */ public Builder setExcludeFromIndexes(boolean value) { - + excludeFromIndexes_ = value; onChanged(); return this; } /** + * + * *
      * If the value should be excluded from all indexes including those defined
      * explicitly.
      * 
* * bool exclude_from_indexes = 19; + * * @return This builder for chaining. */ public Builder clearExcludeFromIndexes() { - + excludeFromIndexes_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2929,12 +3291,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.datastore.v1.Value) } // @@protoc_insertion_point(class_scope:google.datastore.v1.Value) private static final com.google.datastore.v1.Value DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.datastore.v1.Value(); } @@ -2943,16 +3305,16 @@ public static com.google.datastore.v1.Value getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Value(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Value parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Value(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2967,6 +3329,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.datastore.v1.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java similarity index 88% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java rename to proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java index 9c3bc8fb4..340dd5662 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java @@ -1,98 +1,143 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/entity.proto package com.google.datastore.v1; -public interface ValueOrBuilder extends +public interface ValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.datastore.v1.Value) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; + * * @return Whether the nullValue field is set. */ boolean hasNullValue(); /** + * + * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; + * * @return The enum numeric value on the wire for nullValue. */ int getNullValueValue(); /** + * + * *
    * A null value.
    * 
* * .google.protobuf.NullValue null_value = 11; + * * @return The nullValue. */ com.google.protobuf.NullValue getNullValue(); /** + * + * *
    * A boolean value.
    * 
* * bool boolean_value = 1; + * * @return Whether the booleanValue field is set. */ boolean hasBooleanValue(); /** + * + * *
    * A boolean value.
    * 
* * bool boolean_value = 1; + * * @return The booleanValue. */ boolean getBooleanValue(); /** + * + * *
    * An integer value.
    * 
* * int64 integer_value = 2; + * * @return Whether the integerValue field is set. */ boolean hasIntegerValue(); /** + * + * *
    * An integer value.
    * 
* * int64 integer_value = 2; + * * @return The integerValue. */ long getIntegerValue(); /** + * + * *
    * A double value.
    * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** + * + * *
    * A double value.
    * 
* * double double_value = 3; + * * @return The doubleValue. */ double getDoubleValue(); /** + * + * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -100,10 +145,13 @@ public interface ValueOrBuilder extends
    * 
* * .google.protobuf.Timestamp timestamp_value = 10; + * * @return Whether the timestampValue field is set. */ boolean hasTimestampValue(); /** + * + * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -111,10 +159,13 @@ public interface ValueOrBuilder extends
    * 
* * .google.protobuf.Timestamp timestamp_value = 10; + * * @return The timestampValue. */ com.google.protobuf.Timestamp getTimestampValue(); /** + * + * *
    * A timestamp value.
    * When stored in the Datastore, precise only to microseconds;
@@ -126,24 +177,32 @@ public interface ValueOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder();
 
   /**
+   *
+   *
    * 
    * A key value.
    * 
* * .google.datastore.v1.Key key_value = 5; + * * @return Whether the keyValue field is set. */ boolean hasKeyValue(); /** + * + * *
    * A key value.
    * 
* * .google.datastore.v1.Key key_value = 5; + * * @return The keyValue. */ com.google.datastore.v1.Key getKeyValue(); /** + * + * *
    * A key value.
    * 
@@ -153,6 +212,8 @@ public interface ValueOrBuilder extends com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder(); /** + * + * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -160,10 +221,13 @@ public interface ValueOrBuilder extends
    * 
* * string string_value = 17; + * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** + * + * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -171,10 +235,13 @@ public interface ValueOrBuilder extends
    * 
* * string string_value = 17; + * * @return The stringValue. */ java.lang.String getStringValue(); /** + * + * *
    * A UTF-8 encoded string value.
    * When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
@@ -182,12 +249,14 @@ public interface ValueOrBuilder extends
    * 
* * string string_value = 17; + * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString - getStringValueBytes(); + com.google.protobuf.ByteString getStringValueBytes(); /** + * + * *
    * A blob value.
    * May have at most 1,000,000 bytes.
@@ -196,10 +265,13 @@ public interface ValueOrBuilder extends
    * 
* * bytes blob_value = 18; + * * @return Whether the blobValue field is set. */ boolean hasBlobValue(); /** + * + * *
    * A blob value.
    * May have at most 1,000,000 bytes.
@@ -208,29 +280,38 @@ public interface ValueOrBuilder extends
    * 
* * bytes blob_value = 18; + * * @return The blobValue. */ com.google.protobuf.ByteString getBlobValue(); /** + * + * *
    * A geo point value representing a point on the surface of Earth.
    * 
* * .google.type.LatLng geo_point_value = 8; + * * @return Whether the geoPointValue field is set. */ boolean hasGeoPointValue(); /** + * + * *
    * A geo point value representing a point on the surface of Earth.
    * 
* * .google.type.LatLng geo_point_value = 8; + * * @return The geoPointValue. */ com.google.type.LatLng getGeoPointValue(); /** + * + * *
    * A geo point value representing a point on the surface of Earth.
    * 
@@ -240,6 +321,8 @@ public interface ValueOrBuilder extends com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder(); /** + * + * *
    * An entity value.
    * - May have no key.
@@ -248,10 +331,13 @@ public interface ValueOrBuilder extends
    * 
* * .google.datastore.v1.Entity entity_value = 6; + * * @return Whether the entityValue field is set. */ boolean hasEntityValue(); /** + * + * *
    * An entity value.
    * - May have no key.
@@ -260,10 +346,13 @@ public interface ValueOrBuilder extends
    * 
* * .google.datastore.v1.Entity entity_value = 6; + * * @return The entityValue. */ com.google.datastore.v1.Entity getEntityValue(); /** + * + * *
    * An entity value.
    * - May have no key.
@@ -276,6 +365,8 @@ public interface ValueOrBuilder extends
   com.google.datastore.v1.EntityOrBuilder getEntityValueOrBuilder();
 
   /**
+   *
+   *
    * 
    * An array value.
    * Cannot contain another array value.
@@ -284,10 +375,13 @@ public interface ValueOrBuilder extends
    * 
* * .google.datastore.v1.ArrayValue array_value = 9; + * * @return Whether the arrayValue field is set. */ boolean hasArrayValue(); /** + * + * *
    * An array value.
    * Cannot contain another array value.
@@ -296,10 +390,13 @@ public interface ValueOrBuilder extends
    * 
* * .google.datastore.v1.ArrayValue array_value = 9; + * * @return The arrayValue. */ com.google.datastore.v1.ArrayValue getArrayValue(); /** + * + * *
    * An array value.
    * Cannot contain another array value.
@@ -312,22 +409,28 @@ public interface ValueOrBuilder extends
   com.google.datastore.v1.ArrayValueOrBuilder getArrayValueOrBuilder();
 
   /**
+   *
+   *
    * 
    * The `meaning` field should only be populated for backwards compatibility.
    * 
* * int32 meaning = 14; + * * @return The meaning. */ int getMeaning(); /** + * + * *
    * If the value should be excluded from all indexes including those defined
    * explicitly.
    * 
* * bool exclude_from_indexes = 19; + * * @return The excludeFromIndexes. */ boolean getExcludeFromIndexes(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto rename to proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto rename to proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto rename to proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto From c1aba9a7d8606d3badd5e650812cb81bd6e35931 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 23 Jun 2022 21:12:58 +0000 Subject: [PATCH 3/4] deps: adding gax-httpjson --- google-cloud-datastore/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-datastore/pom.xml b/google-cloud-datastore/pom.xml index 3fa795ca1..105e26b7d 100644 --- a/google-cloud-datastore/pom.xml +++ b/google-cloud-datastore/pom.xml @@ -70,6 +70,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + com.google.guava guava @@ -111,12 +115,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + junit junit From 33f6f0b36ed5983762b0afc05ed2ff9fbdf0e0cc Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 21:15:47 +0000 Subject: [PATCH 4/4] =?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 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38a6461b3..babf55692 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastore' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-datastore:2.9.0' +implementation 'com.google.cloud:google-cloud-datastore:2.9.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.9.1" ``` ## Authentication